New Watcher implementation (for watching for changed files and determining when to rebundle the app.) Unlike the old DependencyWatcher, it uses absolute paths and contains no Meteor-specific knowledge. Also unlike the old DependencyWatcher, it has comprehensive unit tests (scripts/watch-test.sh).

This commit is contained in:
Geoff Schmidt
2013-04-04 03:51:08 -07:00
committed by David Glasser
parent 45217c41f3
commit 24682fd7f4
7 changed files with 802 additions and 331 deletions

View File

@@ -40,6 +40,11 @@ unset METEOR_WAREHOUSE_DIR
###
./bundler-test.sh
###
### Watcher unit tests
###
./watch-test.sh
###
### Test the Meteor CLI from a checkout. We do this last because it is least likely to fail.
###

14
scripts/watch-test.sh Executable file
View File

@@ -0,0 +1,14 @@
#!/bin/bash
# stop on any non-zero return value from test_watch.js, and print "FAILED"
set -e
trap 'echo FAILED' EXIT
METEOR_DIR=$(pwd)/..
# run tests
./node.sh $METEOR_DIR/tools/tests/test_watch.js
# cleanup trap, and print "SUCCESS"
trap - EXIT
echo PASSED