Update npm scripts

This commit is contained in:
John Furrow
2016-08-15 21:52:07 -07:00
parent ba28f1f557
commit addb60e965
2 changed files with 9 additions and 4 deletions
+4 -2
View File
@@ -33,8 +33,10 @@ If you have a specific issue or bug, please file a Github issue. If you want to
#### Updating
1. To update, run `git pull` in this repository's directory.
2. Check `config.template.js` for configuration changes that you may wish to incoporate in your `config.js`.
3. Kill the running Node server and restart it with `npm start`.
* The `start` script removes old dependencies, installs new ones, transpiles JavaScript and CSS, and starts the web server.
3. Kill the running Node server.
4. Run `npm install` to update dependencies.
5. Restart it with `npm start`.
* Static frontend assets are transpiled and compressed before starting the server.
#### Tips
* I run the web server with `screen` to keep the web server running independently of the terminal session.
+5 -2
View File
@@ -3,8 +3,11 @@
"version": "0.0.0",
"private": true,
"scripts": {
"livereload": "NODE_ENV='development' ./node_modules/.bin/gulp livereload",
"start": "npm prune && npm install && ./node_modules/.bin/gulp dist && ./node_modules/.bin/nodemon ./server/bin/www"
"preinstall": "npm prune",
"prestart": "./node_modules/.bin/gulp dist",
"start": "./node_modules/.bin/nodemon ./server/bin/www",
"start:production": "node ./server/bin/www",
"livereload": "NODE_ENV='development' ./node_modules/.bin/gulp livereload"
},
"dependencies": {
"axios": "^0.12.0",