grunt-subgrunt
Advanced tools
Comparing version 0.4.1 to 0.4.2
@@ -0,1 +1,5 @@ | ||
### v0.4.2 [view commit logs](https://github.com/tusbar/grunt-subgrunt/compare/v0.4.1...v0.4.2) | ||
* Remove --gruntfile option when running subgrunts (by [rodolpheche](https://github.com/rodolpheche)) | ||
### v0.4.1 [view commit logs](https://github.com/tusbar/grunt-subgrunt/compare/v0.4.0...v0.4.1) | ||
@@ -2,0 +6,0 @@ |
@@ -6,2 +6,5 @@ 'use strict'; | ||
// Load this plugin’s tasks | ||
grunt.loadTasks('tasks'); | ||
grunt.initConfig({ | ||
@@ -16,2 +19,78 @@ jshint: { | ||
} | ||
}, | ||
clean: { | ||
simple: [ | ||
'test/fixtures/simple/tmp' | ||
], | ||
array: [ | ||
'test/fixtures/array/tmp' | ||
], | ||
multiple: [ | ||
'test/fixtures/multiple/tmp' | ||
], | ||
multipleTasks: [ | ||
'test/fixtures/multipleTasks/tmp' | ||
], | ||
noProjectsObject: [ | ||
'test/fixtures/noProjectsObject/tmp' | ||
], | ||
npmInstall: [ | ||
'test/fixtures/npmInstall/node_modules', | ||
'test/fixtures/npmInstall/tmp' | ||
], | ||
npmClean: [ | ||
'test/fixtures/npmClean/node_modules', | ||
'test/fixtures/npmClean/tmp' | ||
] | ||
}, | ||
subgrunt: { | ||
simple: { | ||
projects: { | ||
'test/fixtures/simple': 'build' | ||
} | ||
}, | ||
array: { | ||
projects: [ | ||
'test/fixtures/array' | ||
] | ||
}, | ||
multiple: { | ||
projects: [ | ||
'test/fixtures/multiple/multiple-1', | ||
'test/fixtures/multiple/multiple-2' | ||
] | ||
}, | ||
multipleTasks: { | ||
projects: { | ||
'test/fixtures/multipleTasks': ['one', 'two'] | ||
} | ||
}, | ||
noProjectsObject: { | ||
'test/fixtures/noProjectsObject': 'default' | ||
}, | ||
npmInstall: { | ||
options: { | ||
npmInstall: true | ||
}, | ||
projects: [ | ||
'test/fixtures/npmInstall' | ||
] | ||
}, | ||
npmClean: { | ||
options: { | ||
npmInstall: true, | ||
npmClean: true | ||
}, | ||
projects: [ | ||
'test/fixtures/npmClean' | ||
] | ||
} | ||
}, | ||
nodeunit: { | ||
tests: [ | ||
'test/*_test.js' | ||
] | ||
} | ||
@@ -21,3 +100,6 @@ }); | ||
grunt.registerTask('test', [ | ||
'jshint' | ||
'jshint', | ||
'clean', | ||
'subgrunt', | ||
'nodeunit' | ||
]); | ||
@@ -24,0 +106,0 @@ |
{ | ||
"name": "grunt-subgrunt", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"description": "Run sub-projects' grunt tasks.", | ||
@@ -40,4 +40,6 @@ "repository": { | ||
"grunt-contrib-jshint": "^0.10.0", | ||
"load-grunt-tasks": "^0.6.0" | ||
"grunt-contrib-nodeunit": "^0.4.1", | ||
"grunt-contrib-clean": "^0.6.0", | ||
"load-grunt-tasks": "^1.0.0" | ||
} | ||
} |
@@ -47,2 +47,11 @@ 'use strict'; | ||
// removes --gruntfile arg # fixes issue #13 | ||
for (var i = 0; i < args.length; i++) { | ||
var arg = args[i]; | ||
if (arg.indexOf('--gruntfile') > -1) { | ||
args = args.slice(0, i).concat(args.slice(i + 1)); | ||
break; | ||
} | ||
} | ||
grunt.util.spawn({ | ||
@@ -49,0 +58,0 @@ grunt: true, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
20149
27
369
5
9
1