Skip to content

Commit

Permalink
add npm-run-all for concurrent scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
qdouble committed Sep 14, 2016
1 parent e3fe9f8 commit 4ce8abc
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
"scripts": {
"postinstall": "npm run sass",
"rimraf": "rimraf",
"webdev": "webpack-dev-server",
"ngc": "\"./node_modules/.bin/ngc\" -p src",
"webdriver-manager": "webdriver-manager",
"webdriver:update": "npm run webdriver-manager update",
"webdriver:start": "npm run webdriver-manager start",
Expand All @@ -28,19 +30,19 @@
"clean:dist": "npm run rimraf -- dist .awcache output",
"clean:compile": "npm run rimraf -- \"src/compiled\" ",
"compile": "npm run compile:aot",
"compile:aot": "npm run sass && npm run clean:compile && \"./node_modules/.bin/ngc\" -p src && npm run build:aot",
"compile:dev": "npm run sass && npm run clean:compile && \"./node_modules/.bin/ngc\" -p src && npm run build:aot:dev",
"compile:only": "npm run clean:compile && npm run sass && \"./node_modules/.bin/ngc\" -p src",
"compile:aot": "npm run sass && npm run clean:compile && npm run ngc && npm run build:aot",
"compile:dev": "npm run sass && npm run clean:compile && npm run ngc && npm run build:aot:dev",
"compile:only": "npm run clean:compile && npm run sass && npm run ngc",
"compile:watch": "watch-run -i npm run compile:only -p 'src/app/**/*.ts, src/app/**/*.scss' npm run compile:only",
"prodserver": "node prodserver",
"sass": "node-sass src -o src",
"sass:watch": "node-sass -w src -o src",
"start": "npm run server:dev",
"serve80": "sudo PORT=80 node prodserver",
"server:aot": "webpack-dev-server & npm run sass:watch",
"server:dev": "webpack-dev-server & npm run sass:watch",
"server:prod": "npm run watch:prod & npm run prodserver",
"server:prod80": "sudo npm run serve80 & npm run watch:prod",
"server:aot": "npm-run-all -p -r webdev sass:watch",
"server:dev": "npm-run-all -p -r webdev sass:watch",
"server:prod": "npm-run-all -p -r watch:prod prodserver",
"server:prod80": "npm-run-all -p -r serve80 watch:prod",
"prebuild": "rm -rf dist && npm run sass",
"debug:build": "node-nightly --inspect --debug-brk node_modules/webpack/bin/webpack.js",
"build": "npm run build:prod",
Expand All @@ -49,9 +51,9 @@
"build:dev": "webpack",
"build:prod": "webpack",
"watch": "npm run watch:dev",
"watch:aot": "npm run compile:watch -- --watch & npm run sass:watch",
"watch:dev": "npm run build:dev -- --watch & npm run sass:watch",
"watch:prod": "npm run build:prod -- --watch & npm run sass:watch"
"watch:aot": "npm-run-all -p -r \"compile:watch -- --watch\" sass:watch",
"watch:dev": "npm-run-all -p -r \"build:dev -- --watch\" sass:watch",
"watch:prod": "npm-run-all -p -r \"build:prod -- --watch\" sass:watch"
},
"dependencies": {
"@angular/common": "github:angular/common-builds",
Expand Down Expand Up @@ -109,6 +111,7 @@
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "1.7.0",
"node-sass": "^3.9.3",
"npm-run-all": "^3.1.0",
"phantomjs-polyfill": "0.0.2",
"phantomjs-prebuilt": "^2.1.7",
"protractor": "^3.2.2",
Expand Down

0 comments on commit 4ce8abc

Please sign in to comment.