chore(build): Modifies replace scripts to reflect new changes in systemjs.

This commit is contained in:
Ian Riley 2015-08-14 15:06:16 -07:00 committed by Ian Riley
parent e68c978202
commit 8a7a783ff2
10 changed files with 63 additions and 26 deletions

View File

@ -1,4 +1,5 @@
$SCRIPTS$
//importScripts("math_worker.js").execute();
//System.import("examples/src/web_workers/math_worker").then(function(m){console.log("got", m)});
//importScripts("rx.js");
@ -13,10 +14,12 @@ window = {
RegExp: RegExp,
Promise: Promise,
Date: Date
}
assert = function(){}
};
assert = function(){};
System.config({baseURL: '/', defaultJSExtensions: true});
System.import("examples/src/message_broker/background_index").then(function(m){
console.log("running main");
try{

View File

@ -1,4 +1,6 @@
$SCRIPTS$ window = {
$SCRIPTS$
window = {
setTimeout: setTimeout,
Map: Map,
Set: Set,
@ -12,6 +14,9 @@ $SCRIPTS$ window = {
assert = function() {};
importScripts("b64.js");
System.config({baseURL: '/', defaultJSExtensions: true});
System.import("examples/src/web_workers/images/background_index")
.then(
function(m) {

View File

@ -1,4 +1,6 @@
$SCRIPTS$ window = {
$SCRIPTS$
window = {
setTimeout: setTimeout,
Map: Map,
Set: Set,
@ -11,6 +13,9 @@ $SCRIPTS$ window = {
};
assert = function() {};
System.config({baseURL: '/', defaultJSExtensions: true});
System.import("examples/src/web_workers/kitchen_sink/background_index")
.then(
function(m) {

View File

@ -1,4 +1,6 @@
$SCRIPTS$ window = {
$SCRIPTS$
window = {
setTimeout: setTimeout,
Map: Map,
Set: Set,
@ -11,6 +13,9 @@ $SCRIPTS$ window = {
};
assert = function() {};
System.config({baseURL: '/', defaultJSExtensions: true});
System.import("examples/src/web_workers/todo/background_index")
.then(
function(m) {

View File

@ -3,8 +3,17 @@
<script src="traceur-runtime.js" type="text/javascript"></script>
<script src="es6-module-loader-sans-promises.src.js" type="text/javascript"></script>
<script src="system.src.js" type="text/javascript"></script>
<script src="extension-register.js" type="text/javascript"></script>
<script src="extension-cjs.js" type="text/javascript"></script>
<script src="Reflect.js" type="text/javascript"></script>
<script src="runtime_paths.js" type="text/javascript"></script>
<script type="text/javascript">System.import('@@FILENAME_NO_EXT').then(function(m) { m.main(); }, console.error.bind(console))</script>
<script type="text/javascript">
var filename = '@@FILENAME_NO_EXT';
var parent = filename.split('/');
parent = parent.splice(0, parent.length-1).join('/');
System.config({
baseURL: '/',
defaultJSExtensions: true,
paths: {
'rx': parent + '/rx.js'
}
});
System.import(filename).then(function(m) { m.main(); }, console.error.bind(console));
</script>

View File

@ -4,8 +4,17 @@
<script src="traceur-runtime.js" type="text/javascript"></script>
<script src="es6-module-loader-sans-promises.src.js" type="text/javascript"></script>
<script src="system.src.js" type="text/javascript"></script>
<script src="extension-register.js" type="text/javascript"></script>
<script src="extension-cjs.js" type="text/javascript"></script>
<script src="Reflect.js" type="text/javascript"></script>
<script src="runtime_paths.js" type="text/javascript"></script>
<script type="text/javascript">System.import('@@FILENAME_NO_EXT').then(function(m) { m.main(); }, console.error.bind(console))</script>
<script type="text/javascript">
var filename = '@@FILENAME_NO_EXT';
var parent = filename.split('/');
parent = parent.splice(0, parent.length-1).join('/');
System.config({
baseURL: '/',
defaultJSExtensions: true,
paths: {
'rx': parent + '/rx.js'
}
});
System.import(filename).then(function(m) { m.main(); }, console.error.bind(console));
</script>

View File

@ -5,8 +5,17 @@
<script src="traceur-runtime.js" type="text/javascript"></script>
<script src="es6-module-loader-sans-promises.src.js" type="text/javascript"></script>
<script src="system.src.js" type="text/javascript"></script>
<script src="extension-register.js" type="text/javascript"></script>
<script src="extension-cjs.js" type="text/javascript"></script>
<script src="Reflect.js" type="text/javascript"></script>
<script src="runtime_paths.js" type="text/javascript"></script>
<script type="text/javascript">System.import('@@FILENAME_NO_EXT').then(function(m) { m.main(); }, console.error.bind(console))</script>
<script type="text/javascript">
var filename = '@@FILENAME_NO_EXT';
var parent = filename.split('/');
parent = parent.splice(0, parent.length-1).join('/');
System.config({
baseURL: '/',
defaultJSExtensions: true,
paths: {
'rx': parent + '/rx.js'
}
});
System.import(filename).then(function(m) { m.main(); }, console.error.bind(console));
</script>

View File

@ -1,3 +1,2 @@
importScripts("/examples/src/assets/zone-microtask-web-workers.js", "long-stack-trace-zone.js",
"traceur-runtime.js", "es6-module-loader-sans-promises.src.js", "system.src.js",
"extension-register.js", "extension-cjs.js", "Reflect.js", "runtime_paths.js");
"traceur-runtime.js", "es6-module-loader-sans-promises.src.js", "system.src.js", "Reflect.js");

View File

@ -1,7 +0,0 @@
System.paths = {
'*': '/*.js',
'rx': 'rx.js'
};
register(System);
cjs(System);