Created
September 16, 2015 16:20
-
-
Save mtoso/b52b918b3e52200c2b80 to your computer and use it in GitHub Desktop.
Node ES6 scripts
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
"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