Created
April 28, 2015 07:37
-
-
Save ericelliott/5ced17cabbdd05c0d56c to your computer and use it in GitHub Desktop.
ES6 npm scripts
This file contains hidden or 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
| "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" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It's nice to use the rimraf module instead, for your windows friends!