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

Commit 9f0a9cd

Browse files
committed
Upgrade to Angular v8
1 parent 576b331 commit 9f0a9cd

File tree

7 files changed

+2924
-4890
lines changed

7 files changed

+2924
-4890
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ addons:
88
- google-chrome-stable
99
language: node_js
1010
node_js:
11-
- "8"
11+
- "10"
1212
before_install:
1313
- npm i npm@^6 -g
1414
install:

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
## Angular library starter Changelog
22

3+
<a name="May 30, 2018"></a>
4+
### May 30, 2018
5+
* Upgrade to Angular v8
6+
37
<a name="Nov 7, 2018"></a>
48
### Nov 7, 2018
59
* Add module type to _ModuleWithProviders_

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
[![Build Status](https://travis-ci.org/robisim74/angular-library-starter.svg?branch=master)](https://travis-ci.org/robisim74/angular-library-starter)
33
>Build an Angular library compatible with AoT compilation &amp; Tree shaking like an official package.
44
5-
This starter allows you to create a library for **Angular v7** apps.
5+
This starter allows you to create a library for **Angular** apps.
66
The project is based on the official _Angular_ packages.
77

88
Get the [Changelog](https://github.com/robisim74/angular-library-starter/blob/master/CHANGELOG.md).
@@ -216,6 +216,9 @@ Now _ngc_ compiler supports inlining of templates & styles. Moreover, this start
216216
- [ngx-ui-scroll](https://github.com/dhilt/ngx-ui-scroll) *An Angular `*ngFor`-like directive for infinite/virtual scrolling*
217217

218218
## <a name="previous-versions"></a>Previous versions
219+
- **Angular v7**
220+
- [Branch](https://github.com/robisim74/angular-library-starter/tree/angular_v7)
221+
219222
- **Angular v6**
220223
- [Branch](https://github.com/robisim74/angular-library-starter/tree/angular_v6)
221224

package-lock.json

Lines changed: 2871 additions & 4844 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -40,57 +40,57 @@
4040
"tslib": "^1.9.0"
4141
},
4242
"peerDependencies": {
43-
"rxjs": ">= 6.0.0",
44-
"@angular/common": ">= 7.0.0",
45-
"@angular/core": ">= 7.0.0"
43+
"rxjs": ">= 6.4.0",
44+
"@angular/common": ">= 8.0.0",
45+
"@angular/core": ">= 8.0.0"
4646
},
4747
"devDependencies": {
48-
"@angular/animations": "7.0.0",
49-
"@angular/common": "7.0.0",
50-
"@angular/compiler": "7.0.0",
51-
"@angular/compiler-cli": "7.0.0",
52-
"@angular/core": "7.0.0",
53-
"@angular/platform-browser": "7.0.0",
54-
"@angular/platform-browser-dynamic": "7.0.0",
55-
"@angular/platform-server": "7.0.0",
56-
"@compodoc/compodoc": "1.1.7",
57-
"@types/jasmine": "2.8.9",
58-
"@types/node": "10.12.0",
59-
"chalk": "2.4.1",
60-
"codelyzer": "4.5.0",
61-
"core-js": "2.5.7",
48+
"@angular/animations": "8.0.0",
49+
"@angular/common": "8.0.0",
50+
"@angular/compiler": "8.0.0",
51+
"@angular/compiler-cli": "8.0.0",
52+
"@angular/core": "8.0.0",
53+
"@angular/platform-browser": "8.0.0",
54+
"@angular/platform-browser-dynamic": "8.0.0",
55+
"@angular/platform-server": "8.0.0",
56+
"@compodoc/compodoc": "1.1.9",
57+
"@types/jasmine": "3.3.13",
58+
"@types/node": "12.0.4",
59+
"chalk": "2.4.2",
60+
"codelyzer": "5.0.1",
61+
"core-js": "3.1.3",
6262
"istanbul-instrumenter-loader": "3.0.1",
63-
"jasmine-core": "3.2.1",
64-
"karma": "3.0.0",
63+
"jasmine-core": "3.4.0",
64+
"karma": "4.1.0",
6565
"karma-chrome-launcher": "2.2.0",
66-
"karma-coverage-istanbul-reporter": "2.0.4",
67-
"karma-jasmine": "1.1.2",
66+
"karma-coverage-istanbul-reporter": "2.0.5",
67+
"karma-jasmine": "2.0.1",
6868
"karma-sourcemap-loader": "0.3.7",
6969
"karma-spec-reporter": "0.0.32",
70-
"karma-webpack": "4.0.0-rc.2",
71-
"node-sass": "4.9.4",
72-
"reflect-metadata": "0.1.12",
73-
"rollup": "0.66.6",
74-
"rollup-plugin-license": "0.7.0",
75-
"rollup-plugin-node-resolve": "3.4.0",
70+
"karma-webpack": "4.0.0-rc.3",
71+
"node-sass": "4.12.0",
72+
"reflect-metadata": "0.1.13",
73+
"rollup": "1.12.5",
74+
"rollup-plugin-license": "0.8.1",
75+
"rollup-plugin-node-resolve": "5.0.0",
7676
"rollup-plugin-sourcemaps": "0.4.2",
77-
"rxjs": "6.3.3",
78-
"shelljs": "0.8.2",
77+
"rxjs": "6.5.2",
78+
"shelljs": "0.8.3",
7979
"source-map-loader": "0.2.4",
80-
"ts-loader": "5.2.2",
81-
"tslint": "5.11.0",
82-
"tslint-angular": "1.1.2",
83-
"typescript": "3.1.3",
84-
"uglify-js": "3.4.9",
85-
"webpack": "4.21.0",
86-
"zone.js": "0.8.26",
80+
"ts-loader": "6.0.1",
81+
"tslint": "5.16.0",
82+
"tslint-angular": "3.0.2",
83+
"typescript": "3.4.5",
84+
"uglify-js": "3.6.0",
85+
"webpack": "4.32.2",
86+
"zone.js": "0.9.1",
8787
"angular2-template-loader": "0.6.2",
88-
"raw-loader": "0.5.1",
89-
"css-loader": "1.0.0",
88+
"raw-loader": "1.0.0",
89+
"css-loader": "2.1.1",
9090
"sass-loader": "7.1.0",
9191
"to-string-loader": "1.1.5",
9292
"tsickle": "0.33.0",
93-
"webpack-filter-warnings-plugin": "1.2.0"
93+
"webpack-filter-warnings-plugin": "1.2.1"
9494
},
9595
"sideEffects": false
9696
}

rollup.es.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default {
1111
plugins: [
1212
sourcemaps(),
1313
license({
14-
sourceMap: true,
14+
sourcemap: true,
1515
banner: {
1616
file: path.join(__dirname, 'license-banner.txt'),
1717
encoding: 'utf-8',

tests/components/sum.component.spec.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
import { SumComponent, SumService } from '../../src/angular-library-starter';
22

3-
import { TestBed, ComponentFixture, async } from '@angular/core/testing';
3+
import { TestBed, ComponentFixture } from '@angular/core/testing';
44

55
describe('Component: SumComponent', () => {
66

77
let fixture: ComponentFixture<SumComponent>;
88
let comp: SumComponent;
99

10-
beforeEach(async () => {
10+
beforeEach(() => {
1111
TestBed.configureTestingModule({
1212
imports: [],
1313
providers: [
@@ -20,10 +20,10 @@ describe('Component: SumComponent', () => {
2020
comp = fixture.componentInstance;
2121
});
2222

23-
it('should render the sum', (() => {
23+
it('should render the sum', () => {
2424
fixture.detectChanges();
2525

2626
expect(fixture.debugElement.nativeElement.textContent).toContain('887');
27-
}));
27+
});
2828

2929
});

0 commit comments

Comments
 (0)