pjosephraj
6/13/2017 - 1:28 AM

NPM scripts for tasks

NPM scripts for tasks

{
  "scripts": {
    "start": "npm-run-all --parallel server watch:*",
      "watch:js": "npm run build:js -- --watch",
      "watch:static": "npm run build:static -- -w",
      "watch:css": "autoless --source-map examples www",
      "watch:dist": "npm run build:dist --- --watch",

    "build": "npm-run-all build:*",
      "build:js": "webpack",
      "build:static": "cp ./examples/static/**/* www",
      "build:css": "npm run watch:css -- --no-watch",
      "build:dist": "babel src --out-dir dist",
    
    "server": "live-server ./ --port=4240"
  }
}