Skip to content

Instantly share code, notes, and snippets.

@phivk
Created March 1, 2017 08:40
Show Gist options
  • Save phivk/35bc75fd4c52dce885382ede213f1b10 to your computer and use it in GitHub Desktop.
Save phivk/35bc75fd4c52dce885382ede213f1b10 to your computer and use it in GitHub Desktop.
npm scripts for simple p5.js sketch
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build-js": "browserify index.js -o build/bundle.js",
"watch-js": "nodemon -e js -w sketch.js -x 'npm run build-js'",
"browser-sync": "browser-sync start --server --files ./sketch.js",
"watch": "npm run watch-js",
"dev": "npm run watch & npm run browser-sync"
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment