diff --git a/package.json b/package.json index a878f74..ca51ded 100644 --- a/package.json +++ b/package.json @@ -32,12 +32,14 @@ "react-bootstrap": "^0.25.1" }, "devDependencies": { + "babel-preset-es2015": "^6.1.18", + "babel-preset-react": "^6.1.18", + "babelify": "^7.2.0", "browserify": "^11.0.1", "clean-css": "^3.4.1", "eslint": "^1.5.0", "eslint-plugin-react": "^3.4.2", "react-tools": "^0.13.2", - "reactify": "^1.1.1", "uglify-js": "^2.4.24", "watch": "^0.16.0" } diff --git a/scripts/build-js.sh b/scripts/build-js.sh index f88a20b..c66eae8 100644 --- a/scripts/build-js.sh +++ b/scripts/build-js.sh @@ -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 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 \ No newline at end of file