-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.js
76 lines (68 loc) · 1.79 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
var packages = {
'app': { defaultExtension: 'ts' },
'rxjs': { defaultExtension: 'js' }
};
var packageNames = [
'@angular/common',
'@angular/compiler',
'@angular/core',
'@angular/http',
'@angular/platform-browser',
'@angular/platform-browser-dynamic',
'@angular/router',
'@angular/upgrade',
'symbol-observable',
'reflect-metadata'
];
// add package entries for angular packages in the form '@angular/common': { main: 'index.js', defaultExtension: 'js' }
packageNames.forEach(function(pkgName) {
packages[pkgName] = { main: 'index.js', defaultExtension: 'js' };
});
System.config({
baseURL: './',
defaultJSExtensions: true,
transpiler: 'typescript',
paths: {
'npm:*': 'node_modules/*'
},
packages: packages,
map: {
'@angular': 'npm:@angular',
'rxjs': 'npm:rxjs',
'symbol-observable': 'npm:symbol-observable',
'reflect-metadata': 'npm:reflect-metadata',
'angular': 'npm:angular/angular.js',
'angular-route': 'npm:angular-route/angular-route.js',
'jquery': 'npm:jquery/dist/jquery.js',
'typescript': 'npm:typescript/lib/typescript.js',
/* only necessary for tests */
'angular-mocks': 'npm:angular-mocks/angular-mocks.js',
'systemjs': 'npm:systemjs/dist/system.js',
'system-polyfills': 'npm:systemjs/dist/system-polyfills.js',
'es6-module-loader': 'npm:es6-module-loader/dist/es6-module-loader.js'
},
meta: {
'@angular': {
format: 'global'
},
'angular': {
format: 'global',
exports: 'angular',
deps: ['jquery']
},
'angular-route': {
format: 'global',
deps: ['angular']
},
'jquery': {
format: 'global',
exports: 'jQuery'
},
/* tests */
'angular-mocks': {
format: 'global',
exports: 'angular',
deps: ['angular']
}
}
})