More concise npm scripts

master
Steven Loria 7 years ago
parent 94fd865d78
commit 54e51268de
No known key found for this signature in database
GPG Key ID: 631262B829DDB506
  1. 6
      {{cookiecutter.app_name}}/package.json

@ -3,9 +3,9 @@
"version": "1.0.0", "version": "1.0.0",
"description": "{{cookiecutter.project_short_description}}", "description": "{{cookiecutter.project_short_description}}",
"scripts": { "scripts": {
"build": "NODE_ENV=production ./node_modules/.bin/webpack --progress --colors -p", "build": "NODE_ENV=production webpack --progress --colors -p",
"start": "./node_modules/.bin/concurrently -n \"WEBPACK,FLASK\" -c \"bgBlue.bold,bgMagenta.bold\" \"npm run webpack-dev-server\" \"npm run flask-server\"", "start": "concurrently -n \"WEBPACK,FLASK\" -c \"bgBlue.bold,bgMagenta.bold\" \"npm run webpack-dev-server\" \"npm run flask-server\"",
"webpack-dev-server": "NODE_ENV=debug ./node_modules/.bin/webpack-dev-server --port 2992 --hot --inline", "webpack-dev-server": "NODE_ENV=debug webpack-dev-server --port 2992 --hot --inline",
"flask-server": "FLASK_APP=$PWD/autoapp.py FLASK_DEBUG=1 flask run", "flask-server": "FLASK_APP=$PWD/autoapp.py FLASK_DEBUG=1 flask run",
"lint": "eslint \"assets/js/*.js\"" "lint": "eslint \"assets/js/*.js\""
}, },

Loading…
Cancel
Save