npm run scripts to handle the following:
- LESS for CSS pre-processor
- browserify for npm dependencies
- watchify for fast incremental bundling
- LiveReload browser refresh on bundle change
- LiveReload CSS injection on
*.less
change - budo to serve port 9966 and bring together some of the above tasks
- babelify for ES6 -> ES5
- errorify to show syntax errors in the browser during development
- compress JavaScript and CSS for compressed production release
tasks:
npm run start
for development onhttp://localhost:9966/
npm run prod
for production release
folder structure:
cool-web-app/
package.json
index.js
app/
index.html
bundle.js
main.css
src/
less/
main.less
foo.js