Created
March 9, 2016 12:35
-
-
Save wtnabe/1e9b7e4c6716c2670cbd to your computer and use it in GitHub Desktop.
npm development environment with browserify and babelify
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
{ | |
"dependencies": { | |
"babelify": "^7.2.0", | |
"browserify": "^13.0.0", | |
"licensify": "^2.2.0", | |
"uglifyjs": "^2.4.10" | |
}, | |
"devDependencies": { | |
"watchify": "^3.7.0" | |
}, | |
"scripts": { | |
"postinstall": "browserify -p licensify -t babelify vendor/assets/javascripts/javascript.js | uglifyjs --comments @preserve -o app/assets/javascripts/javascript.js", | |
"watch": "watchify -d -v -t babelify vendor/assets/javascripts/javascript.js -o app/assets/javascripts/javascript.js" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment