11// #docregion
22module . exports = function ( config ) {
33
4- var appBase = 'app/' ; // transpiled app JS and map files
5- var appSrcBase = 'app/' ; // app source TS files
4+ var appBase = 'src/' ; // transpiled app JS and map files
65 var appAssets = '/base/app/' ; // component assets fetched by Angular's compiler
76
87 // Testing helpers (optional) are conventionally in a folder called `testing`
9- var testingBase = 'testing/' ; // transpiled test JS and map files
10- var testingSrcBase = 'testing/' ; // test source TS files
8+ var testingBase = 'src/ testing/' ; // transpiled test JS and map files
9+ var testingSrcBase = 'src/ testing/' ; // test source TS files
1110
1211 config . set ( {
1312 basePath : '' ,
@@ -58,8 +57,8 @@ module.exports = function(config) {
5857 { pattern : 'node_modules/@angular/**/*.js' , included : false , watched : false } ,
5958 { pattern : 'node_modules/@angular/**/*.js.map' , included : false , watched : false } ,
6059
61- { pattern : ' systemjs.config.js', included : false , watched : false } ,
62- { pattern : ' systemjs.config.extras.js', included : false , watched : false } ,
60+ { pattern : appBase + '/ systemjs.config.js', included : false , watched : false } ,
61+ { pattern : appBase + '/ systemjs.config.extras.js', included : false , watched : false } ,
6362 'karma-test-shim.js' , // optionally extend SystemJS mapping e.g., with barrels
6463
6564 // transpiled application & spec code paths loaded via module imports
@@ -73,16 +72,16 @@ module.exports = function(config) {
7372 { pattern : appBase + '**/*.css' , included : false , watched : true } ,
7473
7574 // Paths for debugging with source maps in dev tools
76- { pattern : appSrcBase + '**/*.ts' , included : false , watched : false } ,
75+ { pattern : appBase + '**/*.ts' , included : false , watched : false } ,
7776 { pattern : appBase + '**/*.js.map' , included : false , watched : false } ,
7877 { pattern : testingSrcBase + '**/*.ts' , included : false , watched : false } ,
7978 { pattern : testingBase + '**/*.js.map' , included : false , watched : false }
8079 ] ,
8180
8281 // Proxied base paths for loading assets
8382 proxies : {
84- // required for component assets fetched by Angular's compiler
85- "/app/" : appAssets
83+ // required for modules fetched by SystemJS
84+ '/base/src/node_modules/' : '/base/node_modules/'
8685 } ,
8786
8887 exclude : [ ] ,
0 commit comments