Skip to content

Commit 71c59f2

Browse files
authored
Merge pull request #9 from sugarshin/update-deps
Update deps
2 parents d932483 + b0f4585 commit 71c59f2

File tree

6 files changed

+1090
-632
lines changed

6 files changed

+1090
-632
lines changed

.babelrc

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,30 @@
11
{
2-
"presets": ["@babel/preset-es2016", "@babel/preset-es2015", "@babel/preset-react", "@babel/preset-stage-2"],
2+
"presets": [
3+
"@babel/preset-es2016",
4+
["@babel/preset-es2015", { "modules": false }],
5+
"@babel/preset-react",
6+
["@babel/preset-stage-2", { "decoratorsLegacy": true }]
7+
],
38
"plugins": ["@babel/plugin-transform-flow-strip-types"],
49
"env": {
510
"development": {
611
"plugins": ["react-hot-loader/babel"]
12+
},
13+
"test": {
14+
"presets": [
15+
"@babel/preset-es2016",
16+
"@babel/preset-es2015",
17+
"@babel/preset-react",
18+
["@babel/preset-stage-2", { "decoratorsLegacy": true }]
19+
]
20+
},
21+
"commonjs": {
22+
"presets": [
23+
"@babel/preset-es2016",
24+
"@babel/preset-es2015",
25+
"@babel/preset-react",
26+
["@babel/preset-stage-2", { "decoratorsLegacy": true }]
27+
]
728
}
829
}
930
}

.flowconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
.*/node_modules/draft-js/lib/DraftEditor.react.js.flow
44
.*/node_modules/draft-js/lib/ContentBlock.js.flow
55
.*/node_modules/draft-js/lib/ContentBlockNode.js.flow
6+
.*/node_modules/draft-js/lib/DraftEditorLeaf.react.js.flow
7+
.*/node_modules/find-with-regex/flow-typed/draft-js/BlockNode.js.flow
8+
.*/node_modules/find-with-regex/flow-typed/draft-js/DraftEditorDragHandler.js.flow
69

710
[include]
811

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ coverage
44
.yarn-integrity
55
lib
66
build
7+
es

circle.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,5 @@ deployment:
2727
master:
2828
branch: master
2929
commands:
30-
- npm run docs
30+
- npm run build:demo
31+
- npm run deploy

package.json

