Created
November 4, 2015 10:07
-
-
Save jorinvo/d3c312de6898d960ac01 to your computer and use it in GitHub Desktop.
Scripts section for a react project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"config": { | |
"port": 3000, | |
"api_url": "http://localhost:3000/api" | |
}, | |
"scripts": { | |
"start": "export NODE_ENV=production; npm run build && npm run server", | |
"watch": "npm run server:watch & npm run test:watch & wait", | |
"server": "node server.js", | |
"server:watch": "nodemon --watch server.js server.js", | |
"install": "npm run setup:db && npm run setup", | |
"setup": "node setup.js", | |
"setup:db": "createuser user || true && createdb user || true", | |
"test": "babel-tape-runner 'client/**/*.test.js' | tspec", | |
"test:watch": "nodemon --exec 'npm test'", | |
"lint": "standard", | |
"explore": "webpack --devtool source-map && source-map-explorer static/bundle.js static/bundle.js.map", | |
"build": "npm run lint && webpack" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment