Skip to content

Commit 40a7626

Browse files
zthxxxPanJiaChen
authored andcommitted
feat: perfect migrate to @vue/cli-service, upgrade vue babel version (#1267)
* feat: perfect migrate to @vue/cli-service, upgrade vue babel version 1. update to @vue/[email protected], @babel/[email protected] 2. use vue-cli service replace config file in build/ and config/ 3. upgrade vue and babel configuration 4. solve the svg-sprite config problem #980 refs: #932 #1087 #980 #1056 * fix: fix breadcrumb dependency * fix: fix index template and static assets load with vue-cli 3 * fix: fix import driver.js in guide page * refactor(mock): mak mock api compatible with both web-view and webpack server 1. 把 Mockjs 功能移到 server 端中间件,同时也兼容前端直接劫持 XHR 2. dev 环境下默认作为 express 中间件通过 webpack server 提供 mock api 3. prod 构建时,默认在前端用 Mockjs 劫持 XHR benefits: - dev 开发调试时能直接看到 XHR 请求,方便调试网络,能和后端对接联调 - 避开在开发时因为 Mockjs 引起的网络 bug - prod 构建时劫持 XHR,保证本项目的 Github Pages preview 能正常显示 (逻辑和 error-log 一样) - 前后台使用的 mock 是同一份代码,不会增加维护负担 ref: [#562](#562 (comment)) * update requires the lowest version of node * add favicon * fix(TreeTable): fix `Array.prototype.concat` on custom-tree-table page
1 parent 6c967f1 commit 40a7626

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+211
-893
lines changed

.babelrc

-17
This file was deleted.

.env

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VUE_CLI_BABEL_TRANSPILE_MODULES = true

.env.development

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VUE_APP_BASE_API = '/api'

.env.production

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VUE_APP_BASE_API = '/api'

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,7 @@ selenium-debug.log
1717
*.ntvs*
1818
*.njsproj
1919
*.sln
20+
*.local
2021

2122
package-lock.json
23+
yarn.lock

babel.config.js

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
module.exports = {
2+
presets: [
3+
['@vue/app', { modules: 'commonjs' }]
4+
],
5+
plugins: [],
6+
env: {
7+
test: {
8+
presets: [
9+
['@vue/app', { modules: 'commonjs' }]
10+
],
11+
plugins: ['istanbul']
12+
}
13+
}
14+
}

build/build.js

-67
This file was deleted.

build/check-versions.js

-64
This file was deleted.

build/logo.png

-6.69 KB
Binary file not shown.

build/utils.js

-108
This file was deleted.

build/vue-loader.conf.js

-5
This file was deleted.

0 commit comments

Comments
 (0)