Lines changed: 39 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
"description": "Checkable list plugin for DraftJS",
55
"main": "lib/index.js",
66
"files": [
7-
"lib"
7+
"lib",
8+
"es"
89
],
910
"keywords": [
1011
"react",
@@ -19,69 +20,71 @@
1920
"scripts": {
2021
"start": "webpack-dev-server --progress --open",
2122
"lint": "eslint src test example",
22-
"type": "flow",
23+
"type": "flow src",
2324
"test": "jest --verbose",
2425
"test:coverage": "npm test -- --coverage",
2526
"test:coverage:report": "npm run test:coverage && cat coverage/lcov.info | coveralls",
27+
"clean:es": "if [ -d es ]; then rm -rf es; fi",
2628
"clean:lib": "if [ -d lib ]; then rm -rf lib; fi",
2729
"build:css": "stylus --compress -p src/Button.styl | cat node_modules/draft-js-checkable-list-item/lib/CheckableListItem.css - > lib/plugin.css",
28-
"build:js": "babel -d lib src",
29-
"prebuild": "npm run clean:lib",
30+
"build:js": "npm run build:commonjs && npm run build:es",
31+
"build:es": "NODE_ENV=production BABEL_ENV=es babel -d es src",
32+
"build:commonjs": "NODE_ENV=production BABEL_ENV=commonjs babel -d lib src",
33+
"prebuild": "npm run clean:lib && npm run clean:es",
3034
"build": "npm run build:js && npm run build:css",
3135
"favicon": "curl https://sugarshin.net/favicon.ico > build/favicon.ico",
3236
"clean:build": "if [ -d build ]; then rm -rf build; fi",
33-
"predocs": "npm run clean:build; mkdir -p build && npm run favicon",
34-
"docs": "NODE_ENV=production webpack --progress",
35-
"postdocs": "gh-pages -x -m 'Update [ci skip]' -d build -r https://github.com/sugarshin/draft-js-checkable-list-plugin.git",
36-
"prepublishOnly": "npm run lint && npm run type && npm run test:coverage && NODE_ENV=production BABEL_ENV=production npm run build"
37+
"prebuild:demo": "npm run clean:build; mkdir -p build && npm run favicon",
38+
"build:demo": "NODE_ENV=production webpack",
39+
"deploy": "gh-pages -x -m 'Update [ci skip]' -d build -r https://github.com/sugarshin/draft-js-checkable-list-plugin.git",
40+
"prepublishOnly": "npm run lint && npm run type && npm run test:coverage && npm run build"
3741
},
3842
"repository": "git@github.com:sugarshin/draft-js-checkable-list-plugin.git",
3943
"author": "Shingo Sato <shinsugar@gmail.com>",
4044
"license": "MIT",
4145
"dependencies": {
4246
"decorate-component-with-props": "^1.1.0",
43-
"draft-js-checkable-list-item": "^3.0.1",
47+
"draft-js-checkable-list-item": "^3.0.3",
4448
"immutable": "~3.7.4",
4549
"union-class-names": "^1.0.0"
4650
},
4751
"devDependencies": {
48-
"@babel/cli": "^7.0.0-beta.40",
49-
"@babel/core": "^7.0.0-beta.40",
50-
"@babel/plugin-transform-flow-strip-types": "^7.0.0-beta.40",
51-
"@babel/polyfill": "^7.0.0-beta.40",
52-
"@babel/preset-es2015": "^7.0.0-beta.40",
53-
"@babel/preset-es2016": "^7.0.0-beta.40",
54-
"@babel/preset-react": "^7.0.0-beta.40",
55-
"@babel/preset-stage-2": "^7.0.0-beta.40",
52+
"@babel/cli": "^7.0.0-beta.47",
53+
"@babel/core": "^7.0.0-beta.47",
54+
"@babel/plugin-transform-flow-strip-types": "^7.0.0-beta.47",
55+
"@babel/polyfill": "^7.0.0-beta.47",
56+
"@babel/preset-es2015": "^7.0.0-beta.47",
57+
"@babel/preset-es2016": "^7.0.0-beta.47",
58+
"@babel/preset-react": "^7.0.0-beta.47",
59+
"@babel/preset-stage-2": "^7.0.0-beta.47",
5660
"babel-core": "^7.0.0-0",
57-
"babel-eslint": "^8.2.2",
58-
"babel-jest": "^22.4.0",
59-
"babel-loader": "^8.0.0-beta.0",
60-
"coveralls": "^3.0.0",
61-
"css-loader": "^0.28.9",
61+
"babel-eslint": "^8.2.3",
62+
"babel-jest": "^22.4.4",
63+
"babel-loader": "^8.0.0-beta.3",
64+
"coveralls": "^3.0.1",
65+
"css-loader": "^0.28.11",
6266
"draft-js": "~0.10.5",
63-
"draft-js-plugins-editor": "^2.0.4",
67+
"draft-js-plugins-editor": "^2.0.8",
6468
"enzyme": "^3.3.0",
6569
"enzyme-adapter-react-16": "^1.1.1",
66-
"eslint": "^4.18.1",
67-
"eslint-plugin-babel": "^4.1.2",
68-
"eslint-plugin-flowtype": "^2.45.0",
69-
"eslint-plugin-react": "^7.7.0",
70-
"flow-bin": "^0.66.0",
70+
"eslint": "^4.19.1",
71+
"eslint-plugin-babel": "^5.1.0",
72+
"eslint-plugin-flowtype": "^2.47.1",
73+
"eslint-plugin-react": "^7.8.2",
74+
"flow-bin": "^0.70.0",
7175
"gh-pages": "^1.1.0",
7276
"highlight.js": "^9.12.0",
7377
"html-webpack-plugin": "^2.30.1",
74-
"jest": "^22.4.0",
78+
"jest": "^22.4.4",
7579
"raf": "^3.4.0",
76-
"react": "^16.2.0",
77-
"react-dom": "^16.2.0",
80+
"react": "^16.3.2",
81+
"react-dom": "^16.3.2",
7882
"react-ghfork": "^0.5.1",
79-
"react-hot-loader": "^4.0.0-rc.0",
80-
"react-test-renderer": "^16.2.0",
81-
"regenerator-runtime": "^0.11.1",
82-
"style-loader": "^0.20.2",
83+
"react-hot-loader": "^4.2.0",
84+
"react-test-renderer": "^16.3.2",
85+
"style-loader": "^0.21.0",
8386
"stylus": "^0.54.5",
84-
"stylus-loader": "^3.0.1",
87+
"stylus-loader": "^3.0.2",
8588
"webpack": "^3.11.0",
8689
"webpack-dev-server": "^2.11.1"
8790
},

0 commit comments

Comments
 (0)