Add uglifyjs and keep js folder

This commit is contained in:
Jonathan Cremin 2014-12-29 00:21:50 +00:00
parent 15712f9482
commit 87649b5a3a
2 changed files with 5 additions and 4 deletions

View file

@ -5,7 +5,7 @@
"scripts": { "scripts": {
"start": "node ./bin/www", "start": "node ./bin/www",
"test": "./node_modules/mocha/bin/mocha test/**/*.js --timeout=10000", "test": "./node_modules/mocha/bin/mocha test/**/*.js --timeout=10000",
"build": "NODE_ENV=production browserify ./views/app.jsx | uglifyjs -cm 2>/dev/null > ./public/javascript/bundle.js", "build": "browserify ./views/app.jsx | uglifyjs -cm 2>/dev/null > ./public/javascript/bundle.js",
"clean": "rm -f ./public/javascript/bundle.js" "clean": "rm -f ./public/javascript/bundle.js"
}, },
"engines": { "engines": {
@ -26,11 +26,12 @@
"body-parser": "~1.10.0", "body-parser": "~1.10.0",
"browserify": "^7.0.0", "browserify": "^7.0.0",
"compression": "^1.2.2", "compression": "^1.2.2",
"connect-flash": "^0.1.1",
"connect-browserify": "^3.2.1", "connect-browserify": "^3.2.1",
"connect-flash": "^0.1.1",
"cookie-parser": "~1.3.3", "cookie-parser": "~1.3.3",
"crypto-js": "^3.1.2-5", "crypto-js": "^3.1.2-5",
"debug": "~2.1.0", "debug": "~2.1.0",
"envify": "^3.2.0",
"express": "~4.10.6", "express": "~4.10.6",
"express-session": "^1.9.2", "express-session": "^1.9.2",
"helmet": "^0.5.2", "helmet": "^0.5.2",
@ -43,11 +44,11 @@
"react-google-analytics": "^0.2.0", "react-google-analytics": "^0.2.0",
"react-router": "^0.11.6", "react-router": "^0.11.6",
"reactify": "^0.17.1", "reactify": "^0.17.1",
"envify": "^3.2.0",
"serve-favicon": "~2.2.0", "serve-favicon": "~2.2.0",
"spotify": "^0.3.0", "spotify": "^0.3.0",
"superagent": "^0.21.0", "superagent": "^0.21.0",
"superagent-bluebird-promise": "^0.5.1" "superagent-bluebird-promise": "^0.5.1",
"uglify-js": "^2.4.16"
}, },
"devDependencies": { "devDependencies": {
"should": "^4.4.1", "should": "^4.4.1",

0
public/javascript/.keep Normal file
View file