From a07869b0fe3ebca434ae035f165df985778a4a4e Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 10 Nov 2016 11:56:40 +0100 Subject: [PATCH] use babel preset instead of separate plugins --- .babelrc | 3 +++ package.json | 6 ++---- 2 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 .babelrc diff --git a/.babelrc b/.babelrc new file mode 100644 index 0000000000..ed9a07e8a1 --- /dev/null +++ b/.babelrc @@ -0,0 +1,3 @@ +{ + "presets": ["es2015-without-strict"] +} \ No newline at end of file diff --git a/package.json b/package.json index eca5f0e5b0..10e0eb3ee9 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "browser-test-remote-ie": "nightwatch --config nightwatch.js --env ie", "browser-test-remote-safari": "nightwatch --config nightwatch.js --env safari", "browser-test-remote-parallel": "nightwatch --config nightwatch.js --env safari,ie,default,chrome", - "build": "mkdir -p build; browserify src/index.js -g yo-yoify -o build/app.js; babel --plugins babel-plugin-transform-es2015-template-literals,babel-plugin-transform-es2015-block-scoping,babel-plugin-transform-es2015-parameters build/app.js --out-file build/app.js", + "build": "mkdir -p build; browserify src/index.js -g yo-yoify -o build/app.js; babel build/app.js --out-file build/app.js", "csslint": "csslint --ignore=order-alphabetical --errors='errors,duplicate-properties,empty-rules' --exclude-list='assets/css/font-awesome.min.css' assets/css/", "downloadsolc": "rm soljson.js; wget https://ethereum.github.io/solc-bin/soljson.js", "lint": "standard", @@ -19,9 +19,7 @@ "devDependencies": { "async": "^2.1.2", "babel-cli": "^6.16.0", - "babel-plugin-transform-es2015-block-scoping": "^6.15.0", - "babel-plugin-transform-es2015-parameters": "^6.18.0", - "babel-plugin-transform-es2015-template-literals": "^6.8.0", + "babel-preset-es2015-without-strict": "0.0.4", "brace": "^0.8.0", "browserify": "^13.0.0", "csslint": "^1.0.2",