Skip to content

Instantly share code, notes, and snippets.

@gre
Forked from anonymous/client_js_index.js
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gre/4a5a60529a770c0ececf to your computer and use it in GitHub Desktop.
Save gre/4a5a60529a770c0ececf to your computer and use it in GitHub Desktop.
if (process.env.NODE_ENV !== "production")
document.write('<script src="//localhost:9241"></script>');
{
"private": true,
"name": "??????????????",
"version": "1.0.0",
"scripts": {
"build": "npm run build-js && npm run build-css",
"build-js": "export NODE_ENV=production; browserify client/js/index.js | uglifyjs -cm > public/javascripts/bundle.js",
"build-css": "stylus -u nib -c client/stylus/themes/ -o public/stylesheets/themes/",
"watch": "npm run watch-js & npm run watch-css & npm run live-reload",
"watch-js": "watchify --debug client/js/index.js -o public/javascripts/bundle.js",
"watch-css": "stylus -u nib --sourcemap-inline -w client/stylus/themes/ -o public/stylesheets/themes/",
"live-reload": "live-reload public/ --port=9241 --delay=1500"
},
"devDependencies": {
"browserify": "^10.2.4",
"live-reload": "^1.1.0",
"stylus": "^0.51.1",
"uglify-js": "^2.4.23",
"envify": "^3.4.0",
"watchify": "^3.2.2"
},
"browserify": {
"transform": [
"envify"
]
},
"dependencies": {
"nib": "1.1.0"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment