Cleanup old vue cli config
This commit is contained in:
parent
2af50c7307
commit
c0210bd6b4
3 changed files with 143 additions and 6835 deletions
17
package.json
17
package.json
|
@ -7,7 +7,7 @@
|
||||||
"serve:dist-dev": "node scripts/serve-dist.js",
|
"serve:dist-dev": "node scripts/serve-dist.js",
|
||||||
"build": "vite build && rollup -c ./rollup.sw.js && workbox copyLibraries dist/",
|
"build": "vite build && rollup -c ./rollup.sw.js && workbox copyLibraries dist/",
|
||||||
"build:dev": "vite build -m development --outDir dist-dev/",
|
"build:dev": "vite build -m development --outDir dist-dev/",
|
||||||
"lint": "vue-cli-service lint --ignore-pattern '*.test.*'",
|
"lint": "eslint --ignore-pattern '*.test.*' ./src --ext .vue,.js,.ts",
|
||||||
"cypress:open": "cypress open",
|
"cypress:open": "cypress open",
|
||||||
"test:unit": "jest",
|
"test:unit": "jest",
|
||||||
"test:frontend": "cypress run"
|
"test:frontend": "cypress run"
|
||||||
|
@ -45,15 +45,11 @@
|
||||||
"@rollup/plugin-node-resolve": "13.0.4",
|
"@rollup/plugin-node-resolve": "13.0.4",
|
||||||
"@rollup/plugin-replace": "3.0.0",
|
"@rollup/plugin-replace": "3.0.0",
|
||||||
"@types/jest": "26.0.24",
|
"@types/jest": "26.0.24",
|
||||||
"@typescript-eslint/eslint-plugin": "4.28.4",
|
"@typescript-eslint/eslint-plugin": "^4.28.4",
|
||||||
"@typescript-eslint/parser": "4.28.4",
|
"@typescript-eslint/parser": "^4.28.4",
|
||||||
"@vue/cli": "4.5.13",
|
"@vue/babel-preset-app": "^4.5.13",
|
||||||
"@vue/cli-plugin-babel": "4.5.13",
|
|
||||||
"@vue/cli-plugin-eslint": "4.5.13",
|
|
||||||
"@vue/cli-plugin-pwa": "4.5.13",
|
|
||||||
"@vue/cli-plugin-typescript": "4.5.13",
|
|
||||||
"@vue/cli-service": "4.5.13",
|
|
||||||
"@vue/eslint-config-typescript": "7.0.0",
|
"@vue/eslint-config-typescript": "7.0.0",
|
||||||
|
"autoprefixer": "^10.3.1",
|
||||||
"axios": "0.21.1",
|
"axios": "0.21.1",
|
||||||
"babel-eslint": "10.1.0",
|
"babel-eslint": "10.1.0",
|
||||||
"cypress": "8.0.0",
|
"cypress": "8.0.0",
|
||||||
|
@ -66,7 +62,6 @@
|
||||||
"rollup-plugin-terser": "7.0.2",
|
"rollup-plugin-terser": "7.0.2",
|
||||||
"rollup-plugin-visualizer": "5.5.2",
|
"rollup-plugin-visualizer": "5.5.2",
|
||||||
"sass": "1.36.0",
|
"sass": "1.36.0",
|
||||||
"sass-loader": "10.2.0",
|
|
||||||
"ts-jest": "27.0.4",
|
"ts-jest": "27.0.4",
|
||||||
"typescript": "4.3.5",
|
"typescript": "4.3.5",
|
||||||
"vite": "2.4.3",
|
"vite": "2.4.3",
|
||||||
|
@ -111,7 +106,7 @@
|
||||||
"parser": "@typescript-eslint/parser"
|
"parser": "@typescript-eslint/parser"
|
||||||
},
|
},
|
||||||
"ignorePatterns": [
|
"ignorePatterns": [
|
||||||
"*.test.js",
|
"*.test.*",
|
||||||
"cypress/*"
|
"cypress/*"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,78 +0,0 @@
|
||||||
module.exports = {
|
|
||||||
configureWebpack: {
|
|
||||||
devtool: 'source-map',
|
|
||||||
},
|
|
||||||
chainWebpack: config => {
|
|
||||||
// Don't prefetch all languages
|
|
||||||
config.plugin('prefetch').tap(options => {
|
|
||||||
options[0].fileBlacklist = options[0].fileBlacklist || []
|
|
||||||
options[0].fileBlacklist.push(/lang(.)+?\.js$/)
|
|
||||||
options[0].fileBlacklist.push(/lang(.)+?\.js.map$/)
|
|
||||||
return options
|
|
||||||
})
|
|
||||||
},
|
|
||||||
productionSourceMap: false,
|
|
||||||
pwa: {
|
|
||||||
name: 'Vikunja',
|
|
||||||
themeColor: '#1973ff',
|
|
||||||
appleMobileWebAppCapable: 'yes',
|
|
||||||
workboxPluginMode: 'InjectManifest',
|
|
||||||
workboxOptions: {
|
|
||||||
importWorkboxFrom: 'local',
|
|
||||||
swSrc: 'src/ServiceWorker/sw.js',
|
|
||||||
},
|
|
||||||
iconPaths: {
|
|
||||||
favicon32: 'images/icons/favicon-32x32.png',
|
|
||||||
favicon16: 'images/icons/favicon-16x16.png',
|
|
||||||
appleTouchIcon: 'images/icons/apple-touch-icon-152x152.png',
|
|
||||||
maskIcon: 'images/icons/safari-pinned-tab.svg',
|
|
||||||
msTileImage: 'images/icons/msapplication-icon-144x144.png',
|
|
||||||
},
|
|
||||||
manifestOptions: {
|
|
||||||
'icons': [
|
|
||||||
{
|
|
||||||
'src': './images/icons/android-chrome-192x192.png',
|
|
||||||
'sizes': '192x192',
|
|
||||||
'type': 'image/png',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'src': './images/icons/android-chrome-512x512.png',
|
|
||||||
'sizes': '512x512',
|
|
||||||
'type': 'image/png',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'src': './images/icons/icon-maskable.png',
|
|
||||||
'sizes': '1024x1024',
|
|
||||||
'type': 'image/png',
|
|
||||||
'purpose': 'maskable',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
shortcuts: [
|
|
||||||
{
|
|
||||||
name: 'Overview',
|
|
||||||
url: '/',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'Namespaces And Lists Overview',
|
|
||||||
short_name: 'Namespaces & Lists',
|
|
||||||
url: '/namespaces',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'Tasks Next Week',
|
|
||||||
short_name: 'Next Week',
|
|
||||||
url: '/tasks/by/week',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'Tasks Next Month',
|
|
||||||
short_name: 'Next Month',
|
|
||||||
url: '/tasks/by/month',
|
|
||||||
},
|
|
||||||
{
|
|
||||||
name: 'Teams Overview',
|
|
||||||
short_name: 'Teams',
|
|
||||||
url: '/teams',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
Loading…
Reference in a new issue