1
1
// #docregion
2
2
module . exports = function ( config ) {
3
3
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
6
5
var appAssets = '/base/app/' ; // component assets fetched by Angular's compiler
7
6
8
7
// 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
11
10
12
11
config . set ( {
13
12
basePath : '' ,
@@ -58,8 +57,8 @@ module.exports = function(config) {
58
57
{ pattern : 'node_modules/@angular/**/*.js' , included : false , watched : false } ,
59
58
{ pattern : 'node_modules/@angular/**/*.js.map' , included : false , watched : false } ,
60
59
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 } ,
63
62
'karma-test-shim.js' , // optionally extend SystemJS mapping e.g., with barrels
64
63
65
64
// transpiled application & spec code paths loaded via module imports
@@ -73,16 +72,16 @@ module.exports = function(config) {
73
72
{ pattern : appBase + '**/*.css' , included : false , watched : true } ,
74
73
75
74
// 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 } ,
77
76
{ pattern : appBase + '**/*.js.map' , included : false , watched : false } ,
78
77
{ pattern : testingSrcBase + '**/*.ts' , included : false , watched : false } ,
79
78
{ pattern : testingBase + '**/*.js.map' , included : false , watched : false }
80
79
] ,
81
80
82
81
// Proxied base paths for loading assets
83
82
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/'
86
85
} ,
87
86
88
87
exclude : [ ] ,
0 commit comments