Merged in feature/update-dangerous-dependencies-2022-10-19 (pull request #122)

Feature/update dangerous dependencies 2022 10 19
This commit is contained in:
Ramon Wenger 2022-10-19 07:42:00 +00:00
commit 7fd5e90aad
4 changed files with 29 additions and 48 deletions

View File

@ -13,26 +13,8 @@ const assetsPath = (_path) => {
return path.posix.join(assetsSubDirectory, _path) return path.posix.join(assetsSubDirectory, _path)
} }
const createNotifierCallback = () => {
const notifier = require('node-notifier')
return (severity, errors) => {
if (severity !== 'error') return
const error = errors[0]
const filename = error.file && error.file.split('!').pop()
notifier.notify({
title: packageConfig.name,
message: severity + ': ' + error.name,
subtitle: filename || '',
icon: path.join(__dirname, 'logo.png')
})
}
}
module.exports = { module.exports = {
isDev, isDev,
assetsPath, assetsPath
createNotifierCallback
} }

View File

@ -18,7 +18,7 @@ const createLintingRule = () => ({
enforce: 'pre', enforce: 'pre',
include: [resolve('src'), resolve('test')], include: [resolve('src'), resolve('test')],
options: { options: {
formatter: require('eslint-friendly-formatter'), formatter: require('eslint-formatter-friendly'),
emitWarning: !config.dev.showEslintErrorsInOverlay, emitWarning: !config.dev.showEslintErrorsInOverlay,
}, },
}); });

View File

@ -4,35 +4,35 @@ module.exports = {
'jsx', 'jsx',
'ts', 'ts',
'json', 'json',
'vue' 'vue',
], ],
transform: { transform: {
"\\.(gql|graphql)$": "<rootDir>/node_modules/jest-transform-graphql", '\\.(gql|graphql)$': 'jest-transform-graphql',
"^.+\\.js$": "<rootDir>/node_modules/babel-jest", '^.+\\.js$': 'babel-jest',
"^.+\\.ts$": "<rootDir>/node_modules/babel-jest", '^.+\\.ts$': 'babel-jest',
'^.+\\.vue$': '<rootDir>/node_modules/vue-jest', '^.+\\.vue$': 'vue-jest',
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub' '.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$': 'jest-transform-stub',
}, },
modulePaths: [ modulePaths: [
"<rootDir>/src", '<rootDir>/src',
"<rootDir>/node_modules" '<rootDir>/node_modules',
], ],
transformIgnorePatterns: [ transformIgnorePatterns: [
'/node_modules/' '/node_modules/',
], ],
moduleNameMapper: { moduleNameMapper: {
'^@/(.*)$': '<rootDir>/src/$1', '^@/(.*)$': '<rootDir>/src/$1',
'^gql/(.*)$': '<rootDir>/src/graphql/gql/$1', '^gql/(.*)$': '<rootDir>/src/graphql/gql/$1',
}, },
snapshotSerializers: [ snapshotSerializers: [
'<rootDir>/node_modules/jest-serializer-vue' '<rootDir>/node_modules/jest-serializer-vue',
], ],
testMatch: [ testMatch: [
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)' '**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)',
], ],
testURL: 'http://localhost/', testURL: 'http://localhost/',
watchPlugins: [ watchPlugins: [
'jest-watch-typeahead/filename', 'jest-watch-typeahead/filename',
'jest-watch-typeahead/testname' 'jest-watch-typeahead/testname',
] ],
} };

View File

