From d9076932edc5a488424c4fe7629a0ee7740f84c8 Mon Sep 17 00:00:00 2001 From: Mithilesh Kohale Date: Sat, 14 Dec 2019 16:20:36 +0530 Subject: [PATCH 1/4] establish basic Service Worker --- modules/core/server-ts/middleware/website.tsx | 1 + modules/pwa/client-react/__tests__/Pwa.test.ts | 1 + modules/pwa/client-react/index.js | 4 ++++ modules/pwa/client-react/index.native.js | 1 + modules/pwa/client-react/initServiceWorker.js | 14 ++++++++++++++ modules/pwa/client-react/package.json | 5 +++++ modules/pwa/client-react/sw/basicServiceWorker.js | 13 +++++++++++++ packages/client/package.json | 1 + packages/client/src/modules.ts | 2 ++ 9 files changed, 42 insertions(+) create mode 100644 modules/pwa/client-react/__tests__/Pwa.test.ts create mode 100644 modules/pwa/client-react/index.js create mode 100644 modules/pwa/client-react/index.native.js create mode 100644 modules/pwa/client-react/initServiceWorker.js create mode 100644 modules/pwa/client-react/package.json create mode 100644 modules/pwa/client-react/sw/basicServiceWorker.js diff --git a/modules/core/server-ts/middleware/website.tsx b/modules/core/server-ts/middleware/website.tsx index e8a5669533..d1093d9241 100644 --- a/modules/core/server-ts/middleware/website.tsx +++ b/modules/core/server-ts/middleware/website.tsx @@ -62,6 +62,7 @@ const Html = ({ content, state, css, headElements, helmet }: HtmlProps) => (
+