-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated against new base project (angular 2-quickstart)
- Loading branch information
Showing
5 changed files
with
90 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/** | ||
* System configuration for Angular 2 samples | ||
* Adjust as necessary for your application needs. | ||
*/ | ||
(function(global) { | ||
// map tells the System loader where to look for things | ||
var map = { | ||
'moment': 'node_modules/moment/moment.js', | ||
'app': 'app', | ||
'@angular': 'node_modules/@angular', | ||
'angular2-in-memory-web-api': 'node_modules/angular2-in-memory-web-api', | ||
'rxjs': 'node_modules/rxjs' | ||
}; | ||
// packages tells the System loader how to load when no filename and/or no extension | ||
var packages = { | ||
'app': { main: 'boot.js', defaultExtension: 'js' }, | ||
'rxjs': { defaultExtension: 'js' }, | ||
'angular2-in-memory-web-api': { main: 'index.js', defaultExtension: 'js' }, | ||
}; | ||
var ngPackageNames = [ | ||
'common', | ||
'compiler', | ||
'core', | ||
'forms', | ||
'http', | ||
'platform-browser', | ||
'platform-browser-dynamic', | ||
'router', | ||
'router-deprecated', | ||
'upgrade', | ||
]; | ||
// Individual files (~300 requests): | ||
function packIndex(pkgName) { | ||
packages['@angular/'+pkgName] = { main: 'index.js', defaultExtension: 'js' }; | ||
} | ||
// Bundled (~40 requests): | ||
function packUmd(pkgName) { | ||
packages['@angular/'+pkgName] = { main: '/bundles/' + pkgName + '.umd.js', defaultExtension: 'js' }; | ||
} | ||
// Most environments should use UMD; some (Karma) need the individual index files | ||
var setPackageConfig = System.packageWithIndex ? packIndex : packUmd; | ||
// Add package entries for angular packages | ||
ngPackageNames.forEach(setPackageConfig); | ||
var config = { | ||
map: map, | ||
packages: packages | ||
}; | ||
System.config(config); | ||
})(this); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
{ | ||
"compilerOptions": { | ||
"target": "ES5", | ||
"module": "system", | ||
"target": "es5", | ||
"module": "commonjs", | ||
"moduleResolution": "node", | ||
"sourceMap": true, | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"removeComments": false, | ||
"noImplicitAny": false, | ||
"listFiles": true | ||
"noImplicitAny": false | ||
}, | ||
"exclude": [ | ||
"node_modules", | ||
"typings/browser.d.ts" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
{ | ||
"ambientDependencies": { | ||
"es6-shim": "registry:dt/es6-shim#0.31.2+20160317120654" | ||
"globalDependencies": { | ||
"core-js": "registry:dt/core-js#0.0.0+20160602141332", | ||
"jasmine": "registry:dt/jasmine#2.2.0+20160621224255", | ||
"node": "registry:dt/node#6.0.0+20160621231320" | ||
} | ||
} |