Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100755 26 lines (24 sloc) 0.689 kb
7b25dc8 @creationix Start with a make-like system called `do`
authored
1 #!/usr/bin/env node
2 process.mixin(require('sys'));
3
4 var commands = {
5 install: function () {
6 puts("install");
7 },
8 test: function () {
9 puts("Running tests:");
910663c @creationix Remove the bad test for jsondb and change the dofile to run all tests…
authored
10 exec("ls test/**/test-*.js | xargs -L 1 /usr/local/bin/node", function (error, stdout, stderr){
835aac9 @creationix Remove a ton of cruft to keep the code lean. Also updated the README…
authored
11 if (error) {
12 throw(error);
13 } else {
14 puts("All tests pass");
15 }
16 })
7b25dc8 @creationix Start with a make-like system called `do`
authored
17 }
18 };
19
20 if (process.ARGV[2] && typeof commands[process.ARGV[2]] === 'function') {
21 commands[process.ARGV[2]].apply(this, process.ARGV.slice(3));
22 } else {
23 puts("\ndo usage:" +
24 "\n\t`./do install` - installs persistence into your local node library" +
25 "\n\t`./do test` - run the included test suite\n");
26 }
Something went wrong with that request. Please try again.