Skip to content
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
23 changes: 22 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,30 @@
{
"presets": ["@babel/preset-es2016", "@babel/preset-es2015", "@babel/preset-react", "@babel/preset-stage-2"],
"presets": [
"@babel/preset-es2016",
["@babel/preset-es2015", { "modules": false }],
"@babel/preset-react",
["@babel/preset-stage-2", { "decoratorsLegacy": true }]
],
"plugins": ["@babel/plugin-transform-flow-strip-types"],
"env": {
"development": {
"plugins": ["react-hot-loader/babel"]
},
"test": {
"presets": [
"@babel/preset-es2016",
"@babel/preset-es2015",
"@babel/preset-react",
["@babel/preset-stage-2", { "decoratorsLegacy": true }]
]
},
"commonjs": {
"presets": [
"@babel/preset-es2016",
"@babel/preset-es2015",
"@babel/preset-react",
["@babel/preset-stage-2", { "decoratorsLegacy": true }]
]
}
}
}
3 changes: 3 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
.*/node_modules/draft-js/lib/DraftEditor.react.js.flow
.*/node_modules/draft-js/lib/ContentBlock.js.flow
.*/node_modules/draft-js/lib/ContentBlockNode.js.flow
.*/node_modules/draft-js/lib/DraftEditorLeaf.react.js.flow
.*/node_modules/find-with-regex/flow-typed/draft-js/BlockNode.js.flow
.*/node_modules/find-with-regex/flow-typed/draft-js/DraftEditorDragHandler.js.flow

[include]

Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ coverage
.yarn-integrity
lib
build
es
3 changes: 2 additions & 1 deletion circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,5 @@ deployment:
master:
branch: master
commands:
- npm run docs
- npm run build:demo
- npm run deploy
75 changes: 39 additions & 36 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"description": "Checkable list plugin for DraftJS",
"main": "lib/index.js",
"files": [
"lib"
"lib",
"es"
],
"keywords": [
"react",
Expand All @@ -19,69 +20,71 @@
"scripts": {
"start": "webpack-dev-server --progress --open",
"lint": "eslint src test example",
"type": "flow",
"type": "flow src",
"test": "jest --verbose",
"test:coverage": "npm test -- --coverage",
"test:coverage:report": "npm run test:coverage && cat coverage/lcov.info | coveralls",
"clean:es": "if [ -d es ]; then rm -rf es; fi",
"clean:lib": "if [ -d lib ]; then rm -rf lib; fi",
"build:css": "stylus --compress -p src/Button.styl | cat node_modules/draft-js-checkable-list-item/lib/CheckableListItem.css - > lib/plugin.css",
"build:js": "babel -d lib src",
"prebuild": "npm run clean:lib",
"build:js": "npm run build:commonjs && npm run build:es",
"build:es": "NODE_ENV=production BABEL_ENV=es babel -d es src",
"build:commonjs": "NODE_ENV=production BABEL_ENV=commonjs babel -d lib src",
"prebuild": "npm run clean:lib && npm run clean:es",
"build": "npm run build:js && npm run build:css",
"favicon": "curl https://sugarshin.net/favicon.ico > build/favicon.ico",
"clean:build": "if [ -d build ]; then rm -rf build; fi",
"predocs": "npm run clean:build; mkdir -p build && npm run favicon",
"docs": "NODE_ENV=production webpack --progress",
"postdocs": "gh-pages -x -m 'Update [ci skip]' -d build -r https://github.com/sugarshin/draft-js-checkable-list-plugin.git",
"prepublishOnly": "npm run lint && npm run type && npm run test:coverage && NODE_ENV=production BABEL_ENV=production npm run build"
"prebuild:demo": "npm run clean:build; mkdir -p build && npm run favicon",
"build:demo": "NODE_ENV=production webpack",
"deploy": "gh-pages -x -m 'Update [ci skip]' -d build -r https://github.com/sugarshin/draft-js-checkable-list-plugin.git",
"prepublishOnly": "npm run lint && npm run type && npm run test:coverage && npm run build"
},
"repository": "git@github.com:sugarshin/draft-js-checkable-list-plugin.git",
"author": "Shingo Sato <shinsugar@gmail.com>",
"license": "MIT",
"dependencies": {
"decorate-component-with-props": "^1.1.0",
"draft-js-checkable-list-item": "^3.0.1",
"draft-js-checkable-list-item": "^3.0.3",
"immutable": "~3.7.4",
"union-class-names": "^1.0.0"
},
"devDependencies": {
"@babel/cli": "^7.0.0-beta.40",
"@babel/core": "^7.0.0-beta.40",
"@babel/plugin-transform-flow-strip-types": "^7.0.0-beta.40",
"@babel/polyfill": "^7.0.0-beta.40",
"@babel/preset-es2015": "^7.0.0-beta.40",
"@babel/preset-es2016": "^7.0.0-beta.40",
"@babel/preset-react": "^7.0.0-beta.40",
"@babel/preset-stage-2": "^7.0.0-beta.40",
"@babel/cli": "^7.0.0-beta.47",
"@babel/core": "^7.0.0-beta.47",
"@babel/plugin-transform-flow-strip-types": "^7.0.0-beta.47",
"@babel/polyfill": "^7.0.0-beta.47",
"@babel/preset-es2015": "^7.0.0-beta.47",
"@babel/preset-es2016": "^7.0.0-beta.47",
"@babel/preset-react": "^7.0.0-beta.47",
"@babel/preset-stage-2": "^7.0.0-beta.47",
"babel-core": "^7.0.0-0",
"babel-eslint": "^8.2.2",
"babel-jest": "^22.4.0",
"babel-loader": "^8.0.0-beta.0",
"coveralls": "^3.0.0",
"css-loader": "^0.28.9",
"babel-eslint": "^8.2.3",
"babel-jest": "^22.4.4",
"babel-loader": "^8.0.0-beta.3",
"coveralls": "^3.0.1",
"css-loader": "^0.28.11",
"draft-js": "~0.10.5",
"draft-js-plugins-editor": "^2.0.4",
"draft-js-plugins-editor": "^2.0.8",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"eslint": "^4.18.1",
"eslint-plugin-babel": "^4.1.2",
"eslint-plugin-flowtype": "^2.45.0",
"eslint-plugin-react": "^7.7.0",
"flow-bin": "^0.66.0",
"eslint": "^4.19.1",
"eslint-plugin-babel": "^5.1.0",
"eslint-plugin-flowtype": "^2.47.1",
"eslint-plugin-react": "^7.8.2",
"flow-bin": "^0.70.0",
"gh-pages": "^1.1.0",
"highlight.js": "^9.12.0",
"html-webpack-plugin": "^2.30.1",
"jest": "^22.4.0",
"jest": "^22.4.4",
"raf": "^3.4.0",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react": "^16.3.2",
"react-dom": "^16.3.2",
"react-ghfork": "^0.5.1",
"react-hot-loader": "^4.0.0-rc.0",
"react-test-renderer": "^16.2.0",
"regenerator-runtime": "^0.11.1",
"style-loader": "^0.20.2",
"react-hot-loader": "^4.2.0",
"react-test-renderer": "^16.3.2",
"style-loader": "^0.21.0",
"stylus": "^0.54.5",
"stylus-loader": "^3.0.1",
"stylus-loader": "^3.0.2",
"webpack": "^3.11.0",
"webpack-dev-server": "^2.11.1"
},
Expand Down
Loading