jzacsh / doodle

[clone of the original at https://gitlab.com/jzacsh/doodle] Yet another HTML5 webapp for drawing
https://study.j.zac.sh/doodle/
Apache License 2.0
0 stars 0 forks source link

watch & rebuild `npm run dev` script #15

Closed jzacsh closed 9 years ago

jzacsh commented 9 years ago

Slightly more complex one-liner than below, to watch and kill previous servers (ie: "restart" is a lie).

Imagining a package.json scripts entry like:

"scripts": {
    "dev": "./node_modules/watch/cli.js 'npm -s restart' $npm_package_config_source"
}