Skip to content

Instantly share code, notes, and snippets.

@ericelliott
Created April 28, 2015 07:37
Show Gist options
  • Select an option

  • Save ericelliott/5ced17cabbdd05c0d56c to your computer and use it in GitHub Desktop.

Select an option

Save ericelliott/5ced17cabbdd05c0d56c to your computer and use it in GitHub Desktop.
ES6 npm scripts
"scripts": {
"lint": "eslint source",
"clean": "rm -rf build/* && mkdir build/public && mkdir build/server && mkdir build/client",
"build-server": "babel -d build/server source/server -s",
"build-client": "browserify source/client/index.js -t babelify --outfile build/client/bundle.js",
"build": "npm run clean && npm run build-server && npm build-client"
}
@sparty02
Copy link

It's nice to use the rimraf module instead, for your windows friends!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment