Hello browserify
This commit is contained in:
parent
d32016f402
commit
bde2140d29
2 changed files with 4 additions and 2 deletions
|
@ -32,12 +32,14 @@
|
||||||
"react-bootstrap": "^0.25.1"
|
"react-bootstrap": "^0.25.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
"babel-preset-es2015": "^6.1.18",
|
||||||
|
"babel-preset-react": "^6.1.18",
|
||||||
|
"babelify": "^7.2.0",
|
||||||
"browserify": "^11.0.1",
|
"browserify": "^11.0.1",
|
||||||
"clean-css": "^3.4.1",
|
"clean-css": "^3.4.1",
|
||||||
"eslint": "^1.5.0",
|
"eslint": "^1.5.0",
|
||||||
"eslint-plugin-react": "^3.4.2",
|
"eslint-plugin-react": "^3.4.2",
|
||||||
"react-tools": "^0.13.2",
|
"react-tools": "^0.13.2",
|
||||||
"reactify": "^1.1.1",
|
|
||||||
"uglify-js": "^2.4.24",
|
"uglify-js": "^2.4.24",
|
||||||
"watch": "^0.16.0"
|
"watch": "^0.16.0"
|
||||||
}
|
}
|
||||||
|
|
|
@ -13,5 +13,5 @@ echo ">> Building JQuery..."
|
||||||
uglifyjs node_modules/jquery/dist/jquery.js --compress --screw-ie8 --define --stats --keep-fnames -o static/build/js/jquery.js
|
uglifyjs node_modules/jquery/dist/jquery.js --compress --screw-ie8 --define --stats --keep-fnames -o static/build/js/jquery.js
|
||||||
|
|
||||||
echo ">> Building Application JS..."
|
echo ">> Building Application JS..."
|
||||||
browserify -t reactify static/src/js/app.js -o static/build/js/app.js
|
browserify -t [ babelify --presets [ es2015 react ] ] static/src/js/app.js -o static/build/js/app.js
|
||||||
# uglifyjs static/build/js/app.js --compress --screw-ie8 --define --stats --keep-fnames -o static/build/js/app.js
|
# uglifyjs static/build/js/app.js --compress --screw-ie8 --define --stats --keep-fnames -o static/build/js/app.js
|
Reference in a new issue