Skip to content

Instantly share code, notes, and snippets.

Created November 26, 2015 12:57
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save anonymous/b05e6549d2ee3a1e33e4 to your computer and use it in GitHub Desktop.
Save anonymous/b05e6549d2ee3a1e33e4 to your computer and use it in GitHub Desktop.
browserify+stylus+babel+hotreload
{
"scripts": {
"test": "mocha -g",
"start": "babel-node server.js",
"prestart": "npm run build",
"build": "npm-run-all 'build:*'",
"build:js": "cross-env NODE_ENV=production browserify -t babelify -t envify src/app.js > static/build.js",
"postbuild:js": "uglifyjs static/build.js -o static/build.js",
"build:css": "cross-env NODE_ENV=production stylus css/main.styl -o static",
"watch": "npm-run-all --parallel 'watch:*'",
"watch:server": "nodemon server.js --ignore static --exec babel-node",
"watch:js": "watchify -p livereactload -t babelify -t envify --debug -v -o static/build.js src/app.js",
"watch:css": "npm run build:css -- --watch",
"watch:test": "npm test -- --watch --growl",
},
"devDependencies": {
"babel-plugin-react-transform": "^1.1.1",
"babelify": "^6.4.0",
"browserify": "^12.0.1",
"cross-env": "^1.0.4",
"envify": "^3.4.0",
"livereactload": "^2.1.0",
"nodemon": "^1.8.1",
"npm-run-all": "^1.3.2",
"react-proxy": "^1.1.1",
"uglify-js": "^2.6.1",
"watchify": "^3.6.1"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment