Skip to content

Instantly share code, notes, and snippets.

@jorinvo
Created November 4, 2015 10:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jorinvo/d3c312de6898d960ac01 to your computer and use it in GitHub Desktop.
Save jorinvo/d3c312de6898d960ac01 to your computer and use it in GitHub Desktop.
Scripts section for a react project
{
"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