Skip to content
This repository was archived by the owner on Sep 21, 2018. It is now read-only.

Commit e4980cd

Browse files
committed
chore: Upgrade to Angular 2 final with AOT support
1 parent 1605d0e commit e4980cd

Some content is hidden

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

73 files changed

+1627
-1583
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,5 @@ __build__/**
5454

5555
# Build Artifacts #
5656
release
57+
distout
58+
*.ngfactory.ts

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016 Sean Larkin
3+
Copyright (c) 2016 ngrx
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
#@ngrx example application
22

3-
Example application utilizing @ngrx libraries, showcasing common patterns and best practices. You can find the live app [here](http://ngrx.github.io/example-app/).
3+
Example application utilizing @ngrx libraries, showcasing common patterns and best practices.
4+
You can find the live app [here](http://ngrx.github.io/example-app/).
45

5-
This app is a book collection manager. Using the Google Books API, the user can search for books and add them to their collection. This application utilizes [@ngrx/db](https://github.com/ngrx/db) to persist the collection across sessions; [@ngrx/store](https://github.com/ngrx/store) to manage the state of the app and to cache requests made to the Google Books API; [@angular/router](https://github.com/angular/angular) to manage navigation between routes; and [@ngrx/effects](https://github.com/ngrx/effects) to isolate side effects.
6+
This app is a book collection manager. Using the Google Books API, the user can search for
7+
books and add them to their collection. This application utilizes [@ngrx/db](https://github.com/ngrx/db)
8+
to persist the collection across sessions; [@ngrx/store](https://github.com/ngrx/store) to manage
9+
the state of the app and to cache requests made to the Google Books API;
10+
[@angular/router](https://github.com/angular/angular) to manage navigation between routes;
11+
and [@ngrx/effects](https://github.com/ngrx/effects) to isolate side effects.
612

713
### Included
814
- [ngrx/store](https://github.com/ngrx/store) - RxJS powered state management for Angular2 apps, inspired by Redux
915
- [ngrx/effects](https://github.com/ngrx/effects) - Side effect model for @ngrx/store
1016
- [angular/router](https://github.com/angular/angular) - Angular2 Component Router
1117
- [ngrx/db](https://github.com/ngrx/db) - RxJS powered IndexedDB for Angular2 apps
1218
- [ngrx/store-devtools](https://github.com/ngrx/store-devtools) - Instrumentation for @ngrx/store enabling time-travel debugging
13-
- [ngrx/store-log-monitor](https://github.com/ngrx/store-log-monitor) - A port of redux-devtools-log-monitor for Angular 2 and @ngrx/store
1419
- [codewareio/ngrx-store-freeze](https://github.com/codewareio/ngrx-store-freeze) - A @ngrx/store meta reducer that prevents state from being mutated
1520

1621
### Quick start
@@ -26,7 +31,7 @@ cd example-app
2631
npm install
2732

2833
# start the server
29-
npm run start
34+
npm start
3035
```
3136

3237
Navigate to [http://localhost:8080/](http://localhost:8080/) in your browser

karma.conf.js

Lines changed: 0 additions & 76 deletions
This file was deleted.

package.json

Lines changed: 39 additions & 73 deletions
Original file line numberDiff line numberDiff line change
@@ -1,104 +1,70 @@
11
{
2-
"name": "angular2-webpack-lite",
2+
"name": "@ngrx/example-app",
33
"version": "1.0.0",
4-
"description": "Angular2 Webpack Lite Boilerplate",
4+
"description": "Example application demoing the @ngrx platform",
55
"main": "index.ts",
66
"scripts": {
7-
"typings": "typings",
8-
"postinstall": "npm run typings -- install",
9-
"build": "webpack --progress --profile --colors --display-error-details --display-cached",
10-
"server:dev": "webpack-dev-server --inline --progress --profile --colors --watch --display-error-details --display-cached --content-base src/",
11-
"start": "npm run server:dev",
12-
"test": "karma start --single-run",
13-
"test:watch": "karma start"
7+
"build": "webpack -p --env.prod",
8+
"start": "webpack-dev-server"
149
},
1510
"repository": {
1611
"type": "git",
17-
"url": "git+https://github.com/TheLarkInn/angular2-webpack-lite.git"
12+
"url": "git+https://github.com/ngrx/example-app.git"
1813
},
1914
"author": "Sean Larkin",
2015
"license": "MIT",
2116
"bugs": {
22-
"url": "https://github.com/TheLarkInn/angular2-webpack-lite/issues"
17+
"url": "https://github.com/ngrx/example-app/issues"
2318
},
24-
"homepage": "https://github.com/TheLarkInn/angular2-webpack-lite#readme",
19+
"homepage": "https://github.com/ngrx/example-app#readme",
2520
"engines": {
2621
"node": ">= 4.2.1",
2722
"npm": ">= 3"
2823
},
2924
"dependencies": {
30-
"@angular/common": "2.0.0-rc.4",
31-
"@angular/compiler": "2.0.0-rc.4",
32-
"@angular/core": "2.0.0-rc.4",
33-
"@angular/forms": "^0.2.0",
34-
"@angular/http": "2.0.0-rc.4",
35-
"@angular/platform-browser": "2.0.0-rc.4",
36-
"@angular/platform-browser-dynamic": "2.0.0-rc.4",
37-
"@angular/router": "3.0.0-beta.2",
38-
"@angular2-material/button": "2.0.0-alpha.6",
39-
"@angular2-material/card": "2.0.0-alpha.6",
40-
"@angular2-material/core": "2.0.0-alpha.6",
41-
"@angular2-material/icon": "2.0.0-alpha.6",
42-
"@angular2-material/input": "2.0.0-alpha.6",
43-
"@angular2-material/list": "2.0.0-alpha.6",
44-
"@angular2-material/sidenav": "2.0.0-alpha.6",
45-
"@angular2-material/toolbar": "2.0.0-alpha.6",
25+
"@angular/common": "^2.0.0",
26+
"@angular/compiler": "^2.0.0",
27+
"@angular/compiler-cli": "^0.6.0",
28+
"@angular/core": "^2.0.0",
29+
"@angular/forms": "^2.0.0",
30+
"@angular/http": "^2.0.0",
31+
"@angular/material": "^2.0.0-alpha.9-3",
32+
"@angular/platform-browser": "^2.0.0",
33+
"@angular/platform-browser-dynamic": "^2.0.0",
34+
"@angular/platform-server": "^2.0.0",
35+
"@angular/router": "^3.0.0",
4636
"@ngrx/core": "^1.0.0",
47-
"@ngrx/db": "^1.1.0",
48-
"@ngrx/effects": "^1.0.1",
37+
"@ngrx/db": "^2.0.0",
38+
"@ngrx/effects": "^2.0.0",
39+
"@ngrx/router-store": "^1.1.0",
4940
"@ngrx/store": "^2.0.0",
50-
"@ngrx/store-devtools": "^2.0.0-beta.1",
51-
"@ngrx/store-log-monitor": "^2.0.0-beta.1",
41+
"@ngrx/store-devtools": "^3.1.0",
5242
"core-js": "^2.2.2",
5343
"ngrx-store-freeze": "^0.1.0",
54-
"ngrx-store-logger": "^0.1.4",
55-
"normalize.css": "^4.1.1",
56-
"rxjs": "5.0.0-beta.6",
57-
"zone.js": "^0.6.11"
44+
"rxjs": "^5.0.0-beta.12",
45+
"zone.js": "^0.6.12"
5846
},
5947
"devDependencies": {
60-
"angular2-hmr": "~0.6.0",
61-
"awesome-typescript-loader": "~0.17.0",
62-
"codelyzer": "0.0.19",
63-
"compression-webpack-plugin": "^0.3.1",
64-
"copy-webpack-plugin": "^2.1.3",
65-
"css-loader": "^0.23.1",
66-
"es6-promise": "^3.1.2",
67-
"es6-promise-loader": "^1.0.1",
68-
"es6-shim": "^0.35.0",
69-
"es7-reflect-metadata": "^1.6.0",
70-
"exports-loader": "^0.6.3",
71-
"expose-loader": "^0.7.1",
72-
"file-loader": "^0.8.5",
73-
"html-webpack-plugin": "^2.15.0",
74-
"http-server": "^0.9.0",
75-
"imports-loader": "^0.6.5",
76-
"istanbul-instrumenter-loader": "^0.2.0",
77-
"jasmine-core": "^2.4.1",
48+
"@ngtools/webpack": "^1.0.0",
49+
"@types/hammerjs": "^2.0.32",
50+
"awesome-typescript-loader": "^2.2.4",
51+
"codelyzer": "^0.0.19",
52+
"cpy-cli": "^1.0.1",
53+
"css-loader": "^0.25.0",
54+
"html-loader": "^0.4.4",
55+
"html-webpack-plugin": "^2.22.0",
7856
"json-loader": "^0.5.4",
79-
"karma": "^0.13.22",
80-
"karma-chrome-launcher": "^0.2.3",
81-
"karma-coverage": "^0.5.5",
82-
"karma-jasmine": "^0.3.8",
83-
"karma-mocha-reporter": "^2.0.0",
84-
"karma-sourcemap-loader": "^0.3.7",
85-
"karma-typescript-preprocessor": "0.0.21",
86-
"karma-webpack": "^1.7.0",
87-
"promise-loader": "^1.0.0",
88-
"raw-loader": "0.5.1",
57+
"raw-loader": "^0.5.1",
58+
"rimraf": "^2.5.4",
8959
"source-map-loader": "^0.1.5",
60+
"string-replace-loader": "^1.0.3",
9061
"style-loader": "^0.13.1",
91-
"ts-helpers": "1.1.1",
62+
"ts-helpers": "^1.1.1",
9263
"ts-node": "^0.7.1",
9364
"tslint": "^3.7.1",
9465
"tslint-loader": "^2.1.3",
95-
"typedoc": "^0.3.12",
96-
"typescript": "^1.8.10",
97-
"typings": "^1.0.4",
98-
"url-loader": "^0.5.7",
99-
"webpack": "^1.13.0",
100-
"webpack-dev-server": "^1.14.1",
101-
"webpack-md5-hash": "^0.0.5",
102-
"webpack-merge": "^0.12.0"
66+
"typescript": "2.0.2",
67+
"webpack": "^2.1.0-beta.22",
68+
"webpack-dev-server": "^2.1.0-beta.4"
10369
}
10470
}

spec/fixtures/books.ts

Lines changed: 0 additions & 20 deletions
This file was deleted.

spec/reducers/book.spec.ts

Lines changed: 0 additions & 68 deletions
This file was deleted.

0 commit comments

Comments
 (0)