Skip to content

Commit 4285c95

Browse files
committed
build(npm): update dependencies, support @vue/cli 4.0.0
1 parent 41d4f75 commit 4285c95

File tree

10 files changed

+13643
-135
lines changed

10 files changed

+13643
-135
lines changed

babel.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module.exports = {
22
presets: [
3-
'@vue/app',
3+
'@vue/cli-plugin-babel/preset',
44
'@babel/preset-typescript'
55
]
66
}

package-lock.json

Lines changed: 13629 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
"author": "liwb <[email protected]>",
77
"scripts": {
88
"serve": "vue-cli-service serve",
9-
"dll": "webpack -p --progress --config build/webpack.dll.conf.js",
109
"build": "vue-cli-service build",
1110
"lint": "vue-cli-service lint",
1211
"deploy": "npm run build && node build/zip.ts",
1312
"analyz": "vue-cli-service build --mode analyz",
13+
"dll": "webpack -p --progress --config build/webpack.dll.conf.js",
14+
"release": "sh ./build/release.sh",
1415
"report": "npm_config_generate_report=true npm run build",
15-
"test": "",
1616
"svg": "vsvg -s ./src/icons/svg -t ./src/icons/components --ext ts --es6",
17-
"release": "sh ./build/release.sh"
17+
"test": ""
1818
},
1919
"dependencies": {
2020
"@liwb/cloud-utils": "^1.3.0",
@@ -34,6 +34,7 @@
3434
"axios": "^0.18.0",
3535
"clipboard": "^2.0.4",
3636
"codemirror": "^5.44.0",
37+
"core-js": "^3.3.2",
3738
"driver.js": "^0.9.3",
3839
"dropzone": "^5.5.1",
3940
"echarts": "^4.1.0",
@@ -71,10 +72,10 @@
7172
"@babel/preset-typescript": "^7.3.3",
7273
"@babel/register": "^7.4.0",
7374
"@types/connect": "^3.4.32",
74-
"@vue/cli-plugin-babel": "^3.0.4",
75-
"@vue/cli-plugin-pwa": "^3.0.4",
76-
"@vue/cli-plugin-typescript": "^3.0.4",
77-
"@vue/cli-service": "^3.0.4",
75+
"@vue/cli-plugin-babel": "^4.0.5",
76+
"@vue/cli-plugin-pwa": "^4.0.5",
77+
"@vue/cli-plugin-typescript": "^4.0.5",
78+
"@vue/cli-service": "^4.0.5",
7879
"add-asset-html-webpack-plugin": "^3.1.3",
7980
"archiver": "^3.0.0",
8081
"chalk": "^2.4.2",

src/components/ImageCropper/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@
110110
<script lang="ts">
111111
import { Component, Vue, Prop, Watch } from 'vue-property-decorator';
112112
import axios from 'axios';
113-
import { dataURLToBlob } from 'utils';
113+
import { dataURLToBlob } from '@liwb/cloud-utils';
114114
import language from './utils/language';
115115
import mimes from './utils/mimes';
116116
import effectRipple from './utils/effectRipple';

src/filters/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import Vue from 'vue';
99

10-
import { formatDate } from 'utils';
10+
import { formatDate } from '@liwb/cloud-utils';
1111

1212
import {
1313
parseTime,

src/views/example/components/ArticleDetail.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<script lang="ts">
8080
import { Component, Vue, Prop } from 'vue-property-decorator';
8181
import { ElForm } from 'element-ui/types/form';
82-
import { isValidURI } from 'utils';
82+
import { isValidURI } from '@liwb/cloud-utils';
8383
import { TagsViewModule } from '@/store/modules/tagsView';
8484
import {
8585
Tinymce,

src/views/hello/index.vue

Lines changed: 0 additions & 95 deletions
This file was deleted.

src/views/hello/style.less

Lines changed: 0 additions & 19 deletions
This file was deleted.

types/index.d.ts

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,9 @@
1-
interface Window {
1+
declare interface Window {
22
LOCAL_CONFIG?: any;
33
tinymce?: any;
44
webkitURL?: any;
55
}
66

7-
declare var window: Window;
8-
9-
// @liwb/cloud-utils -> webpack alias utils
10-
declare module 'utils';
11-
127
declare module '*.png';
138

149
declare module '*.gif';

vue.config.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,9 +134,7 @@ module.exports = {
134134
// 开启 CSS source maps?
135135
sourceMap: isProd() ? true : false,
136136
// css预设器配置项
137-
loaderOptions: {},
138-
// 启用 CSS modules for all css / pre-processor files.
139-
modules: false
137+
loaderOptions: {}
140138
},
141139
configureWebpack: () => ({
142140
name: name,
@@ -155,7 +153,6 @@ module.exports = {
155153
// 文件别名
156154
'services': resolve('src/services'),
157155
'variable': resolve('src/assets/less/variable.less'),
158-
'utils': resolve('node_modules/@liwb/cloud-utils/dist/cloud-utils.esm'),
159156
'mixins': resolve('node_modules/magicless/magicless.less')
160157
}
161158
},

0 commit comments

Comments
 (0)