From 926e818ffdb19ff6b9837df111d08d55e8ac7f3d Mon Sep 17 00:00:00 2001 From: eitanfrailich Date: Mon, 29 May 2017 21:33:36 +0300 Subject: [PATCH] add angular cli SW --- .angular-cli.json | 4 +++- package.json | 3 ++- yarn.lock | 13 ++++++++++++- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.angular-cli.json b/.angular-cli.json index a15ae5f..e247be4 100644 --- a/.angular-cli.json +++ b/.angular-cli.json @@ -18,6 +18,7 @@ "tsconfig": "tsconfig.app.json", "testTsconfig": "tsconfig.spec.json", "prefix": "app", + "serviceWorker": true, "styles": [ "theme/variables.scss", "styles.scss", @@ -54,6 +55,7 @@ }, "defaults": { "styleExt": "scss", - "component": {} + "component": { + } } } diff --git a/package.json b/package.json index 499bbaf..a16dd54 100644 --- a/package.json +++ b/package.json @@ -22,13 +22,14 @@ "@angular/platform-browser": "^4.1.0", "@angular/platform-browser-dynamic": "^4.1.0", "@angular/router": "^4.0.0", + "@angular/service-worker": "^1.0.0-beta.14", "@types/graphql": "^0.9.1", "apollo-angular": "^0.13.0", "apollo-client": "^1.3.0", "core-js": "^2.4.1", + "font-awesome": "^4.7.0", "global": "^4.3.2", "graphql-tag": "^2.2.0", - "font-awesome": "^4.7.0", "ionic-angular": "^3.2.1", "ionicons": "^3.0.0", "moment": "^2.18.1", diff --git a/yarn.lock b/yarn.lock index 5f405c4..2fba2ff 100644 --- a/yarn.lock +++ b/yarn.lock @@ -107,6 +107,13 @@ version "4.1.3" resolved "https://registry.yarnpkg.com/@angular/router/-/router-4.1.3.tgz#ddafd46ae7ccc8b1f74904ffb45f394e44625216" +"@angular/service-worker@^1.0.0-beta.14": + version "1.0.0-beta.14" + resolved "https://registry.yarnpkg.com/@angular/service-worker/-/service-worker-1.0.0-beta.14.tgz#445242b7a62fedf9fc6c439eede4a31fa2c9f07f" + dependencies: + base64-js "^1.1.2" + jshashes "^1.0.5" + "@angular/tsc-wrapped@4.1.3": version "4.1.3" resolved "https://registry.yarnpkg.com/@angular/tsc-wrapped/-/tsc-wrapped-4.1.3.tgz#2d6372c9187bf1621eacd960b94b39c4f95293cd" @@ -544,7 +551,7 @@ base64-arraybuffer@0.1.5: version "0.1.5" resolved "https://registry.yarnpkg.com/base64-arraybuffer/-/base64-arraybuffer-0.1.5.tgz#73926771923b5a19747ad666aa5cd4bf9c6e9ce8" -base64-js@^1.0.2: +base64-js@^1.0.2, base64-js@^1.1.2: version "1.2.0" resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.2.0.tgz#a39992d723584811982be5e290bb6a53d86700f1" @@ -2884,6 +2891,10 @@ jsesc@~0.5.0: version "0.5.0" resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" +jshashes@^1.0.5: + version "1.0.6" + resolved "https://registry.yarnpkg.com/jshashes/-/jshashes-1.0.6.tgz#b04eb4ae8f9987b2d3ce00a6337c120543949bfd" + json-loader@^0.5.4: version "0.5.4" resolved "https://registry.yarnpkg.com/json-loader/-/json-loader-0.5.4.tgz#8baa1365a632f58a3c46d20175fc6002c96e37de"