Skip to content

Commit 5494188

Browse files
committed
What: fix babel issue
Why: * upgrade to babel-presets-env How: * nop
1 parent fc6f2d6 commit 5494188

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

.babelrc

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"presets": [
3+
["env", {
4+
"targets": {
5+
"node": "current"
6+
}
7+
}]
8+
]
9+
}

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ PKGER=node node_modules/electron-packager/cli.js
1010
ZIP=node ../zip.js
1111

1212
ELECTRON_MIRROR=http://npm.taobao.org/mirrors/electron/
13-
ELECTRON_VERSION=1.8.2
13+
ELECTRON_VERSION=1.8.3
1414
BUILD=ELECTRON_MIRROR=$(ELECTRON_MIRROR) $(PKGER) ./dist $(NAME) --overwrite --out=build --electron-version $(ELECTRON_VERSION)
1515

1616

gulpfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ var appTasks = {
4646
//.pipe(plugins.jshint.reporter('default'))
4747
.pipe(
4848
plugins.babel({
49-
presets: ["es2015"]
49+
presets: ["env"]
5050
})
5151
)
5252
.pipe(plugins.concat("app.js"))

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
"angular-ui-router": "1.0.3",
2525
"ava": "^0.25.0",
2626
"babel-core": "^6.26.0",
27-
"babel-preset-es2015": "^6.24.1",
27+
"babel-preset-env": "^1.6.1",
2828
"bootstrap": "3.3.7",
2929
"bower": "~1.8.2",
3030
"codemirror": "^5.35.0",
@@ -40,6 +40,7 @@
4040
"gulp-connect": "^5.5.0",
4141
"gulp-jshint": "~2.1.0",
4242
"gulp-load-plugins": "~1.5.0",
43+
"gulp-run": "^1.7.1",
4344
"jasmine-core": "^3.1.0",
4445
"jquery": "^3.3.1",
4546
"jquery.qrcode": "^1.0.3",
@@ -59,7 +60,6 @@
5960
"dependencies": {
6061
"aws-sdk": "^2.205.0",
6162
"clipboard": "^2.0.0",
62-
"gulp-run": "^1.7.1",
6363
"koa": "^2.5.0",
6464
"koa-convert": "^1.2.0",
6565
"koa-static-server": "^1.3.4",

0 commit comments

Comments
 (0)