Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

upgrade to babel@7 #32

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
10 changes: 8 additions & 2 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
{
"presets": ["es2015", "stage-0", "react"],
"plugins": ["transform-decorators-legacy"]
"presets": [
"@babel/preset-env",
"@babel/preset-stage-0",
"@babel/preset-react"
],
"plugins": [
"transform-decorators-legacy"
]
}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules
npm-debug.log
.DS_Store
lib
.idea
.idea
yarn-error.log
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ demo
.*
server.js
webpack.config.js
yarn-error.log
47 changes: 24 additions & 23 deletions demo/static/bundle.js

Large diffs are not rendered by default.

28 changes: 15 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-dock",
"version": "0.2.4",
"name": "@plrthink/react-dock",
"version": "0.2.5",
"description": "Resizable dockable react component",
"scripts": {
"build-lib": "babel src --out-dir lib",
Expand All @@ -12,7 +12,7 @@
"version": "npm run build-demo && git add -A .",
"postversion": "git push",
"prepublish": "npm run build-lib",
"test": "mocha --compilers js:babel-core/register"
"test": "mocha --compilers js:@babel/register"
},
"main": "lib/index.js",
"repository": {
Expand All @@ -32,16 +32,17 @@
},
"homepage": "https://github.com/alexkuz/react-dock",
"devDependencies": {
"babel": "^6.5.2",
"babel-cli": "^6.9.0",
"babel-core": "^6.9.1",
"@babel/cli": "7.0.0-beta.44",
"@babel/core": "7.0.0-beta.44",
"@babel/plugin-transform-runtime": "7.0.0-beta.44",
"@babel/preset-env": "7.0.0-beta.44",
"@babel/preset-react": "7.0.0-beta.44",
"@babel/preset-stage-0": "7.0.0-beta.44",
"@babel/register": "^7.0.0-beta.44",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "^6.0.4",
"babel-loader": "^6.2.4",
"babel-loader": "7.1.1",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-runtime": "^6.9.0",
"babel-preset-es2015": "^6.9.0",
"babel-preset-react": "^6.5.0",
"babel-preset-stage-0": "^6.5.0",
"chai": "^3.4.1",
"eslint": "^1.10.3",
"eslint-loader": "^1.1.1",
Expand All @@ -52,6 +53,7 @@
"mocha": "^2.3.4",
"radium": "^0.15.3",
"raw-loader": "^0.5.1",
"react": "^0.14.3",
"react-bootstrap": "^0.28.1",
"react-dom": "^0.14.3",
"react-hot-loader": "^1.3.0",
Expand All @@ -60,8 +62,8 @@
"webpack-dev-server": "^1.14.0"
},
"peerDependencies": {
"react": ">=0.13.0",
"babel-runtime": "^6.3.13"
"@babel/runtime": "^7.0.0-beta.44",
"react": ">=0.13.0"
},
"dependencies": {
"lodash.debounce": "^3.1.1",
Expand Down
Loading