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

Commit 4ee958d

Browse files
authored
Merge pull request #205 from btroncone/service-worker-update
chore(service-worker): update service worker and config to latest
2 parents 512689e + 4af75ec commit 4ee958d

File tree

4 files changed

+67
-33
lines changed

4 files changed

+67
-33
lines changed

ngsw-manifest.json

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

package.json

Lines changed: 19 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -27,36 +27,37 @@
2727
},
2828
"private": true,
2929
"dependencies": {
30-
"@angular/animations": "5.0.2",
31-
"@angular/cdk": "5.0.0-rc0",
32-
"@angular/common": "5.0.2",
33-
"@angular/compiler": "5.0.2",
34-
"@angular/core": "5.0.2",
35-
"@angular/flex-layout": "2.0.0-beta.10",
36-
"@angular/forms": "5.0.2",
37-
"@angular/http": "5.0.2",
38-
"@angular/material": "5.0.0-rc0",
39-
"@angular/platform-browser": "5.0.2",
40-
"@angular/platform-browser-dynamic": "5.0.2",
41-
"@angular/router": "5.0.2",
30+
"@angular/animations": "5.1.1",
31+
"@angular/cdk": "5.0.1",
32+
"@angular/common": "5.1.1",
33+
"@angular/compiler": "5.1.1",
34+
"@angular/core": "5.1.1",
35+
"@angular/flex-layout": "2.0.0-beta.10-4905443",
36+
"@angular/forms": "5.1.1",
37+
"@angular/http": "5.1.1",
38+
"@angular/material": "5.0.1",
39+
"@angular/platform-browser": "5.1.1",
40+
"@angular/platform-browser-dynamic": "5.1.1",
41+
"@angular/router": "5.1.1",
42+
"@angular/service-worker": "5.1.1",
4243
"@types/hammerjs": "2.0.35",
4344
"core-js": "2.4.1",
4445
"hammerjs": "2.0.8",
45-
"rxjs": "5.5.2",
46+
"rxjs": "5.5.5",
4647
"ts-loader": "3.1.1",
4748
"zone.js": "0.8.14"
4849
},
4950
"devDependencies": {
50-
"@angular/cli": "1.5.2",
51-
"@angular/compiler-cli": "5.0.2",
52-
"@angular/language-service": "5.0.2",
53-
"@angular/service-worker": "1.0.0-beta.16",
51+
"@angular/cli": "1.6.0",
52+
"@angular/compiler-cli": "5.1.1",
53+
"@angular/language-service": "5.1.1",
54+
"@angular/service-worker": "5.1.1",
5455
"@types/jasmine": "2.5.53",
5556
"@types/jasminewd2": "2.0.2",
5657
"@types/lodash": "4.14.77",
5758
"@types/node": "6.0.60",
5859
"angular2-template-loader": "0.6.2",
59-
"codelyzer": "3.1.1",
60+
"codelyzer": "4.0.2",
6061
"commitizen": "^2.9.6",
6162
"cz-conventional-changelog": "^2.0.0",
6263
"danger": "1.2.0",

src/app/app.module.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import { NgModule } from '@angular/core';
22
import { BrowserModule } from '@angular/platform-browser';
3+
import { ServiceWorkerModule } from '@angular/service-worker';
34
import { MatSidenavModule, MatListModule } from '@angular/material';
45
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
56
import { FlexLayoutModule } from '@angular/flex-layout';
67

8+
import { environment } from '../environments/environment';
79
import { CoreModule } from '../app/core/core.module';
810
import { MaterialModule } from './material/material.module';
911
import { AppRoutingModule } from './app-routing.module';
@@ -14,6 +16,9 @@ import { AppComponent } from './app.component';
1416
declarations: [AppComponent],
1517
imports: [
1618
BrowserModule,
19+
ServiceWorkerModule.register('/ngsw-worker.js', {
20+
enabled: environment.production
21+
}),
1722
BrowserAnimationsModule,
1823
FlexLayoutModule,
1924
MaterialModule,

src/ngsw-config.json

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
{
2+
"index": "/index.html",
3+
"appData": {
4+
"name": "RxJS Docs",
5+
"description": "RxJS Docs"
6+
},
7+
"assetGroups": [
8+
{
9+
"name": "app",
10+
"installMode": "prefetch",
11+
"resources": {
12+
"files": ["/favicon.ico", "/index.html"],
13+
"versionedFiles": ["/*.bundle.css", "/*.bundle.js", "/*.chunk.js"]
14+
}
15+
},
16+
{
17+
"name": "assets",
18+
"installMode": "lazy",
19+
"updateMode": "prefetch",
20+
"resources": {
21+
"files": ["/assets/**"]
22+
}
23+
},
24+
{
25+
"name": "fonts",
26+
"resources": {
27+
"urls": ["https://fonts.googleapis.com/**"]
28+
}
29+
},
30+
{
31+
"name": "misc",
32+
"resources": {
33+
"urls": [
34+
"https://cdnjs.cloudflare.com/ajax/libs/web-animations/2.2.5/web-animations.min.js",
35+
"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.5.0/styles/monokai_sublime.min.css",
36+
"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.5.0/highlight.min.js",
37+
"https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.5.0/languages/typescript.min.js",
38+
"http://reactivex.io/rxjs/img/**"
39+
]
40+
}
41+
}
42+
]
43+
}

0 commit comments

Comments
 (0)