From e97a04c547eb6a63c7af7cbbc3596b16a85456b6 Mon Sep 17 00:00:00 2001 From: sronveaux Date: Tue, 21 Mar 2023 12:54:14 +0100 Subject: [PATCH 1/7] Changed version number in package-lock.json --- package-lock.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 8857c6f5..fb0f0700 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "wegue", - "version": "1.1.0", + "version": "1.2.0", "lockfileVersion": 1, "requires": true, "dependencies": { From ef54bfcc3adbebb5661c60760fce88320cdc6bd7 Mon Sep 17 00:00:00 2001 From: sronveaux Date: Thu, 23 Mar 2023 20:58:34 +0100 Subject: [PATCH 2/7] Using defineConfig inside vue.config.js to conform to official Vue-CLI template --- vue.config.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/vue.config.js b/vue.config.js index e70953d1..d04fbf83 100644 --- a/vue.config.js +++ b/vue.config.js @@ -1,9 +1,10 @@ const path = require('path') +const { defineConfig } = require('@vue/cli-service') /** * @type {import('@vue/cli-service').ProjectOptions} */ -module.exports = { +module.exports = defineConfig({ assetsDir: 'static', runtimeCompiler: true, pages: { @@ -57,4 +58,4 @@ module.exports = { return options }) } -} +}) From e5a8c2fe43d13e0411dfdf2eb5fbb8ffccaa2784 Mon Sep 17 00:00:00 2001 From: sronveaux Date: Thu, 23 Mar 2023 21:05:27 +0100 Subject: [PATCH 3/7] Added transpileDependencies and associated comment to vue.config.js --- vue.config.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/vue.config.js b/vue.config.js index d04fbf83..bbfba2a1 100644 --- a/vue.config.js +++ b/vue.config.js @@ -57,5 +57,10 @@ module.exports = defineConfig({ : 'static' return options }) - } + }, + + // Disable dependencies transpilation as browsers currently targetted by + // .browserlistrc doesn't need it anymore. If legacy browsers need to be supported + // modules to be processed can be granularly specified here. + transpileDependencies: false }) From ace3ad1d677d8a6e282590f26a64eda02653c27f Mon Sep 17 00:00:00 2001 From: sronveaux Date: Thu, 23 Mar 2023 21:16:01 +0100 Subject: [PATCH 4/7] Fine-tuned Webpack config for test mode --- vue.config.js | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/vue.config.js b/vue.config.js index bbfba2a1..49030a7f 100644 --- a/vue.config.js +++ b/vue.config.js @@ -41,13 +41,6 @@ module.exports = defineConfig({ chainWebpack: config => { config.resolve.alias.set('APP', path.resolve(config.resolve.alias.get('@'), '../app')) - if (process.env.NODE_ENV === 'test') { - config.devtool('eval') - - config.optimization.runtimeChunk(false) - config.optimization.splitChunks(false) - } - return config .plugin('copy') .tap(options => { @@ -59,6 +52,19 @@ module.exports = defineConfig({ }) }, + configureWebpack: config => { + // Tweak configuration options for Karma test runner to produce a bundle + // which can run under Chrome headless. Avoid warnings due to custom entries + // and customized filenames. Enable correct code coverage of .vue files. + if (process.env.NODE_ENV === 'test') { + config.devtool = 'eval' + config.optimization.runtimeChunk = false + config.optimization.splitChunks= false + delete config.entry + delete config.output.filename + } + }, + // Disable dependencies transpilation as browsers currently targetted by // .browserlistrc doesn't need it anymore. If legacy browsers need to be supported // modules to be processed can be granularly specified here. From d9c415cd2cc80ccce1f1a2e3e69b613ad9a6bdd3 Mon Sep 17 00:00:00 2001 From: sronveaux Date: Mon, 27 Mar 2023 11:15:45 +0200 Subject: [PATCH 5/7] Fixed a delete/paste wrong manipulation --- vue.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vue.config.js b/vue.config.js index 49030a7f..03cb4f40 100644 --- a/vue.config.js +++ b/vue.config.js @@ -59,7 +59,8 @@ module.exports = defineConfig({ if (process.env.NODE_ENV === 'test') { config.devtool = 'eval' config.optimization.runtimeChunk = false - config.optimization.splitChunks= false + config.optimization.splitChunks = false + delete config.target delete config.entry delete config.output.filename } From 33a9069d93350372c4328c0b20b297ca7f83b14a Mon Sep 17 00:00:00 2001 From: sronveaux Date: Mon, 27 Mar 2023 11:16:53 +0200 Subject: [PATCH 6/7] Exluded app-starter from IDE auto-completion hints --- jsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jsconfig.json b/jsconfig.json index c2f94229..287e8913 100644 --- a/jsconfig.json +++ b/jsconfig.json @@ -15,5 +15,5 @@ "scripthost" ] }, - "exclude": ["dist", "node_modules"] + "exclude": ["app-starter", "dist", "node_modules"] } From c363920c0d58d170bf59334bb57a8f17fbe14ad3 Mon Sep 17 00:00:00 2001 From: sronveaux Date: Fri, 30 Jun 2023 09:44:11 +0200 Subject: [PATCH 7/7] Corrected package-lock.json file --- package-lock.json | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8377fad9..0c8bffdb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "wegue", "version": "1.2.1", - "lockfileVersion": 1, + "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "wegue", - "version": "1.2.0", + "version": "1.2.1", "dependencies": { "axios": "^0.21.4", "canvas-record": "^3.0.0", @@ -6494,6 +6494,7 @@ "version": "0.15.1", "resolved": "https://registry.npmjs.org/consolidate/-/consolidate-0.15.1.tgz", "integrity": "sha512-DW46nrsMJgy9kqAbPt5rKaCr7uFtpo4mSUvLHIUbJEjm0vo+aY5QLwBUq3FK4tRnJr/X0Psc0C4jf/h+HtXSMw==", + "deprecated": "Please upgrade to consolidate v1.0.0+ as it has been modernized with several long-awaited fixes implemented. Maintenance is supported by Forward Email at https://forwardemail.net ; follow/watch https://github.com/ladjs/consolidate for updates and release changelog", "dev": true, "dependencies": { "bluebird": "^3.1.1"