Skip to content

Commit 884747d

Browse files
committed
update dependencies and apply this option(TypeStrong/ts-loader#671) of ts-loader
1 parent 7116dbd commit 884747d

File tree

5 files changed

+162
-156
lines changed

5 files changed

+162
-156
lines changed

.electron-vue/webpack.main.config.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ let mainConfig = {
3636
use: {
3737
loader: 'ts-loader',
3838
options: {
39-
appendTsSuffixTo: [/\.vue$/]
39+
appendTsSuffixTo: [/\.vue$/],
40+
onlyCompileBundledFiles: true
4041
}
4142
}
4243
},

.electron-vue/webpack.renderer.config.js

+4-2
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,8 @@ let rendererConfig = {
4848
use: {
4949
loader: 'ts-loader',
5050
options: {
51-
appendTsSuffixTo: [/\.vue$/]
51+
appendTsSuffixTo: [/\.vue$/],
52+
onlyCompileBundledFiles: true
5253
}
5354
}
5455
},
@@ -200,7 +201,8 @@ let aboutConfig = {
200201
use: {
201202
loader: 'ts-loader',
202203
options: {
203-
appendTsSuffixTo: [/\.vue$/]
204+
appendTsSuffixTo: [/\.vue$/],
205+
onlyCompileBundledFiles: true
204206
}
205207
}
206208
},

package.json

+19-19
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@
3232
"author": "Boik Su <[email protected]>",
3333
"license": "Apache-2.0",
3434
"dependencies": {
35-
"axios": "^0.16.2",
36-
"collect.js": "^3.0.51",
35+
"axios": "^0.17.0",
36+
"collect.js": "^3.0.52",
3737
"css-element-queries": "^0.4.0",
3838
"electron-localshortcut": "next",
3939
"electron-process-manager": "^0.1.0",
4040
"fetch-jsonp": "^1.1.3",
4141
"fuse.js": "^3.2.0",
4242
"lulumi": "^0.0.23",
43-
"nanoid": "^0.2.2",
43+
"nanoid": "^1.0.1",
4444
"node-localstorage": "^1.3.0",
4545
"punycode": "^2.1.0",
4646
"vue": "2.4.4",
@@ -50,12 +50,12 @@
5050
"vuex": "2.4.1"
5151
},
5252
"devDependencies": {
53-
"@types/chrome": "^0.0.50",
54-
"@types/mocha": "^2.2.43",
55-
"@types/webpack": "^3.0.13",
53+
"@types/chrome": "^0.0.51",
54+
"@types/mocha": "^2.2.44",
55+
"@types/webpack": "^3.0.14",
5656
"@types/webpack-env": "^1.13.2",
5757
"@types/webpack-hot-middleware": "^2.16.0",
58-
"ava": "^0.22.0",
58+
"ava": "^0.23.0",
5959
"babel-cli": "^6.26.0",
6060
"babel-core": "^6.26.0",
6161
"babel-eslint": "^8.0.1",
@@ -68,30 +68,30 @@
6868
"babel-minify-webpack-plugin": "^0.2.0",
6969
"cfonts": "^1.1.3",
7070
"chai": "^4.1.2",
71-
"chalk": "^2.2.0",
72-
"cross-env": "^5.1.0",
71+
"chalk": "^2.3.0",
72+
"cross-env": "^5.1.1",
7373
"css-loader": "^0.28.7",
7474
"del": "^3.0.0",
7575
"devtron": "^1.4.0",
7676
"electron": "1.8.2-beta.1",
7777
"electron-debug": "^1.4.0",
78-
"electron-devtools-installer": "^2.2.0",
78+
"electron-devtools-installer": "^2.2.1",
7979
"electron-packager": "^9.1.0",
8080
"electron-rebuild": "^1.6.0",
81-
"element-ui": "^1.4.7",
82-
"eslint": "^4.9.0",
81+
"element-ui": "1.4.8",
82+
"eslint": "^4.10.0",
8383
"eslint-config-airbnb-base": "^12.1.0",
8484
"eslint-friendly-formatter": "^3.0.0",
8585
"eslint-import-resolver-webpack": "^0.8.3",
8686
"eslint-loader": "^1.9.0",
8787
"eslint-plugin-html": "3.2.2",
8888
"eslint-plugin-import": "^2.8.0",
89-
"extract-text-webpack-plugin": "^3.0.1",
89+
"extract-text-webpack-plugin": "^3.0.2",
9090
"file-loader": "^1.1.5",
9191
"git-rev-sync": "^1.9.1",
9292
"html-webpack-plugin": "^2.30.1",
9393
"inject-loader": "^3.0.1",
94-
"iview": "^2.5.1",
94+
"iview": "2.5.1",
9595
"json-loader": "^0.5.7",
9696
"karma": "^1.7.1",
9797
"karma-chai": "^0.1.0",
@@ -101,25 +101,25 @@
101101
"karma-sourcemap-loader": "^0.3.7",
102102
"karma-spec-reporter": "^0.0.31",
103103
"karma-webpack": "^2.0.5",
104-
"less": "2.7.2",
104+
"less": "2.7.3",
105105
"less-loader": "^4.0.5",
106106
"mocha": "^4.0.1",
107107
"mockery": "^2.1.0",
108108
"multispinner": "^0.2.1",
109109
"pug": "^2.0.0-rc.4",
110110
"pug-html-loader": "^1.1.5",
111111
"require-dir": "^0.3.2",
112-
"sinon": "^4.0.1",
112+
"sinon": "^4.0.2",
113113
"sortablejs": "^1.6.1",
114114
"spectron": "^3.7.2",
115115
"style-loader": "^0.19.0",
116116
"tree-kill": "^1.2.0",
117-
"tslint": "^5.7.0",
117+
"tslint": "^5.8.0",
118118
"tslint-config-airbnb": "^5.3.0",
119119
"tslint-loader": "^3.5.3",
120-
"ts-loader": "^3.0.3",
120+
"ts-loader": "^3.1.1",
121121
"typescript": "^2.5.3",
122-
"typescript-formatter": "^6.0.0",
122+
"typescript-formatter": "^7.0.0",
123123
"url-loader": "^0.6.2",
124124
"vue-awesome": "^2.3.3",
125125
"vue-class-component": "5.0.2",

src/tsconfig.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@
2121
"es7",
2222
"es2017.object"
2323
],
24-
"typeRoots": [
25-
"../node_modules/@types"
26-
],
2724
"types": [
2825
"chrome",
2926
"node",
@@ -34,6 +31,7 @@
3431
]
3532
},
3633
"include": [
37-
"**/*.ts"
34+
"**/*.ts",
35+
"../node_modules/electron/electron.d.ts"
3836
]
3937
}

0 commit comments

Comments
 (0)