Skip to content

Commit

Permalink
add mkdir -p to mocha init. Closes #539
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Aug 15, 2012
1 parent a9babb9 commit eb73c7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/_mocha
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,8 @@ program
.command('init <path>')
.description('initialize a client-side mocha setup at <path>')
.action(function(path){
var mkdir = require('mkdirp');
mkdir.sync(path);
var css = fs.readFileSync(join(__dirname, '..', 'mocha.css'));
var js = fs.readFileSync(join(__dirname, '..', 'mocha.js'));
var tmpl = fs.readFileSync(join(__dirname, '..', 'lib/template.html'));
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
, "jade": "0.26.3"
, "diff": "1.0.2"
, "debug": "*"
, "mkdirp": "0.3.3"
}
, "devDependencies": {
"should": "*"
Expand Down

0 comments on commit eb73c7f

Please sign in to comment.