Decouple the graph and render logic from the fs watcher (#2020)
This logic is all tightly coupled in the bin. This logic has been notoriously impossible to test due to weird fs timing issues. By extracting the actual logic we're now able to test it in isolation. With this in place replacing Gaze (#636) becomes a viable option. This PR not only massively increases our test coverage for the watcher but also address a bunch of known edge cases i.e. orphaned imports when a files is deleted. Closes #1896 Fixes #1891
Showing
lib/watcher.js
0 → 100644
| ... | ... | @@ -75,12 +75,14 @@ |
| "devDependencies": { | ||
| "coveralls": "^2.11.8", | ||
| "eslint": "^3.4.0", | ||
| "fs-extra": "^0.30.0", | ||
| "istanbul": "^0.4.2", | ||
| "mocha": "^3.1.2", | ||
| "mocha-lcov-reporter": "^1.2.0", | ||
| "object-merge": "^2.5.1", | ||
| "read-yaml": "^1.0.0", | ||
| "rimraf": "^2.5.2", | ||
| "sass-spec": "3.5.0-1" | ||
| "sass-spec": "3.5.0-1", | ||
| "unique-temp-dir": "^1.0.0" | ||
| } | ||
| } |
test/fixtures/watcher/main/one.scss
0 → 100644
test/fixtures/watcher/main/two.scss
0 → 100644
test/fixtures/watcher/sibling/three.scss
0 → 100644
test/watcher.js
0 → 100644
Please
register
or
sign in
to comment