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

Commit 0b5363c

Browse files
authored
Merge pull request #104 from ngrx/cli-beta-26
feat(build): Updated Angular CLI to 1.0.0-beta.26
2 parents cb755df + 1d1d9f3 commit 0b5363c

24 files changed

+1936
-4252
lines changed

.editorconfig

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
# @TheLarkInn
2-
# http://editorconfig.org
3-
1+
# Editor configuration, see http://editorconfig.org
42
root = true
53

64
[*]
75
charset = utf-8
86
indent_style = space
97
indent_size = 2
10-
end_of_line = lf
118
insert_final_newline = true
129
trim_trailing_whitespace = true
1310

1411
[*.md]
15-
insert_final_newline = false
12+
max_line_length = off
1613
trim_trailing_whitespace = false

.gitignore

Lines changed: 35 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,40 @@
1-
# Logs
2-
logs
3-
*.log
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
42

5-
# Runtime data
6-
pids
7-
*.pid
8-
*.seed
9-
10-
# Directory for instrumented libs generated by jscoverage/JSCover
11-
lib-cov
12-
13-
# Coverage directory used by tools like istanbul
14-
coverage
15-
16-
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
17-
.grunt
18-
19-
# Compiled binary addons (http://nodejs.org/api/addons.html)
20-
build/Release
3+
# compiled output
4+
/dist
5+
/tmp
216

22-
# Users Environment Variables
23-
.lock-wscript
7+
# dependencies
8+
/node_modules
249

