Canonical Jasmine version now lives in `package.json` (Node formatted) and is copied into Jasmine source (JavaScript and Ruby) Jasmine distribution now has MIT license and Pivotal Labs copyright at the top of each distributed file.
48 lines
1.0 KiB
JavaScript
48 lines
1.0 KiB
JavaScript
var grunt = require('grunt');
|
|
|
|
function license() {
|
|
var currentYear = "" + new Date(Date.now()).getFullYear();
|
|
|
|
return grunt.template.process(
|
|
grunt.file.read("grunt/templates/licenseBanner.js.jst"),
|
|
{ data: { currentYear: currentYear}});
|
|
}
|
|
|
|
module.exports = {
|
|
'jasmine-html': {
|
|
src: [
|
|
'src/html/HtmlReporter.js',
|
|
'src/html/HtmlSpecFilter.js',
|
|
'src/html/ResultsNode.js',
|
|
'src/html/QueryString.js'
|
|
],
|
|
dest: 'lib/jasmine-core/jasmine-html.js'
|
|
},
|
|
jasmine: {
|
|
src: [
|
|
'src/core/base.js',
|
|
'src/core/util.js',
|
|
'src/core/Spec.js',
|
|
'src/core/Env.js',
|
|
'src/core/JsApiReporter.js',
|
|
'src/core/Matchers',
|
|
'src/core/PrettyPrinter',
|
|
'src/core/Suite',
|
|
'src/core/**/*.js',
|
|
'src/version.js'
|
|
],
|
|
dest: 'lib/jasmine-core/jasmine.js'
|
|
},
|
|
boot: {
|
|
src: ['lib/jasmine-core/boot/boot.js'],
|
|
dest: 'lib/jasmine-core/boot.js'
|
|
},
|
|
options: {
|
|
banner: license(),
|
|
process: {
|
|
data: {
|
|
version: global.jasmineVersion
|
|
}
|
|
}
|
|
}
|
|
}; |