Add PWA support

This commit is contained in:
Kasper Seweryn 2022-04-30 13:25:59 +00:00 committed by Georg Krause
commit f3ccfcbe48
17 changed files with 893 additions and 308 deletions

View file

@ -50,6 +50,7 @@
"@babel/core": "7.17.12",
"@babel/plugin-transform-runtime": "7.17.12",
"@babel/preset-env": "7.16.11",
"@types/jest": "27.4.1",
"@types/jquery": "3.5.14",
"@types/lodash-es": "4.17.6",
"@typescript-eslint/eslint-plugin": "5.19.0",
@ -72,12 +73,18 @@
"jest-cli": "27.5.1",
"moxios": "0.4.0",
"sinon": "13.0.2",
"ts-jest": "27.1.4",
"typescript": "4.6.3",
"unplugin-vue2-script-setup": "0.10.2",
"vite": "2.8.6",
"vite-plugin-pwa": "0.12.0",
"vite-plugin-vue2": "1.9.3",
"vue-jest": "3.0.7",
"vue-template-compiler": "2.6.14"
"vue-template-compiler": "2.6.14",
"workbox-core": "6.5.3",
"workbox-precaching": "6.5.3",
"workbox-routing": "6.5.3",
"workbox-strategies": "6.5.3"
},
"resolutions": {
"vue-plyr/plyr": "3.6.12"
@ -132,14 +139,19 @@
],
"jest": {
"moduleFileExtensions": [
"ts",
"js",
"json",
"vue"
],
"transform": {
".*\\.(vue)$": "vue-jest",
"^.+\\.js$": "babel-jest"
"^.+\\.js$": "babel-jest",
"^.+\\.ts$": "ts-jest"
},
"transformIgnorePatterns": [
"<rootDir>/node_modules/(?!lodash-es/.*)"
],
"moduleNameMapper": {
"^~/(.*)$": "<rootDir>/src/$1"
},