Config & commands

Install dependencies

npm install

or

yarn

Start spacecraft

gulp

Generate html-app

gulp production

Set a custom destination folder by updating the following setting in config.json

Config:
  "root": {
    "production": "production"
  },

Generate assets

gulp assets

The following sub-commands can be run by the asset command:

  • fonts
  • icons
  • images
  • static
  • temp
  • css
  • js

Default config:

  "assets": {
    "assetTasks": ["fonts", "icons", "images"],
    "codeTasks": ["css", "js"],
    "dest": "assets"
  },

It’s also possible to run these commands directly with gulp e.g. gulp fonts

Proxy

Example configuration with proxy server

  "proxy":{
    "browserSyncConfig": {
      "proxy": "http://127.0.0.1:8000/"
    }
  },