@ -34,6 +34,7 @@
"@babel/preset-stage-2": "^7.0.0", "@babel/preset-stage-2": "^7.0.0",
"@babel/preset-typescript": "^7.16.7", "@babel/preset-typescript": "^7.16.7",
"@babel/runtime": "^7.5.4", "@babel/runtime": "^7.5.4",
"@graphql-tools/jest-transform": "^1.2.2",
"@graphql-tools/mock": "^8.6.5", "@graphql-tools/mock": "^8.6.5",
"@graphql-tools/schema": "^8.3.7", "@graphql-tools/schema": "^8.3.7",
"@tiptap/core": "^2.0.0-beta.174", "@tiptap/core": "^2.0.0-beta.174",
@ -48,17 +49,16 @@
"@vue/composition-api": "^1.4.2", "@vue/composition-api": "^1.4.2",
"@vue/test-utils": "^1.3.0", "@vue/test-utils": "^1.3.0",
"appolo": "^6.0.19", "appolo": "^6.0.19",
"autoprefixer": "^7.1.2", "autoprefixer": "^10.4.12",
"babel-bridge": "^1.12.11",
"babel-core": "^7.0.0-bridge.0", "babel-core": "^7.0.0-bridge.0",
"babel-helper-vue-jsx-merge-props": "^2.0.3", "babel-helper-vue-jsx-merge-props": "^2.0.3",
"babel-jest": "^24.8.0", "babel-jest": "^25.5.1",
"babel-loader": "^8.0.6", "babel-loader": "^8.0.6",
"babel-plugin-syntax-jsx": "^6.18.0", "babel-plugin-syntax-jsx": "^6.18.0",
"babel-plugin-transform-vue-jsx": "^3.5.0", "babel-plugin-transform-vue-jsx": "^3.5.0",
"chalk": "^2.0.1", "chalk": "^2.0.1",
"copy-webpack-plugin": "^10.1.0", "copy-webpack-plugin": "^10.1.0",
"css-loader": "^0.28.0", "css-loader": "^6.7.1",
"css-minimizer-webpack-plugin": "^3.4.1", "css-minimizer-webpack-plugin": "^3.4.1",
"cy2": "^1.2.1", "cy2": "^1.2.1",
"cypress": "^10", "cypress": "^10",
@ -66,7 +66,7 @@
"debounce": "^1.2.0", "debounce": "^1.2.0",
"eslint": "^7.32.0", "eslint": "^7.32.0",
"eslint-config-standard": "^16.0.3", "eslint-config-standard": "^16.0.3",
"eslint-friendly-formatter": "^4.0.1", "eslint-formatter-friendly": "^7.0.0",
"eslint-loader": "^4.0.2", "eslint-loader": "^4.0.2",
"eslint-plugin-cypress": "^2.12.1", "eslint-plugin-cypress": "^2.12.1",
"eslint-plugin-import": "^2.26.0", "eslint-plugin-import": "^2.26.0",
@ -80,25 +80,24 @@
"graphql-tag": "^2.10.1", "graphql-tag": "^2.10.1",
"graphql-tools": "^8.2.5", "graphql-tools": "^8.2.5",
"html-webpack-plugin": "^5.5.0", "html-webpack-plugin": "^5.5.0",
"jest": "^24.8.0", "jest": "^25.5.4",
"jest-serializer-vue": "^2.0.2", "jest-serializer-vue": "^2.0.2",
"jest-transform-graphql": "^2.1.0", "jest-transform-graphql": "^2.1.0",
"jest-transform-stub": "^2.0.0", "jest-transform-stub": "^2.0.0",
"jest-watch-typeahead": "^0.3.1", "jest-watch-typeahead": "^2.2.0",
"lodash": "^4.17.10", "lodash": "^4.17.10",
"mini-css-extract-plugin": "^2.4.5", "mini-css-extract-plugin": "^2.4.5",
"mock-apollo-client": "^1.2.0", "mock-apollo-client": "^1.2.0",
"node-notifier": "^5.1.2", "node-sass": "^7.0.3",
"node-sass": "^4.13.1",
"ora": "^1.2.0", "ora": "^1.2.0",
"portfinder": "^1.0.13", "portfinder": "^1.0.13",
"postcss-import": "^11.0.0", "postcss-import": "^15.0.0",
"postcss-loader": "^2.0.8", "postcss-loader": "^7.0.1",
"postcss-url": "^7.2.1", "postcss-url": "^10.1.3",
"rimraf": "^2.6.0", "rimraf": "^2.6.0",
"sass-loader": "^12.6.0", "sass-loader": "^12.6.0",
"semver": "^5.3.0", "semver": "^5.3.0",
"shelljs": "^0.7.6", "shelljs": "^0.8.5",
"survey-vue": "^1.9.2", "survey-vue": "^1.9.2",
"ts-loader": "^8.3.0", "ts-loader": "^8.3.0",
"typescript": "^4.5.4", "typescript": "^4.5.4",
@ -111,7 +110,7 @@
"vue": "2.6.14", "vue": "2.6.14",
"vue-analytics": "^5.16.2", "vue-analytics": "^5.16.2",
"vue-apollo": "^3.1.0", "vue-apollo": "^3.1.0",
"vue-jest": "^3.0.4", "vue-jest": "^4.0.1",
"vue-loader": "^15.9.8", "vue-loader": "^15.9.8",
"vue-matomo": "^4.1.0", "vue-matomo": "^4.1.0",
"vue-router": "^3.5.3", "vue-router": "^3.5.3",