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

Commit a75b3c1

Browse files
Merge pull request #113 from ngrx/chore/update-deps
chore(deps): Upgrade @angular/cli to beta.31
2 parents 9662847 + 9acf3f4 commit a75b3c1

File tree

11 files changed

+1321
-1514
lines changed

11 files changed

+1321
-1514
lines changed

README.md

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

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/).
3+
Example application utilizing @ngrx libraries, showcasing common patterns and best practices.
4+
Take a look at the [live app](http://ngrx.github.io/example-app/).
55

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-
[@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+
[@ngrx/effects](https://github.com/ngrx/effects) to isolate side effects.
1212

13-
Built with [angular-cli](https://github.com/angular/angular-cli)
13+
Built with [@angular/cli](https://github.com/angular/angular-cli)
1414

1515
### Included
1616
- [ngrx/store](https://github.com/ngrx/store) - RxJS powered state management for Angular apps, inspired by Redux
@@ -43,5 +43,5 @@ ng serve
4343

4444
Navigate to [http://localhost:4200/](http://localhost:4200/) in your browser
4545

46-
_NOTE:_ The above setup instructions assume you have added local npm bin folders to your path.
47-
If this is not the case you will need to install the angular-cli globally.
46+
_NOTE:_ The above setup instructions assume you have added local npm bin folders to your path.
47+
If this is not the case you will need to install the Angular CLI globally.

angular-cli.json

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
23
"project": {
3-
"version": "1.0.0-beta.30",
4+
"version": "1.0.0-beta.31",
45
"name": "example-app"
56
},
67
"apps": [
@@ -13,10 +14,10 @@
1314
],
1415
"index": "index.html",
1516
"main": "main.ts",
17+
"polyfills": "polyfills.ts",
1618
"test": "test.ts",
1719
"tsconfig": "tsconfig.json",
1820
"prefix": "app",
19-
"mobile": false,
2021
"styles": [
2122
"styles.css"
2223
],
@@ -33,6 +34,16 @@
3334
"config": "./protractor.conf.js"
3435
}
3536
},
37+
"lint": [
38+
{
39+
"files": "src/**/*.ts",
40+
"project": "src/tsconfig.json"
41+
},
42+
{
43+
"files": "e2e/**/*.ts",
44+
"project": "e2e/tsconfig.json"
45+
}
46+
],
3647
"test": {
3748
"karma": {
3849
"config": "./karma.conf.js"

circle.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ machine:
44
## Customize test commands
55
test:
66
override:
7-
- ng test --watch false # single test run
7+
- ng lint
8+
- ng test --watch false # single test run

karma.conf.js

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = function (config) {
88
plugins: [
99
require('karma-jasmine'),
1010
require('karma-chrome-launcher'),
11-
require('karma-remap-istanbul'),
11+
require('karma-coverage-istanbul-reporter'),
1212
require('@angular/cli/plugins/karma')
1313
],
1414
files: [
@@ -20,18 +20,16 @@ module.exports = function (config) {
2020
mime: {
2121
'text/x-typescript': ['ts','tsx']
2222
},
23-
remapIstanbulReporter: {
24-
reports: {
25-
html: 'coverage',
26-
lcovonly: './coverage/coverage.lcov'
27-
}
23+
coverageIstanbulReporter: {
24+
reports: [ 'html', 'lcovonly' ],
25+
fixWebpackSourcePaths: true
2826
},
2927
angularCli: {
3028
config: './angular-cli.json',
3129
environment: 'dev'
3230
},
3331
reporters: config.angularCli && config.angularCli.codeCoverage
34-
? ['progress', 'karma-remap-istanbul']
32+
? ['progress', 'coverage-istanbul']
3533
: ['progress'],
3634
port: 9876,
3735
colors: true,

package.json

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
"scripts": {
88
"ng": "ng",
99
"start": "ng serve",
10-
"lint": "tslint \"src/**/*.ts\" --project src/tsconfig.json --type-check && tslint \"e2e/**/*.ts\" --project e2e/tsconfig.json --type-check",
11-
"test": "ng test",
12-
"pree2e": "webdriver-manager update --standalone false --gecko false",
13-
"e2e": "protractor",
10+
"lint": "ng lint",
11+
"test": "ng test --code-coverage",
12+
"e2e": "ng e2e",
1413
"build": "ng build --prod"
1514
},
1615
"repository": {
@@ -29,15 +28,15 @@
2928
},
3029
"private": true,
3130
"dependencies": {
32-
"@angular/common": "^2.3.1",
33-
"@angular/compiler": "^2.3.1",
34-
"@angular/core": "^2.3.1",
35-
"@angular/forms": "^2.3.1",
36-
"@angular/http": "^2.3.1",
31+
"@angular/common": "^2.4.0",
32+
"@angular/compiler": "^2.4.0",
33+
"@angular/core": "^2.4.0",
34+
"@angular/forms": "^2.4.0",
35+
"@angular/http": "^2.4.0",
3736
"@angular/material": "latest",
38-
"@angular/platform-browser": "^2.3.1",
39-
"@angular/platform-browser-dynamic": "^2.3.1",
40-
"@angular/router": "^3.3.1",
37+
"@angular/platform-browser": "^2.4.0",
38+
"@angular/platform-browser-dynamic": "^2.4.0",
39+
"@angular/router": "^3.4.0",
4140
"@ngrx/core": "^1.0.0",
4241
"@ngrx/db": "^2.0.0",
4342
"@ngrx/effects": "^2.0.0",
@@ -52,20 +51,20 @@
5251
"zone.js": "^0.7.2"
5352
},
5453
"devDependencies": {
55-
"@angular/compiler-cli": "^2.3.1",
54+
"@angular/cli": "1.0.0-beta.31",
55+
"@angular/compiler-cli": "^2.4.0",
5656
"@types/jasmine": "2.5.38",
5757
"@types/node": "^6.0.42",
58-
"@angular/cli": "1.0.0-beta.30",
5958
"codelyzer": "~2.0.0-beta.1",
6059
"jasmine-core": "2.5.2",
6160
"jasmine-spec-reporter": "2.5.0",
6261
"karma": "1.2.0",
6362
"karma-chrome-launcher": "^2.0.0",
6463
"karma-cli": "^1.0.1",
64+
"karma-coverage-istanbul-reporter": "^0.2.0",
6565
"karma-jasmine": "^1.0.2",
66-
"karma-remap-istanbul": "^0.2.1",
6766
"ngrx-store-freeze": "^0.1.6",
68-
"protractor": "~4.0.13",
67+
"protractor": "~5.1.0",
6968
"ts-node": "1.2.1",
7069
"tslint": "^4.3.0",
7170
"typescript": "~2.0.3"

src/app/effects/book.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import 'rxjs/add/observable/of';
2+
import 'rxjs/add/observable/throw';
13
import { EffectsTestingModule, EffectsRunner } from '@ngrx/effects/testing';
24
import { TestBed, fakeAsync, tick } from '@angular/core/testing';
35
import { BookEffects } from './book';
46
import { GoogleBooksService } from '../services/google-books';
57
import { Observable } from 'rxjs/Observable';
6-
import 'rxjs/add/Observable/of'
7-
import 'rxjs/add/Observable/throw'
88
import { SearchAction, SearchCompleteAction } from '../actions/book';
99
import { Book } from '../models/book';
1010

src/app/effects/collection.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
import 'rxjs/add/observable/of';
2+
import 'rxjs/add/observable/throw';
13
import { EffectsTestingModule, EffectsRunner } from '@ngrx/effects/testing';
24
import { TestBed } from '@angular/core/testing';
35
import { CollectionEffects } from './collection';
46
import { Database } from '@ngrx/db';
57
import { Book } from '../models/book';
68
import * as collection from '../actions/collection';
79
import { Observable } from 'rxjs/Observable';
8-
import 'rxjs/add/Observable/of'
9-
import 'rxjs/add/Observable/throw'
1010

1111
describe('CollectionEffects', () => {
1212
beforeEach(() => TestBed.configureTestingModule({

src/test.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
22

3-
import './polyfills.ts';
4-
53
import 'zone.js/dist/long-stack-trace-zone';
64
import 'zone.js/dist/proxy.js';
75
import 'zone.js/dist/sync-test';

src/tsconfig.json

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,18 @@
44
"declaration": false,
55
"emitDecoratorMetadata": true,
66
"experimentalDecorators": true,
7-
"lib": ["es6", "dom"],
7+
"lib": [
8+
"es2016",
9+
"dom"
10+
],
811
"mapRoot": "./",
9-
"module": "es6",
12+
"module": "es2015",
1013
"moduleResolution": "node",
1114
"outDir": "../dist/out-tsc",
1215
"sourceMap": true,
1316
"target": "es5",
1417
"typeRoots": [
1518
"../node_modules/@types"
16-
],
17-
"noUnusedLocals": true,
18-
"noUnusedParameters": true
19+
]
1920
}
2021
}

tslint.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"rulesDirectory": [
3+
"node_modules/codelyzer"
4+
],
25
"rules": {
36
"class-name": true,
47
"comment-format": [

0 commit comments

Comments
 (0)