Skip to content

Commit

Permalink
glob files in the runner
Browse files Browse the repository at this point in the history
  • Loading branch information
James Halliday committed Mar 5, 2014
1 parent e98ead5 commit c9da9ff
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
10 changes: 8 additions & 2 deletions bin/tape
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
#!/usr/bin/env node

var path = require('path');
process.argv.slice(2).forEach(function(file) {
require(path.resolve(process.cwd(), file));
var glob = require('glob');

process.argv.slice(2).forEach(function (arg) {
glob(arg, function (err, files) {
files.forEach(function (file) {
require(path.resolve(process.cwd(), file));
});
});
});

// vim: ft=javascript
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"dependencies": {
"deep-equal": "~0.2.0",
"defined": "~0.0.0",
"glob": "~3.2.9",
"inherits": "~2.0.1",
"object-inspect": "~0.3.0",
"resumer": "~0.0.0",
Expand Down

0 comments on commit c9da9ff

Please sign in to comment.