Skip to content

Commit fe382dc

Browse files
committed
updated Angular to RC6
1 parent 315708f commit fe382dc

File tree

3 files changed

+53
-58
lines changed

3 files changed

+53
-58
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## [ Angular2 Updated to RC5 ]
1+
## [ Angular2 Updated to RC6 ]
22
# Angular2 MEAN - QuickStart application with ExpressJS, MongoDB, Gulp and Typescript (Repository Pattern)
33

44
[![Build status](https://ci.appveyor.com/api/projects/status/y7cp312hef8sju0w/branch/master?svg=true)](https://ci.appveyor.com/project/moizKachwala/angular2-express-mongo-gulp-node-typescript/branch/master)

client/systemjs.config.js

Lines changed: 34 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -4,45 +4,37 @@ var isPublic = typeof window != "undefined";
44
* System configuration for Angular 2 samples
55
* Adjust as necessary for your application needs.
66
*/
7-
(function(global) {
8-
// map tells the System loader where to look for things
9-
var map = {
10-
'app': 'app', // 'dist',
11-
'@angular': (isPublic)? '@angular' : 'node_modules/@angular',
12-
'rxjs': (isPublic)? 'rxjs' : 'node_modules/rxjs',
13-
};
14-
// packages tells the System loader how to load when no filename and/or no extension
15-
var packages = {
16-
'app': { main: 'main.js', defaultExtension: 'js' },
17-
'rxjs': { defaultExtension: 'js' }
18-
};
19-
var ngPackageNames = [
20-
'common',
21-
'compiler',
22-
'core',
23-
'forms',
24-
'http',
25-
'platform-browser',
26-
'platform-browser-dynamic',
27-
'router',
28-
'router-deprecated',
29-
'upgrade',
30-
];
31-
// Individual files (~300 requests):
32-
function packIndex(pkgName) {
33-
packages['@angular/'+pkgName] = { main: 'index.js', defaultExtension: 'js' };
34-
}
35-
// Bundled (~40 requests):
36-
function packUmd(pkgName) {
37-
packages['@angular/'+pkgName] = { main: 'bundles/' + pkgName + '.umd.js', defaultExtension: 'js' };
38-
}
39-
// Most environments should use UMD; some (Karma) need the individual index files
40-
var setPackageConfig = System.packageWithIndex ? packIndex : packUmd;
41-
// Add package entries for angular packages
42-
ngPackageNames.forEach(setPackageConfig);
43-
var config = {
44-
map: map,
45-
packages: packages
46-
};
47-
System.config(config);
48-
})(this);
7+
(function (global) {
8+
System.config({
9+
paths: {
10+
// paths serve as alias
11+
'npm:': (isPublic) ? 'node_modules/' : ''
12+
},
13+
// map tells the System loader where to look for things
14+
map: {
15+
// our app is within the app folder
16+
app: 'app',
17+
// angular bundles
18+
'@angular/core': 'npm:@angular/core/bundles/core.umd.js',
19+
'@angular/common': 'npm:@angular/common/bundles/common.umd.js',
20+
'@angular/compiler': 'npm:@angular/compiler/bundles/compiler.umd.js',
21+
'@angular/platform-browser': 'npm:@angular/platform-browser/bundles/platform-browser.umd.js',
22+
'@angular/platform-browser-dynamic': 'npm:@angular/platform-browser-dynamic/bundles/platform-browser-dynamic.umd.js',
23+
'@angular/http': 'npm:@angular/http/bundles/http.umd.js',
24+
'@angular/router': 'npm:@angular/router/bundles/router.umd.js',
25+
'@angular/forms': 'npm:@angular/forms/bundles/forms.umd.js',
26+
// other libraries
27+
'rxjs': 'npm:rxjs'
28+
},
29+
// packages tells the System loader how to load when no filename and/or no extension
30+
packages: {
31+
app: {
32+
main: './main.js',
33+
defaultExtension: 'js'
34+
},
35+
rxjs: {
36+
defaultExtension: 'js'
37+
}
38+
}
39+
});
40+
})(this);

package.json

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,24 +24,27 @@
2424
"author": "Moiz Kachwala",
2525
"license": "MIT",
2626
"dependencies": {
27-
"@angular/common": "2.0.0-rc.5",
28-
"@angular/compiler": "2.0.0-rc.5",
29-
"@angular/core": "2.0.0-rc.5",
30-
"@angular/forms": "0.3.0",
31-
"@angular/http": "2.0.0-rc.5",
32-
"@angular/platform-browser": "2.0.0-rc.5",
33-
"@angular/platform-browser-dynamic": "2.0.0-rc.5",
34-
"@angular/router": "3.0.0-rc.1",
35-
"@angular/router-deprecated": "2.0.0-rc.2",
36-
"@angular/upgrade": "2.0.0-rc.5",
37-
"systemjs": "0.19.27",
38-
"core-js": "^2.4.0",
27+
"@angular/common": "2.0.0-rc.6",
28+
"@angular/compiler": "2.0.0-rc.6",
29+
"@angular/compiler-cli": "0.6.0",
30+
"@angular/core": "2.0.0-rc.6",
31+
"@angular/forms": "2.0.0-rc.6",
32+
"@angular/http": "2.0.0-rc.6",
33+
"@angular/platform-browser": "2.0.0-rc.6",
34+
"@angular/platform-browser-dynamic": "2.0.0-rc.6",
35+
"@angular/router": "3.0.0-rc.2",
36+
"@angular/upgrade": "2.0.0-rc.6",
37+
38+
"core-js": "^2.4.1",
3939
"reflect-metadata": "^0.1.3",
40-
"rxjs": "5.0.0-beta.6",
41-
"zone.js": "^0.6.12",
40+
"rxjs": "5.0.0-beta.11",
41+
"systemjs": "0.19.27",
42+
"zone.js": "^0.6.17",
43+
4244
"body-parser": "^1.15.1",
4345
"express": "^4.13.4",
44-
"mongoose": "^4.5.0"
46+
"mongoose": "^4.5.0",
47+
"bootstrap": "^3.3.6"
4548
},
4649
"devDependencies": {
4750
"@types/core-js": "^0.9.32",

0 commit comments

Comments
 (0)