Skip to content

Commit 7fbbe79

Browse files
authored
Add actual watch script (#4738)
1 parent b278fa6 commit 7fbbe79

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@
1111
"scripts": {
1212
"bower": "bower install",
1313
"build": "python setup.py js css",
14-
"build:watch": "set -e; while true; do npm run build; sleep 3; done"
14+
"build:watch": "npm run watch",
15+
"watch": "onchange 'notebook/static/**/!(*.min).js' 'notebook/static/**/*.less' 'bower.json' -- npm run build"
1516
},
1617
"devDependencies": {
1718
"bower": "^1.8.8",
1819
"less": "~2",
20+
"onchange": "^6.0.0",
1921
"po2json": "^0.4.5",
2022
"requirejs": "^2.3.6"
2123
},

0 commit comments

Comments
 (0)