Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Upgrade to Babel 7 #86

Merged
merged 2 commits into from
Mar 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"presets": [
["env", {
"loose": true
}],
"stage-1"
["@4c", {
"targets": {}
}]
],
"plugins": [
"add-module-exports"
],
"plugins": ["dev-expression", "add-module-exports"],

"env": {
"test": {
Expand Down
15 changes: 6 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
],
"main": "lib/index.js",
"scripts": {
"build": "rimraf lib && babel src -d lib",
"build": "BABEL_ENV=production babel src -d lib --delete-dir-on-start",
"lint": "eslint examples/*/src src test *.js",
"prepublish": "npm run build",
"tdd": "cross-env NODE_ENV=test karma start",
Expand Down Expand Up @@ -52,16 +52,14 @@
"warning": "^4.0.3"
},
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"@4c/babel-preset": "^4.1.5",
"@babel/cli": "^7.2.3",
"@babel/core": "^7.3.4",
"@babel/polyfill": "^7.2.5",
"babel-eslint": "^10.0.1",
"babel-loader": "^7.1.5",
"babel-loader": "^8.0.5",
"babel-plugin-add-module-exports": "^1.0.0",
"babel-plugin-dev-expression": "^0.2.1",
"babel-plugin-istanbul": "^5.1.1",
"babel-polyfill": "^6.26.0",
"babel-preset-env": "^1.7.0",
"babel-preset-stage-1": "^6.24.1",
"chai": "^4.2.0",
"codecov": "^3.2.0",
"cross-env": "^5.2.0",
Expand All @@ -84,7 +82,6 @@
"lint-staged": "^8.1.5",
"mocha": "^6.0.2",
"prettier": "^1.16.4",
"rimraf": "^2.6.3",
"sinon": "^7.2.7",
"sinon-chai": "^3.3.0",
"webpack": "^4.29.6"
Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import 'babel-polyfill';
import '@babel/polyfill';

import dirtyChai from 'dirty-chai';

Expand Down
Loading