Skip to content
This repository was archived by the owner on Jun 26, 2020. It is now read-only.

Commit 9526bc7

Browse files
vovavova
vova
authored and
vova
committed
Major changes: moved to angular final 2.1.1. Updated to Webpack. Removed bower dep.
1 parent 6978e37 commit 9526bc7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+2538
-485
lines changed

.bowerrc

-1
This file was deleted.

.editorconfig

-14
This file was deleted.

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ roles to the identity pool.
3131
git clone --depth 1 [email protected]:awslabs/aws-cognito-angular2-quickstart.git
3232
```
3333
```
34-
# Install the NPM and Bower packages
34+
# Install the NPM & Bower packages, and typings
3535
npm install
3636
bower install
37+
typings install
3738
```
3839
```
3940
# Run the app in dev mode
@@ -52,3 +53,5 @@ curl –I http://budilov-cognito.s3-website-us-east-1.amazonaws.com/
5253
As is, the code has default configuration, pointing to the developer's region. You
5354
will need to change the pool id, region, and dynamodb table id. You can find these
5455
configurations in ```aws.service.ts``` and ```cognito.service.ts```
56+
57+
You will also need to change the account id in authrole.json

angular-cli-build.js

-18
This file was deleted.

angular-cli.json

+26-8
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,43 @@
11
{
22
"project": {
3-
"version": "1.0.0",
4-
"name": "awscognito-angular2"
3+
"version": "1.0.0-beta.14",
4+
"name": "migration-project"
55
},
66
"apps": [
77
{
8-
"main": "src/main.ts",
9-
"tsconfig": "src/tsconfig.json",
10-
"mobile": false
8+
"root": "src",
9+
"outDir": "dist",
10+
"assets": "assets",
11+
"index": "index.html",
12+
"main": "main.ts",
13+
"test": "test.ts",
14+
"tsconfig": "tsconfig.json",
15+
"prefix": "app",
16+
"mobile": false,
17+
"styles": [
18+
"styles.css"
19+
],
20+
"scripts": [],
21+
"environments": {
22+
"source": "environments/environment.ts",
23+
"dev": "environments/environment.ts",
24+
"prod": "environments/environment.prod.ts"
25+
}
1126
}
1227
],
1328
"addons": [],
1429
"packages": [],
30+
"e2e": {
31+
"protractor": {
32+
"config": "./protractor.conf.js"
33+
}
34+
},
1535
"test": {
1636
"karma": {
17-
"config": "config/karma.conf.js"
37+
"config": "./karma.conf.js"
1838
}
1939
},
2040
"defaults": {
21-
"prefix": "app",
22-
"sourceDir": "src",
2341
"styleExt": "css",
2442
"prefixInterfaces": false
2543
}

bower.json

-22
This file was deleted.

config/environment.dev.ts

-3
This file was deleted.

config/environment.js

-10
This file was deleted.

config/karma-test-shim.js

-51
This file was deleted.

config/karma.conf.js

-42
This file was deleted.

config/protractor.conf.js

-29
This file was deleted.

package.json

+29-27
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,43 @@
44
"version": "1.0.0",
55
"angular-cli": {},
66
"scripts": {
7-
"start": "ng server",
8-
"postinstall": "typings install",
7+
"start": "ng serve",
98
"lint": "tslint \"src/**/*.ts\"",
109
"test": "ng test",
1110
"pree2e": "webdriver-manager update",
1211
"e2e": "protractor"
1312
},
1413
"private": true,
1514
"dependencies": {
16-
"@angular/common": "2.0.0-rc.4",
17-
"@angular/compiler": "2.0.0-rc.4",
18-
"@angular/core": "2.0.0-rc.4",
19-
"@angular/http": "2.0.0-rc.4",
20-
"@angular/platform-browser": "2.0.0-rc.4",
21-
"@angular/platform-browser-dynamic": "2.0.0-rc.4",
22-
"@angular/router": "3.0.0-beta.2",
23-
"es6-shim": "^0.35.0",
24-
"reflect-metadata": "0.1.3",
25-
"rxjs": "5.0.0-beta.6",
26-
"systemjs": "0.19.26",
27-
"zone.js": "^0.6.12"
15+
"@angular/common": "~2.1.1",
16+
"@angular/compiler": "~2.1.1",
17+
"@angular/core": "2.1.1",
18+
"@angular/forms": "2.1.1",
19+
"@angular/http": "2.1.1",
20+
"@angular/platform-browser": "2.1.1",
21+
"@angular/platform-browser-dynamic": "2.1.1",
22+
"@angular/router": "3.0.0",
23+
"core-js": "2.4.1",
24+
"rxjs": "5.0.0-beta.12",
25+
"ts-helpers": "1.1.1",
26+
"zone.js": "0.6.23"
2827
},
2928
"devDependencies": {
30-
"angular-cli": "^1.0.0-beta.9",
31-
"codelyzer": "0.0.19",
32-
"ember-cli-inject-live-reload": "^1.4.0",
33-
"jasmine-core": "^2.4.1",
34-
"jasmine-spec-reporter": "^2.4.0",
35-
"karma": "^0.13.15",
36-
"karma-chrome-launcher": "^0.2.3",
37-
"karma-jasmine": "^0.3.8",
38-
"protractor": "^3.3.0",
39-
"ts-node": "^0.5.5",
40-
"tslint": "^3.6.0",
41-
"typescript": "^1.8.10",
42-
"typings": "^0.8.0"
29+
"@types/jasmine": "2.2.30",
30+
"@types/selenium-webdriver": "2.44.26",
31+
"angular-cli": "1.0.0-beta.14",
32+
"codelyzer": "~0.0.26",
33+
"jasmine-core": "2.4.1",
34+
"jasmine-spec-reporter": "2.5.0",
35+
"karma": "1.2.0",
36+
"karma-chrome-launcher": "2.0.0",
37+
"karma-cli": "1.0.1",
38+
"karma-jasmine": "1.0.2",
39+
"karma-remap-istanbul": "0.2.1",
40+
"protractor": "4.0.5",
41+
"ts-node": "1.2.1",
42+
"tslint": "3.13.0",
43+
"typescript": "^2.0.3",
44+
"webpack": "2.1.0-beta.22"
4345
}
4446
}

public/.npmignore

Whitespace-only changes.

public/js/amazon-cognito-identity.min.js

-20
This file was deleted.

public/js/aws-cognito-sdk.min.js

-10
This file was deleted.

src/app/app.component.ts

+5-9
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
11
/**
22
* @author Vladimir Budilov
3-
*
3+
*
44
* This is the entry-way into the routing logic. This is the first component that's called when the app
5-
* loads.
6-
*
5+
* loads.
6+
*
77
*/
88
import {Component, OnInit} from "@angular/core";
9-
import {ROUTER_DIRECTIVES} from "@angular/router";
10-
import {UserRegistrationService, UserLoginService, UserParametersService} from "./service/cognito.service";
119
import {AwsUtil} from "./service/aws.service";
1210

1311
@Component({
14-
selector: 'awscognito-angular2-app',
15-
templateUrl: '/app/template/app.html',
16-
providers: [UserRegistrationService, UserLoginService, UserParametersService],
17-
directives: [ROUTER_DIRECTIVES]
12+
selector: 'app-root',
13+
templateUrl: 'template/app.html'
1814
})
1915
export class AppComponent implements OnInit {
2016

0 commit comments

Comments
 (0)