Skip to content

Commit 6e4e79f

Browse files
committed
bump vue-cli config to 4
1 parent 11aa847 commit 6e4e79f

File tree

4 files changed

+6
-28
lines changed

4 files changed

+6
-28
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = {
55
},
66
extends: ["plugin:vue/essential", "@vue/prettier"],
77
rules: {
8-
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
8+
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
99
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
1010
},
1111
parserOptions: {

babel.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
module.exports = {
2-
presets: ['@vue/app'],
3-
}
2+
presets: ["@vue/cli-plugin-babel/preset"]
3+
};

jest.config.js

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,3 @@
11
module.exports = {
2-
moduleFileExtensions: ['js', 'jsx', 'json', 'vue'],
3-
transform: {
4-
'^.+\\.vue$': 'vue-jest',
5-
'.+\\.(css|styl|less|sass|scss|svg|png|jpg|ttf|woff|woff2)$':
6-
'jest-transform-stub',
7-
'^.+\\.jsx?$': 'babel-jest',
8-
},
9-
transformIgnorePatterns: ['/node_modules/'],
10-
moduleNameMapper: {
11-
'^@/(.*)$': '<rootDir>/src/$1',
12-
},
13-
snapshotSerializers: ['jest-serializer-vue'],
14-
testMatch: [
15-
'**/tests/unit/**/*.spec.(js|jsx|ts|tsx)|**/__tests__/*.(js|jsx|ts|tsx)',
16-
],
17-
testURL: 'http://localhost/',
18-
watchPlugins: [
19-
'jest-watch-typeahead/filename',
20-
'jest-watch-typeahead/testname',
21-
],
22-
}
2+
preset: "@vue/cli-plugin-unit-jest"
3+
};

package.json

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"electron-context-menu": "0.15.1",
2323
"electron-updater": "4.2.0",
2424
"element-ui": "2.12.0",
25-
"core-js": "2.6.10",
25+
"core-js": "3.4.0",
2626
"vue": "2.6.10",
2727
"vue-router": "3.1.3"
2828
},
@@ -34,9 +34,6 @@
3434
"@vue/cli-service": "^4.0.5",
3535
"@vue/eslint-config-prettier": "^5.0.0",
3636
"@vue/test-utils": "1.0.0-beta.29",
37-
"babel-core": "7.0.0-bridge.0",
38-
"babel-eslint": "^10.0.3",
39-
"babel-jest": "^24.9.0",
4037
"electron": "7.1.1",
4138
"eslint": "6.6.0",
4239
"eslint-plugin-prettier": "^3.1.1",

0 commit comments

Comments
 (0)