Via config file

.miyagi.json or .miyagi.js

The config file can either be a JSON file or JS file with a CommonJS module, if you want to extend your template engine.

This is an example for a JSON config file:

// .miyagi.json

{
  "assets": {
    "folder": "assets/",
    "css": {
      "development": ["src/index.css"],
      "production": ["build/index.css"]
    },
    "es6Modules": true,
    "jsFiles": {
      "development": ["src/index.js"],
      "production": ["build/index.js"]
    }
  },
  "build": {
    "folder": "dist/",
  },
  "components": {
    "folder": "source/",
    "ignores": [
      "tests",
    ]
  },
  "engine": {
    "name": "twig",
    "options": {
      "namespaces": {
        "miyagi": "src/"
      }
    }
  },
  "files": {
    "templates": {
      "extension": "twig",
    },
  },
  "projectName": "miyagi",
  "ui": {
    "reload": false,
    "theme": {
      "favicon": "src/favicon.ico",
      "logo": "src/logo.svg",
      "navigation": {
        "colorBackground": "#eee",
        "colorLinks": "#255e8a",
        "colorLinksActive": "#fff"
      },
      "content": {
        "colorHeadlines": "#255e8a",
        "colorText": "#234"
      }
    },
    "validations": {
      "html": false,
      "accessibility": false
    }
  }
}

NOTE: Only engine.name and files.templates.extension are required. All other options are optional.