Skip to content

Commit

Permalink
Use polling when watching changed files in "npm run watch", fixes goo…
Browse files Browse the repository at this point in the history
  • Loading branch information
jsantell committed Nov 26, 2018
1 parent 56484f5 commit bc2f6c7
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,15 @@
"prepublishOnly": "npm run build",
"test": "npm run clean && npm run build && wct --skip-plugin sauce",
"serve": "ws",
"watch": "chokidar --initial src/*.js src/**/*.js -c \"npm run build\"",
"dev": "concurrently \"npm run watch\" \"npm run serve\""
"dev": "concurrently \"npm run watch\" \"npm run serve\"",
"watch": "cross-os x-watch",
"watch:non-linux": "chokidar --initial src/*.js src/**/*.js -c \"npm run build\"",
"watch:linux": "chokidar --polling --poll-interval=1000 --initial src/*.js src/**/*.js -c \"npm run build\"",
"x-watch": {
"darwin": "npm run watch:non-linux",
"win32": "npm run watch:non-linux",
"linux": "npm run watch:linux"
}
},
"keywords": [
"ar",
Expand All @@ -59,6 +66,7 @@
"chai": "^4.1.2",
"chokidar-cli": "^1.2.1",
"concurrently": "^4.0.1",
"cross-os": "^1.3.0",
"fullscreen-polyfill": "^1.0.2",
"intersection-observer": "^0.5.1",
"local-web-server": "^2.6.0",
Expand Down

0 comments on commit bc2f6c7

Please sign in to comment.