systemjs-builder
Advanced tools
Comparing version 0.1.5 to 0.1.6
@@ -33,3 +33,3 @@ // NB move these CommonJS layers out into a static operation on the CommonJS module rather | ||
function cjsOutput(name, deps, address, source, baseURL) { | ||
var filename = path.relative(baseURL, address); | ||
var filename = path.relative(baseURL, address).replace(/\\/g, "/"); | ||
var dirname = path.dirname(filename); | ||
@@ -36,0 +36,0 @@ var output = 'System.register("' + name + '", ' + JSON.stringify(deps) + ', true, function(require, exports, module) {\n' |
{ | ||
"name": "systemjs-builder", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
"format register"; | ||
System.register("tree/amd-1", ['./first', './second'], false, function(__require, __exports, __module) { | ||
return (function(first, second, require, module) { | ||
module.exports = { | ||
first: first, | ||
second: require('./second') | ||
}; | ||
}).call(this, __require('./first'), __require('./second'), __require, __module); | ||
}); | ||
(function() { | ||
function define(){}; define.amd = {}; | ||
System.register("tree/amd-1", ['./first', './second'], false, function(__require, __exports, __module) { | ||
return (function(first, second, require, module) { | ||
module.exports = { | ||
first: first, | ||
second: require('./second') | ||
}; | ||
}).call(this, __require('./first'), __require('./second'), __require, __module); | ||
}); | ||
})(); |
"format register"; | ||
System.register("tree/amd-2", [], false, function() { | ||
return {amd: '2'}; | ||
}); | ||
(function() { | ||
function define(){}; define.amd = {}; | ||
System.register("tree/amd-2", [], false, function() { | ||
return {amd: '2'}; | ||
}); | ||
})(); |
"format register"; | ||
System.register("tree/amd-3", ["./first"], false, function(__require, __exports, __module) { | ||
(function(req, exports, module) { | ||
module.exports = req('./first'); | ||
}).call(__exports, __require, __exports, __module); | ||
}); | ||
(function() { | ||
function define(){}; define.amd = {}; | ||
System.register("tree/amd-3", ["./first"], false, function(__require, __exports, __module) { | ||
(function(req, exports, module) { | ||
module.exports = req('./first'); | ||
}).call(__exports, __require, __exports, __module); | ||
}); | ||
})(); |
"format register"; | ||
function factory(second) { | ||
return second; | ||
} | ||
System.register("tree/amd-4", ['./second'], false, function(__require, __exports, __module) { | ||
return (factory).call(this, __require('./second')); | ||
}); | ||
(function() { | ||
function define(){}; define.amd = {}; | ||
function factory(second) { | ||
return second; | ||
} | ||
System.register("tree/amd-4", ['./second'], false, function(__require, __exports, __module) { | ||
return (factory).call(this, __require('./second')); | ||
}); | ||
})(); |
"format register"; | ||
function factory() { | ||
window.jquery = '1'; | ||
return {jquery: '1'}; | ||
} | ||
System.register("tree/amd-5a", [], false, function(__require, __exports, __module) { | ||
return (factory).call(this); | ||
}); | ||
(function() { | ||
function define(){}; define.amd = {}; | ||
function factory() { | ||
window.jquery = '1'; | ||
return {jquery: '1'}; | ||
} | ||
System.register("tree/amd-5a", [], false, function(__require, __exports, __module) { | ||
return (factory).call(this); | ||
}); | ||
})(); |
"format register"; | ||
function factory(first) { | ||
return { | ||
jquery: '1', | ||
first: first | ||
}; | ||
} | ||
System.register("tree/amd-5b", ['./first'], false, function(__require, __exports, __module) { | ||
return (factory).call(this, __require('./first')); | ||
}); | ||
(function() { | ||
function define(){}; define.amd = {}; | ||
function factory(first) { | ||
return { | ||
jquery: '1', | ||
first: first | ||
}; | ||
} | ||
System.register("tree/amd-5b", ['./first'], false, function(__require, __exports, __module) { | ||
return (factory).call(this, __require('./first')); | ||
}); | ||
})(); |
"format register"; | ||
System.register("tree/amd-6a", [], false, function(require) { | ||
this.p = 'a'; | ||
}); | ||
(function() { | ||
function define(){}; define.amd = {}; | ||
System.register("tree/amd-6a", [], false, function(require) { | ||
this.p = 'a'; | ||
}); | ||
})(); |
"format register"; | ||
System.register("tree/amd-6b", [], false, function(__require, __exports, __module) { | ||
return (function() { | ||
this.p = 'b'; | ||
}).call(__exports, __require, __exports); | ||
}); | ||
(function() { | ||
function define(){}; define.amd = {}; | ||
System.register("tree/amd-6b", [], false, function(__require, __exports, __module) { | ||
return (function() { | ||
this.p = 'b'; | ||
}).call(__exports, __require, __exports); | ||
}); | ||
})(); |
@@ -12,2 +12,14 @@ "format register"; | ||
System.register("tree/cjs", [], true, function(require, exports, module) { | ||
var global = System.global; | ||
var __define = global.define; | ||
global.define = undefined; | ||
var __filename = "tree/cjs.js"; | ||
var __dirname = "tree"; | ||
exports.cjs = true; | ||
global.define = __define; | ||
return module.exports; | ||
}); | ||
System.register("tree/second", ["tree/third", "tree/cjs"], function($__export) { | ||
@@ -39,13 +51,1 @@ "use strict"; | ||
}); | ||
System.register("tree/cjs", [], true, function(require, exports, module) { | ||
var global = System.global; | ||
var __define = global.define; | ||
global.define = undefined; | ||
var __filename = "tree/cjs.js"; | ||
var __dirname = "tree"; | ||
exports.cjs = true; | ||
global.define = __define; | ||
return module.exports; | ||
}); |
114
test/sfx.js
@@ -197,2 +197,4 @@ "format register"; | ||
} | ||
else | ||
module.dependencies.push(null); | ||
@@ -371,2 +373,14 @@ // run the setter for this dependency | ||
System.register("tree/cjs", [], true, function(require, exports, module) { | ||
var global = System.global; | ||
var __define = global.define; | ||
global.define = undefined; | ||
var __filename = "tree/cjs.js"; | ||
var __dirname = "tree"; | ||
exports.cjs = true; | ||
global.define = __define; | ||
return module.exports; | ||
}); | ||
System.register("tree/jquery", [], false, function(__require, __exports, __module) { | ||
@@ -379,2 +393,26 @@ System.get("@@global-helpers").prepareGlobal(__module.id, []); | ||
System.register("tree/plugin", [], true, function(require, exports, module) { | ||
var global = System.global; | ||
var __define = global.define; | ||
global.define = undefined; | ||
var __filename = "tree/plugin.js"; | ||
var __dirname = "tree"; | ||
exports.build = false; | ||
global.define = __define; | ||
return module.exports; | ||
}); | ||
System.register("tree/text.txt!tree/text-plugin", [], true, function(require, exports, module) { | ||
var global = System.global; | ||
var __define = global.define; | ||
global.define = undefined; | ||
var __filename = "tree/text.txt"; | ||
var __dirname = "tree"; | ||
module.exports = "This is some text"; | ||
global.define = __define; | ||
return module.exports; | ||
}); | ||
System.register("tree/second", ["tree/third", "tree/cjs"], function($__export) { | ||
@@ -404,11 +442,13 @@ "use strict"; | ||
System.register("tree/amd", ['./global', './some!./plugin', './text.txt!./text-plugin'], false, function(__require, __exports, __module) { | ||
return (function(a, b, c) { | ||
return { | ||
is: 'amd', | ||
text: c | ||
}; | ||
}).call(this, __require('./global'), __require('./some!./plugin'), __require('./text.txt!./text-plugin')); | ||
}); | ||
(function() { | ||
function define(){}; define.amd = {}; | ||
System.register("tree/amd", ['./global', './some!./plugin', './text.txt!./text-plugin'], false, function(__require, __exports, __module) { | ||
return (function(a, b, c) { | ||
return { | ||
is: 'amd', | ||
text: c | ||
}; | ||
}).call(this, __require('./global'), __require('./some!./plugin'), __require('./text.txt!./text-plugin')); | ||
}); | ||
})(); | ||
System.register("tree/first", ["tree/second", "tree/amd"], function($__export) { | ||
@@ -429,48 +469,14 @@ "use strict"; | ||
System.register("tree/amd-1", ['./first', './second'], false, function(__require, __exports, __module) { | ||
return (function(first, second, require, module) { | ||
module.exports = { | ||
first: first, | ||
second: require('./second') | ||
}; | ||
}).call(this, __require('./first'), __require('./second'), __require, __module); | ||
}); | ||
System.register("tree/cjs", [], true, function(require, exports, module) { | ||
var global = System.global; | ||
var __define = global.define; | ||
global.define = undefined; | ||
var __filename = "tree/cjs.js"; | ||
var __dirname = "tree"; | ||
exports.cjs = true; | ||
global.define = __define; | ||
return module.exports; | ||
}); | ||
System.register("tree/plugin", [], true, function(require, exports, module) { | ||
var global = System.global; | ||
var __define = global.define; | ||
global.define = undefined; | ||
var __filename = "tree/plugin.js"; | ||
var __dirname = "tree"; | ||
exports.build = false; | ||
global.define = __define; | ||
return module.exports; | ||
}); | ||
System.register("tree/text.txt!tree/text-plugin", [], true, function(require, exports, module) { | ||
var global = System.global; | ||
var __define = global.define; | ||
global.define = undefined; | ||
var __filename = "tree/text.txt"; | ||
var __dirname = "tree"; | ||
module.exports = "This is some text"; | ||
global.define = __define; | ||
return module.exports; | ||
}); | ||
(function() { | ||
function define(){}; define.amd = {}; | ||
System.register("tree/amd-1", ['./first', './second'], false, function(__require, __exports, __module) { | ||
return (function(first, second, require, module) { | ||
module.exports = { | ||
first: first, | ||
second: require('./second') | ||
}; | ||
}).call(this, __require('./first'), __require('./second'), __require, __module); | ||
}); | ||
})(); | ||
(function() { | ||
var loader = System; | ||
@@ -477,0 +483,0 @@ var hasOwnProperty = loader.global.hasOwnProperty; |
@@ -13,2 +13,14 @@ "format register"; | ||
System.register("tree/cjs", [], true, function(require, exports, module) { | ||
var global = System.global; | ||
var __define = global.define; | ||
global.define = undefined; | ||
var __filename = "tree/cjs.js"; | ||
var __dirname = "tree"; | ||
exports.cjs = true; | ||
global.define = __define; | ||
return module.exports; | ||
}); | ||
System.register("tree/jquery", [], false, function(__require, __exports, __module) { | ||
@@ -21,2 +33,25 @@ System.get("@@global-helpers").prepareGlobal(__module.id, []); | ||
System.register("tree/plugin", [], true, function(require, exports, module) { | ||
var global = System.global; | ||
var __define = global.define; | ||
global.define = undefined; | ||
var __filename = "tree/plugin.js"; | ||
var __dirname = "tree"; | ||
exports.build = false; | ||
global.define = __define; | ||
return module.exports; | ||
}); | ||
System.register("tree/text.txt!tree/text-plugin", [], true, function(require, exports, module) { | ||
var global = System.global; | ||
var __define = global.define; | ||
global.define = undefined; | ||
var __filename = "tree/text.txt"; | ||
var __dirname = "tree"; | ||
module.exports = "This is some text"; | ||
global.define = __define; | ||
return module.exports; | ||
}); | ||
System.register("tree/second", ["tree/third", "tree/cjs"], function($__export) { | ||
@@ -46,11 +81,13 @@ "use strict"; | ||
System.register("tree/amd", ['./global', './some!./plugin', './text.txt!./text-plugin'], false, function(__require, __exports, __module) { | ||
return (function(a, b, c) { | ||
return { | ||
is: 'amd', | ||
text: c | ||
}; | ||
}).call(this, __require('./global'), __require('./some!./plugin'), __require('./text.txt!./text-plugin')); | ||
}); | ||
(function() { | ||
function define(){}; define.amd = {}; | ||
System.register("tree/amd", ['./global', './some!./plugin', './text.txt!./text-plugin'], false, function(__require, __exports, __module) { | ||
return (function(a, b, c) { | ||
return { | ||
is: 'amd', | ||
text: c | ||
}; | ||
}).call(this, __require('./global'), __require('./some!./plugin'), __require('./text.txt!./text-plugin')); | ||
}); | ||
})(); | ||
System.register("tree/first", ["tree/second", "tree/amd"], function($__export) { | ||
@@ -70,36 +107,1 @@ "use strict"; | ||
}); | ||
System.register("tree/cjs", [], true, function(require, exports, module) { | ||
var global = System.global; | ||
var __define = global.define; | ||
global.define = undefined; | ||
var __filename = "tree/cjs.js"; | ||
var __dirname = "tree"; | ||
exports.cjs = true; | ||
global.define = __define; | ||
return module.exports; | ||
}); | ||
System.register("tree/plugin", [], true, function(require, exports, module) { | ||
var global = System.global; | ||
var __define = global.define; | ||
global.define = undefined; | ||
var __filename = "tree/plugin.js"; | ||
var __dirname = "tree"; | ||
exports.build = false; | ||
global.define = __define; | ||
return module.exports; | ||
}); | ||
System.register("tree/text.txt!tree/text-plugin", [], true, function(require, exports, module) { | ||
var global = System.global; | ||
var __define = global.define; | ||
global.define = undefined; | ||
var __filename = "tree/text.txt"; | ||
var __dirname = "tree"; | ||
module.exports = "This is some text"; | ||
global.define = __define; | ||
return module.exports; | ||
}); |
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
73677
1846