diff --git a/gulpfile.js b/gulpfile.js index 3b5f9318eb..513298b3f8 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -53,6 +53,7 @@ gulp.task('jsRuntime/build', function() { var traceurRuntime = gulp.src([ gulpTraceur.RUNTIME_PATH, "node_modules/es6-module-loader/dist/es6-module-loader-sans-promises.src.js", + "node_modules/systemjs/dist/system.src.js", "node_modules/systemjs/lib/extension-register.js" ]).pipe(gulp.dest('build/js')); return traceurRuntime; diff --git a/modules/examples/src/todo/index.html b/modules/examples/src/todo/index.html index 467b4caa94..5abfae0e6c 100644 --- a/modules/examples/src/todo/index.html +++ b/modules/examples/src/todo/index.html @@ -10,11 +10,11 @@ <% } else { %> + + + - - - - + <% } %> - \ No newline at end of file + diff --git a/modules/examples/src/todo/main.es5 b/modules/examples/src/todo/main.es5 index dc0a77604c..adfb17c8db 100644 --- a/modules/examples/src/todo/main.es5 +++ b/modules/examples/src/todo/main.es5 @@ -1 +1,20 @@ -new (System.get("examples/todo/app").App)().run(); +register(System); + +System.baseURL = '../../../'; + +// So that we can import packages like `core/foo`, instead of `core/src/foo`. +System.paths = { + 'core/*': './core/src/*.js', + 'change_detection/*': './change_detection/src/*.js', + 'facade/*': './facade/lib/*.js', + 'di/*': './di/src/*.js', + 'rtts_assert/*': './rtts_assert/lib/*.js', + 'examples/*': './examples/lib/*.js' +}; + + +System.import('examples/todo/app').then(function(m) { + (new m.App).run(); +}, function(e) { + console.error(e.stack || e); +});