25-
# OS generated files #
10+
# IDEs and editors
11+
/.idea
12+
.project
13+
.classpath
14+
.c9/
15+
*.launch
16+
.settings/
17+
18+
# IDE - VSCode
19+
.vscode/*
20+
!.vscode/settings.json
21+
!.vscode/tasks.json
22+
!.vscode/launch.json
23+
!.vscode/extensions.json
24+
25+
# misc
26+
/.sass-cache
27+
/connect.lock
28+
/coverage/*
29+
/libpeerconnection.log
30+
npm-debug.log
31+
testem.log
32+
/typings
33+
34+
# e2e
35+
/e2e/*.js
36+
/e2e/*.map
37+
38+
#System Files
2639
.DS_Store
27-
ehthumbs.db
28-
Icon?
2940
Thumbs.db
30-
31-
# Node Files #
32-
/node_modules
33-
/bower_components
34-
35-
# Typing TSD #
36-
/src/typings/tsd/
37-
/typings/
38-
/tsd_typings/
39-
40-
# Dist #
41-
/dist
42-
/public/__build__/
43-
/src/*/__build__/
44-
__build__/**
45-
.webpack.json
46-
47-
#doc
48-
/doc
49-
50-
# IDE #
51-
.idea/
52-
*.swp
53-
!/typings/custom.d.ts
54-
55-
# Build Artifacts #
56-
release
57-
distout
58-
*.ngfactory.ts

angular-cli.json

Lines changed: 19 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
{
22
"project": {
3-
"version": "1.0.0-beta.17",
4-
"name": "example"
3+
"version": "1.0.0-beta.26",
4+
"name": "example-app"
55
},
66
"apps": [
77
{
88
"root": "src",
99
"outDir": "dist",
10-
"assets": "assets",
10+
"assets": [
11+
"assets",
12+
"favicon.ico"
13+
],
1114
"index": "index.html",
1215
"main": "main.ts",
1316
"test": "test.ts",
@@ -25,8 +28,6 @@
2528
}
2629
}
2730
],
28-
"addons": [],
29-
"packages": [],
3031
"e2e": {
3132
"protractor": {
3233
"config": "./protractor.conf.js"
@@ -39,6 +40,18 @@
3940
},
4041
"defaults": {
4142
"styleExt": "css",
42-
"prefixInterfaces": false
43+
"prefixInterfaces": false,
44+
"inline": {
45+
"style": false,
46+
"template": false
47+
},
48+
"spec": {
49+
"class": false,
50+
"component": true,
51+
"directive": true,
52+
"module": false,
53+
"pipe": true,
54+
"service": true
55+
}
4356
}
4457
}

e2e/app.e2e-spec.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { ExampleAppPage } from './app.po';
2+
3+
describe('example-app App', function() {
4+
let page: ExampleAppPage;
5+
6+
beforeEach(() => {
7+
page = new ExampleAppPage();
8+
});
9+
10+
it('should display message saying app works', () => {
11+
page.navigateTo();
12+
expect(page.getParagraphText()).toEqual('app works!');
13+
});
14+
});

e2e/app.po.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { browser, element, by } from 'protractor';
2+
3+
export class ExampleAppPage {
4+
navigateTo() {
5+
return browser.get('/');
6+
}
7+
8+
getParagraphText() {
9+
return element(by.css('app-root h1')).getText();
10+
}
11+
}

e2e/tsconfig.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"compileOnSave": false,
3+
"compilerOptions": {
4+
"declaration": false,
5+
"emitDecoratorMetadata": true,
6+
"experimentalDecorators": true,
7+
"module": "commonjs",
8+
"moduleResolution": "node",
9+
"outDir": "../dist/out-tsc-e2e",
10+
"sourceMap": true,
11+
"target": "es5",
12+
"typeRoots": [
13+
"../node_modules/@types"
14+
]
15+
}
16+
}

karma.conf.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ module.exports = function (config) {
1717
preprocessors: {
1818
'./src/test.ts': ['angular-cli']
1919
},
20+
mime: {
21+
'text/x-typescript': ['ts','tsx']
22+
},
2023
remapIstanbulReporter: {
2124
reports: {
2225
html: 'coverage',
@@ -27,7 +30,9 @@ module.exports = function (config) {
2730
config: './angular-cli.json',
2831
environment: 'dev'
2932
},
30-
reporters: ['progress', 'karma-remap-istanbul'],
33+
reporters: config.angularCli && config.angularCli.codeCoverage
34+
? ['progress', 'karma-remap-istanbul']
35+
: ['progress'],
3136
port: 9876,
3237
colors: true,
3338
logLevel: config.LOG_INFO,

package.json

Lines changed: 28 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,21 @@
33
"version": "1.0.0",
44
"description": "Example application demoing the @ngrx platform",
55
"main": "index.ts",
6+
"angular-cli": {},
67
"scripts": {
7-
"build": "ng build --prod",
8+
"ng": "ng",
89
"start": "ng serve",
10+
"lint": "tslint \"src/**/*.ts\" --project src/tsconfig.json --type-check && tslint \"e2e/**/*.ts\" --project e2e/tsconfig.json --type-check",
911
"test": "ng test",
10-
"ng": "ng"
12+
"pree2e": "webdriver-manager update --standalone false --gecko false",
13+
"e2e": "protractor",
14+
"build": "ng build --prod"
1115
},
1216
"repository": {
1317
"type": "git",
1418
"url": "git+https://github.com/ngrx/example-app.git"
1519
},
16-
"author": "Sean Larkin",
20+
"author": "Mike Ryan",
1721
"license": "MIT",
1822
"bugs": {
1923
"url": "https://github.com/ngrx/example-app/issues"
@@ -23,46 +27,47 @@
2327
"node": ">= 4.2.1",
2428
"npm": ">= 3"
2529
},
30+
"private": true,
2631
"dependencies": {
27-
"@angular/common": "^2.1.0",
28-
"@angular/compiler": "^2.1.0",
29-
"@angular/compiler-cli": "^2.1.0",
30-
"@angular/core": "^2.1.0",
31-
"@angular/forms": "^2.1.0",
32-
"@angular/http": "^2.1.0",
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",
3337
"@angular/material": "latest",
34-
"@angular/platform-browser": "^2.1.0",
35-
"@angular/platform-browser-dynamic": "^2.1.0",
36-
"@angular/platform-server": "^2.1.0",
37-
"@angular/router": "^3.1.0",
38+
"@angular/platform-browser": "^2.3.1",
39+
"@angular/platform-browser-dynamic": "^2.3.1",
40+
"@angular/router": "^3.3.1",
3841
"@ngrx/core": "^1.0.0",
3942
"@ngrx/db": "^2.0.0",
4043
"@ngrx/effects": "^2.0.0",
4144
"@ngrx/router-store": "^1.1.0",
4245
"@ngrx/store": "^2.0.0",
4346
"@ngrx/store-devtools": "^3.1.0",
44-
"core-js": "^2.2.2",
47+
"core-js": "^2.4.1",
48+
"hammerjs": "^2.0.8",
4549
"reselect": "^2.5.4",
46-
"rxjs": "^5.0.0-beta.12",
50+
"rxjs": "^5.0.1",
4751
"ts-helpers": "^1.1.1",
48-
"zone.js": "^0.6.25"
52+
"zone.js": "^0.7.2"
4953
},
5054
"devDependencies": {
51-
"@types/jasmine": "^2.2.30",
55+
"@angular/compiler-cli": "^2.3.1",
56+
"@types/jasmine": "2.5.38",
5257
"@types/node": "^6.0.42",
53-
"angular-cli": "1.0.0-beta.17",
54-
"codelyzer": "~0.0.26",
55-
"jasmine-core": "2.4.1",
58+
"angular-cli": "1.0.0-beta.26",
59+
"codelyzer": "~2.0.0-beta.1",
60+
"jasmine-core": "2.5.2",
5661
"jasmine-spec-reporter": "2.5.0",
5762
"karma": "1.2.0",
5863
"karma-chrome-launcher": "^2.0.0",
5964
"karma-cli": "^1.0.1",
6065
"karma-jasmine": "^1.0.2",
6166
"karma-remap-istanbul": "^0.2.1",
6267
"ngrx-store-freeze": "^0.1.6",
63-
"protractor": "4.0.9",
68+
"protractor": "~4.0.13",
6469
"ts-node": "1.2.1",
65-
"tslint": "3.13.0",
66-
"typescript": "2.0.2"
70+
"tslint": "^4.3.0",
71+
"typescript": "~2.0.3"
6772
}
6873
}

protractor.conf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// Protractor configuration file, see link for more information
2-
// https://github.com/angular/protractor/blob/master/docs/referenceConf.js
2+
// https://github.com/angular/protractor/blob/master/lib/config.ts
33

44
/*global jasmine */
55
var SpecReporter = require('jasmine-spec-reporter');

src/app/actions/collection.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,4 +90,4 @@ export type Actions
9090
| RemoveBookFailAction
9191
| LoadAction
9292
| LoadSuccessAction
93-
| LoadFailAction
93+
| LoadFailAction;

0 commit comments

Comments
 (0)