This is mainly intended to support jasmine-browser-runner, which will load a script that configures the env in between the two boot files (boot0.js and boot1.js). The single-file boot.js is retained for now but will be removed in a future release.
58 lines
1.3 KiB
JavaScript
58 lines
1.3 KiB
JavaScript
var standaloneLibDir = "lib/jasmine-" + jasmineVersion;
|
|
|
|
function root(path) { return "./" + path; }
|
|
function libJasmineCore(path) { return root("lib/jasmine-core/" + path); }
|
|
function dist(path) { return root("dist/" + path); }
|
|
|
|
module.exports = {
|
|
standalone: {
|
|
options: {
|
|
archive: root("dist/jasmine-standalone-" + global.jasmineVersion + ".zip")
|
|
},
|
|
|
|
files: [
|
|
{ src: [ root("MIT.LICENSE") ] },
|
|
{
|
|
src: [ "jasmine_favicon.png"],
|
|
dest: standaloneLibDir,
|
|
expand: true,
|
|
cwd: root("images")
|
|
},
|
|
{
|
|
src: [
|
|
"jasmine.js",
|
|
"jasmine-html.js",
|
|
"jasmine.css"
|
|
],
|
|
dest: standaloneLibDir,
|
|
expand: true,
|
|
cwd: libJasmineCore("")
|
|
},
|
|
{
|
|
src: [ "boot0.js", "boot1.js" ],
|
|
dest: standaloneLibDir,
|
|
expand: true,
|
|
cwd: libJasmineCore("boot")
|
|
},
|
|
{
|
|
src: [ "SpecRunner.html" ],
|
|
dest: root(""),
|
|
expand: true,
|
|
cwd: dist("tmp")
|
|
},
|
|
{
|
|
src: [ "*.js" ],
|
|
dest: "src",
|
|
expand: true,
|
|
cwd: libJasmineCore("example/src/")
|
|
},
|
|
{
|
|
src: [ "*.js" ],
|
|
dest: "spec",
|
|
expand: true,
|
|
cwd: libJasmineCore("example/spec/")
|
|
}
|
|
]
|
|
}
|
|
};
|