Skip to content

Commit 0dff977

Browse files
committed
update to angular 4.1.0
1 parent c044522 commit 0dff977

19 files changed

+1770
-1553
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
2+
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
23
"project": {
3-
"version": "1.0.0-beta.30",
4-
"name": "rxjs-err-async-pipe"
4+
"name": "upgradeproj"
55
},
66
"apps": [
77
{
@@ -15,14 +15,15 @@
1515
"main": "main.ts",
1616
"polyfills": "polyfills.ts",
1717
"test": "test.ts",
18-
"tsconfig": "tsconfig.json",
18+
"tsconfig": "tsconfig.app.json",
19+
"testTsconfig": "tsconfig.spec.json",
1920
"prefix": "app",
2021
"styles": [
2122
"styles.css"
2223
],
2324
"scripts": [],
25+
"environmentSource": "environments/environment.ts",
2426
"environments": {
25-
"source": "environments/environment.ts",
2627
"dev": "environments/environment.ts",
2728
"prod": "environments/environment.prod.ts"
2829
}
@@ -35,12 +36,13 @@
3536
},
3637
"lint": [
3738
{
38-
"files": "src/**/*.ts",
39-
"project": "src/tsconfig.json"
39+
"project": "src/tsconfig.app.json"
4040
},
4141
{
42-
"files": "e2e/**/*.ts",
43-
"project": "e2e/tsconfig.json"
42+
"project": "src/tsconfig.spec.json"
43+
},
44+
{
45+
"project": "e2e/tsconfig.e2e.json"
4446
}
4547
],
4648
"test": {
@@ -50,18 +52,6 @@
5052
},
5153
"defaults": {
5254
"styleExt": "css",
53-
"prefixInterfaces": false,
54-
"inline": {
55-
"style": false,
56-
"template": false
57-
},
58-
"spec": {
59-
"class": false,
60-
"component": true,
61-
"directive": true,
62-
"module": false,
63-
"pipe": true,
64-
"service": true
65-
}
55+
"component": {}
6656
}
6757
}

.gitignore

+4-3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# compiled output
44
/dist
55
/tmp
6+
/out-tsc
67

78
# dependencies
89
/node_modules
@@ -14,6 +15,7 @@
1415
.c9/
1516
*.launch
1617
.settings/
18+
*.sublime-workspace
1719

1820
# IDE - VSCode
1921
.vscode/*
@@ -25,17 +27,16 @@
2527
# misc
2628
/.sass-cache
2729
/connect.lock
28-
/coverage/*
30+
/coverage
2931
/libpeerconnection.log
3032
npm-debug.log
31-
debug.log
3233
testem.log
3334
/typings
3435

3536
# e2e
3637
/e2e/*.js
3738
/e2e/*.map
3839

39-
#System Files
40+
# System Files
4041
.DS_Store
4142
Thumbs.db

README.md

+5-8
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
# RxjsErrAsyncPipe
1+
# Upgradeproj
22

3-
This project was generated with [angular-cli](https://github.com/angular/angular-cli) version 1.0.0-beta.30.
3+
This project was generated with [Angular CLI](https://github.com/angular/angular-cli) version 1.0.1.
44

55
## Development server
6+
67
Run `ng serve` for a dev server. Navigate to `http://localhost:4200/`. The app will automatically reload if you change any of the source files.
78

89
## Code scaffolding
910

10-
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive/pipe/service/class/module`.
11+
Run `ng generate component component-name` to generate a new component. You can also use `ng generate directive|pipe|service|class|module`.
1112

1213
## Build
1314

@@ -22,10 +23,6 @@ Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.
2223
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
2324
Before running the tests make sure you are serving the app via `ng serve`.
2425

25-
## Deploying to GitHub Pages
26-
27-
Run `ng github-pages:deploy` to deploy to GitHub Pages.
28-
2926
## Further help
3027

31-
To get more help on the `angular-cli` use `ng help` or go check out the [Angular-CLI README](https://github.com/angular/angular-cli/blob/master/README.md).
28+
To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI README](https://github.com/angular/angular-cli/blob/master/README.md).

e2e/app.e2e-spec.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { RxjsErrAsyncPipePage } from './app.po';
1+
import { UpgradeprojPage } from './app.po';
22

3-
describe('rxjs-err-async-pipe App', function() {
4-
let page: RxjsErrAsyncPipePage;
3+
describe('upgradeproj App', () => {
4+
let page: UpgradeprojPage;
55

66
beforeEach(() => {
7-
page = new RxjsErrAsyncPipePage();
7+
page = new UpgradeprojPage();
88
});
99

1010
it('should display message saying app works', () => {

e2e/app.po.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { browser, element, by } from 'protractor';
22

3-
export class RxjsErrAsyncPipePage {
3+
export class UpgradeprojPage {
44
navigateTo() {
55
return browser.get('/');
66
}

e2e/tsconfig.e2e.json

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"outDir": "../out-tsc/e2e",
5+
"module": "commonjs",
6+
"target": "es5",
7+
"types":[
8+
"jasmine",
9+
"node"
10+
]
11+
}
12+
}

karma.conf.js

+10-9
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ module.exports = function (config) {
88
plugins: [
99
require('karma-jasmine'),
1010
require('karma-chrome-launcher'),
11-
require('karma-remap-istanbul'),
11+
require('karma-jasmine-html-reporter'),
12+
require('karma-coverage-istanbul-reporter'),
1213
require('@angular/cli/plugins/karma')
1314
],
15+
client:{
16+
clearContext: false // leave Jasmine Spec Runner output visible in browser
17+
},
1418
files: [
1519
{ pattern: './src/test.ts', watched: false }
1620
],
@@ -20,19 +24,16 @@ module.exports = function (config) {
2024
mime: {
2125
'text/x-typescript': ['ts','tsx']
2226
},
23-
remapIstanbulReporter: {
24-
reports: {
25-
html: 'coverage',
26-
lcovonly: './coverage/coverage.lcov'
27-
}
27+
coverageIstanbulReporter: {
28+
reports: [ 'html', 'lcovonly' ],
29+
fixWebpackSourcePaths: true
2830
},
2931
angularCli: {
30-
config: './angular-cli.json',
3132
environment: 'dev'
3233
},
3334
reporters: config.angularCli && config.angularCli.codeCoverage
34-
? ['progress', 'karma-remap-istanbul']
35-
: ['progress'],
35+
? ['progress', 'coverage-istanbul']
36+
: ['progress', 'kjhtml'],
3637
port: 9876,
3738
colors: true,
3839
logLevel: config.LOG_INFO,

0 commit comments

Comments
 (0)