File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77 "test" : " grunt test"
88 },
99 "keywords" : [
10- " abe" ,
11- " mocks" ,
12- " json"
10+ " abe" ,
11+ " mocks" ,
12+ " json"
1313 ],
1414 "repository" : {
1515 "type" : " git" ,
3434 "grunt-cli" : " ~0.1.13" ,
3535 "grunt-contrib-jshint" : " ~0.10.0" ,
3636 "grunt-jscs" : " ~0.7.1" ,
37- "load-grunt-tasks" : " ~0.6.0"
37+ "load-grunt-tasks" : " ~0.6.0" ,
38+ "mkdirp" : " ~0.5.0"
3839 }
3940}
Original file line number Diff line number Diff line change 11var colors = require ( 'colours' ) ,
2+ fs = require ( 'fs' ) ,
23 glob = require ( 'glob' ) ,
4+ lodash = require ( 'lodash-node' ) ,
5+ mkdirp = require ( 'mkdirp' ) ,
36 path = require ( 'path' ) ,
47 util = require ( 'util' ) ,
5- lodash = require ( 'lodash-node' ) ,
6- fs = require ( 'fs' ) ,
78 errors = {
8- 'NOT_ABE' : 'This file isn\'t valid ABE JSON format'
9+ 'NOT_ABE' : 'This file is an invalid ABE JSON format'
910 } ,
1011 opt = {
1112 'verbose' : false ,
@@ -35,7 +36,7 @@ exports.jsonBuilder = function (options) {
3536 baseName = path . basename ( match , '.json' ) ;
3637
3738 if ( ! fs . existsSync ( filePath ) ) {
38- fs . mkdir ( filePath , function ( err ) {
39+ mkdirp ( filePath , function ( err ) {
3940 if ( err ) {
4041 console . log ( err . red ) ;
4142 } else if ( opt . verbose ) {
You can’t perform that action at this time.
0 commit comments