Skip to content

Instantly share code, notes, and snippets.

@alexmcpherson
Last active August 29, 2015 14:22
Show Gist options
  • Save alexmcpherson/985a9467765713637331 to your computer and use it in GitHub Desktop.
Save alexmcpherson/985a9467765713637331 to your computer and use it in GitHub Desktop.
package.json example
{
"name": "app-name",
"scripts": {
"webpack": "$(npm bin)/webpack --devtool cheap-module-eval-source-map --progress --colors --watch",
"webpack-prod": "$(npm bin)/webpack -p",
"test": "mocha --compilers js:babel/register",
"test-coverage": "mocha --compilers js:babel/register -R html-cov --require blanket > coverage.html && open coverage.html",
"test-watch": "mocha --compilers js:babel/register -w",
"postinstall": "npm run webpack-prod"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment