Skip to content

Instantly share code, notes, and snippets.

@johnathan-sewell
Created October 28, 2016 11:03
Show Gist options
  • Save johnathan-sewell/e469af216a2e751df9bc59fefb14723f to your computer and use it in GitHub Desktop.
Save johnathan-sewell/e469af216a2e751df9bc59fefb14723f to your computer and use it in GitHub Desktop.
Example of using npm-run-all to keep NPM scripts neat
{
"name": "takeda.asagao.ui",
"version": "1.0.0",
"description": "UI libarary for Takeda websites",
"main": "index.js",
"scripts": {
"dev": "npm install && npm-run-all --parallel dev:*",
"dev:sass": "sass scss:css blocks:css --watch",
"dev:browser-sync": "browser-sync start --server --startPath /examples/index.html --files \"**/*.html\" \"**/*.razor\" \"**/*.css\" \"**/*.js\"",
"dev:browserify": "browserify examples/js/razor-block-loader.js -o examples/js/razor-block-loader.bundle.js",
"dev:watchify": "watchify examples/js/razor-block-loader.js -o examples/js/razor-block-loader.bundle.js",
"dev:webpack": "webpack"
},
"author": "Valtech DK",
"devDependencies": {
"browser-sync": "2.17.0",
"npm-run-all": "3.1.0",
"razor-tmpl": "1.3.1",
"watchify": "3.7.0"
},
"dependencies": {
"vash": "0.12.2",
"webpack": "1.13.2"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment