grunt-neuter
Advanced tools
Comparing version 0.2.0 to 0.3.0
@@ -89,2 +89,7 @@ /* | ||
} | ||
}, | ||
can_accept_file_patterns: { | ||
files: { | ||
'tmp/can_accept_file_patterns': ['test/fixtures/glob/*.js'] | ||
} | ||
} | ||
@@ -91,0 +96,0 @@ }, |
{ | ||
"name": "grunt-neuter", | ||
"version": "0.2.0", | ||
"version": "0.3.0", | ||
"description": "Builds source files in the order you require.", | ||
@@ -19,8 +19,8 @@ "main": "Gruntfile.js", | ||
"devDependencies": { | ||
"grunt-contrib-jshint": "~0.1.0", | ||
"grunt-contrib-nodeunit": "~0.1.1", | ||
"grunt-contrib-clean": "~0.4.0a", | ||
"grunt-contrib-internal": "~0.1.1", | ||
"grunt": "~0.4.0" | ||
"grunt": "~0.4.0rc5", | ||
"grunt-contrib-jshint": "~0.1.1rc5", | ||
"grunt-contrib-nodeunit": "0.1.2rc5", | ||
"grunt-contrib-clean": "~0.4.0rc5", | ||
"grunt-contrib-internal": "~0.1.1" | ||
} | ||
} |
@@ -69,17 +69,19 @@ /* | ||
// which defaults to a functional closure. | ||
grunt.file.expand({nonull: true}, this.file.srcRaw).map(finder, this); | ||
var outStr = out.map(function(section){ | ||
var templateData = { | ||
data: section | ||
}; | ||
this.files.forEach(function(file) { | ||
grunt.file.expand({nonull: true}, file.src).map(finder, this); | ||
var outStr = out.map(function(section){ | ||
var templateData = { | ||
data: section | ||
}; | ||
if (options.includeSourceURL) { | ||
return "eval(" + JSON.stringify(grunt.template.process(options.template, templateData) + "//@ sourceURL=" + section.filepath) +")"; | ||
} else { | ||
return grunt.template.process(options.template, templateData); | ||
} | ||
}).join(options.separator); | ||
if (options.includeSourceURL) { | ||
return "eval(" + JSON.stringify(grunt.template.process(options.template, templateData) + "//@ sourceURL=" + section.filepath) +")"; | ||
} else { | ||
return grunt.template.process(options.template, templateData); | ||
} | ||
}).join(options.separator); | ||
grunt.file.write(this.file.dest, outStr); | ||
grunt.file.write(file.dest, outStr); | ||
}); | ||
}); | ||
}; |
@@ -61,3 +61,11 @@ 'use strict'; | ||
test.done(); | ||
}, | ||
can_accept_file_patterns: function(test){ | ||
var actual = grunt.file.read('tmp/can_accept_file_patterns'); | ||
var expected = grunt.file.read('test/expected/can_accept_file_patterns'); | ||
test.equal(actual, expected, 'file patterns can be correctly read'); | ||
test.done(); | ||
} | ||
}; |
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
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
14906
25
250