Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 41 lines (27 sloc) 1.012 kB
696be7c first commit
Jonah Fox authored
1 Bounce
2 ====
3
831151b write - nearly working
Jonah Fox authored
4 Reloads process upon changes to source files and exceptions.
0a93713 refactor. now node specific
weepy authored
5 Great for development.
696be7c first commit
Jonah Fox authored
6
0a93713 refactor. now node specific
weepy authored
7 How?
696be7c first commit
Jonah Fox authored
8 ----
9
831151b write - nearly working
Jonah Fox authored
10 Runs node as child process whilst watching specified files changes.
11 If a change is detected, the child process is restarted.
0a93713 refactor. now node specific
weepy authored
12
13 All STDOUT AND STDERR should be piped back to the console, so it shouldn't look any different.
696be7c first commit
Jonah Fox authored
14
15 Install
16 -----
17
62493ef ** Release ** ! npm install bounce
Jonah Fox authored
18 npm install bounce
0a93713 refactor. now node specific
weepy authored
19
20 Usage
21 ----
696be7c first commit
Jonah Fox authored
22
62493ef ** Release ** ! npm install bounce
Jonah Fox authored
23 bounce [-r] [-g] -w 'dir1,dir2' 'command_to_run -a -b arg1 arg2'
696be7c first commit
Jonah Fox authored
24
831151b write - nearly working
Jonah Fox authored
25 -w: watch paths, comma separated. If using globs (*) then must be wrapped in quotes, e.g. 'lib/*.*'
26 -r: respawn on child process exit
27 -g: growl notify on child process exit (needs growlnotify)
28 -h: show this usage
696be7c first commit
Jonah Fox authored
29
0a93713 refactor. now node specific
weepy authored
30 Running Tests
62493ef ** Release ** ! npm install bounce
Jonah Fox authored
31 -----
696be7c first commit
Jonah Fox authored
32
62493ef ** Release ** ! npm install bounce
Jonah Fox authored
33 * bin/bounce -r -g -w "*" "test/*.js,test/*/*.js" "node test/test.js"
696be7c first commit
Jonah Fox authored
34
698502e waits for process to exit before respawning
weepy@github.com authored
35 Changes to test.js and watch/file.js should cause the counter to restart.
62493ef ** Release ** ! npm install bounce
Jonah Fox authored
36 Counter should restart after 10 s (due to exception being thrown)
698502e waits for process to exit before respawning
weepy@github.com authored
37
62493ef ** Release ** ! npm install bounce
Jonah Fox authored
38 * bin/bounce "node test/error.js"
698502e waits for process to exit before respawning
weepy@github.com authored
39 Should throw an error and exit immediately
696be7c first commit
Jonah Fox authored
40
62493ef ** Release ** ! npm install bounce
Jonah Fox authored
41 Tested on Ubuntu/OSX on Node 0.2.3
Something went wrong with that request. Please try again.