Merge pull request #12 from wwelling/production-startup-script

Added production startup script: this closes #11
This commit is contained in:
Art Lowel
2016-12-07 16:12:02 +01:00
committed by GitHub
2 changed files with 4 additions and 1 deletions

1
.gitignore vendored
View File

@@ -10,6 +10,7 @@ npm-debug.log
.idea
*.ngfactory.ts
*.css.shim.ts
*.scss.shim.ts
.DS_Store

View File

@@ -10,7 +10,7 @@
"watch": "webpack --watch",
"watch:dev": "npm run server & npm run watch",
"clean:dist": "rimraf dist",
"clean:ngc": "rimraf **/*.ngfactory.ts **/*.css.shim.ts",
"clean:ngc": "rimraf **/*.ngfactory.ts **/*.css.shim.ts **/*.scss.shim.ts",
"prebuild": "npm run clean:dist",
"build": "webpack --progress",
"build:prod:ngc": "npm run clean:ngc && npm run ngc && npm run clean:dist && npm run build:prod",
@@ -22,6 +22,8 @@
"server": "nodemon dist/server/index.js",
"debug:server": "node-nightly --inspect --debug-brk dist/server/index.js",
"start": "npm run server",
"start:prod:node": "node dist/server/index.js",
"start:prod": "npm run build:prod:ngc:json && npm run start:prod:node",
"debug:start": "npm run build && npm run debug:server",
"predebug": "npm run build",
"debug:build": "node-nightly --inspect --debug-brk node_modules/webpack/bin/webpack.js",