Move built console.js into lib and include in standalone distribution

[finishes #59679110]
This commit is contained in:
Sheel Choksi
2013-10-29 13:58:22 -07:00
parent 61993cf1fc
commit a03fad8911
4 changed files with 16 additions and 7 deletions

View File

@@ -1,7 +1,8 @@
var standaloneLibDir = "lib/jasmine-" + jasmineVersion;
function root(path) { return "./" + path; }
function lib(path) { return root("lib/jasmine-core/" + path); }
function libJasmineCore(path) { return root("lib/jasmine-core/" + path); }
function libConsole() { return "lib/console/" }
function dist(path) { return root("dist/" + path); }
module.exports = {
@@ -26,13 +27,21 @@ module.exports = {
],
dest: standaloneLibDir,
expand: true,
cwd: lib("")
cwd: libJasmineCore("")
},
{
src: [
"console.js"
],
dest: standaloneLibDir,
expand: true,
cwd: libConsole()
},
{
src: [ "boot.js" ],
dest: standaloneLibDir,
expand: true,
cwd: lib("boot")
cwd: libJasmineCore("boot")
},
{
src: [ "SpecRunner.html" ],
@@ -44,13 +53,13 @@ module.exports = {
src: [ "*.js" ],
dest: "src",
expand: true,
cwd: lib("example/src/")
cwd: libJasmineCore("example/src/")
},
{
src: [ "*.js" ],
dest: "spec",
expand: true,
cwd: lib("example/spec/")
cwd: libJasmineCore("example/spec/")
}
]
}

View File

@@ -44,7 +44,7 @@ module.exports = {
'src/console/requireConsole.js',
'src/console/ConsoleReporter.js'
],
dest: 'src/console/console.js'
dest: 'lib/console/console.js'
},
options: {
banner: license(),

View File

@@ -6,7 +6,7 @@ var path = require('path');
var jasmineRequire = require('../lib/jasmine-core/jasmine.js');
var jasmine = jasmineRequire.core(jasmineRequire);
var consoleFns = require('../src/console/console.js');
var consoleFns = require('../lib/console/console.js');
extend(jasmineRequire, consoleFns);
jasmineRequire.console(jasmineRequire, jasmine);