|
4 | 4 | "description": "Checkable list plugin for DraftJS", |
5 | 5 | "main": "lib/index.js", |
6 | 6 | "files": [ |
7 | | - "lib" |
| 7 | + "lib", |
| 8 | + "es" |
8 | 9 | ], |
9 | 10 | "keywords": [ |
10 | 11 | "react", |
|
19 | 20 | "scripts": { |
20 | 21 | "start": "webpack-dev-server --progress --open", |
21 | 22 | "lint": "eslint src test example", |
22 | | - "type": "flow", |
| 23 | + "type": "flow src", |
23 | 24 | "test": "jest --verbose", |
24 | 25 | "test:coverage": "npm test -- --coverage", |
25 | 26 | "test:coverage:report": "npm run test:coverage && cat coverage/lcov.info | coveralls", |
| 27 | + "clean:es": "if [ -d es ]; then rm -rf es; fi", |
26 | 28 | "clean:lib": "if [ -d lib ]; then rm -rf lib; fi", |
27 | 29 | "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", |
30 | 34 | "build": "npm run build:js && npm run build:css", |
31 | 35 | "favicon": "curl https://sugarshin.net/favicon.ico > build/favicon.ico", |
32 | 36 | "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" |
37 | 41 | }, |
38 | 42 | "repository": "git@github.com:sugarshin/draft-js-checkable-list-plugin.git", |
39 | 43 | "author": "Shingo Sato <shinsugar@gmail.com>", |
40 | 44 | "license": "MIT", |
41 | 45 | "dependencies": { |
42 | 46 | "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", |
44 | 48 | "immutable": "~3.7.4", |
45 | 49 | "union-class-names": "^1.0.0" |
46 | 50 | }, |
47 | 51 | "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", |
56 | 60 | "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", |
62 | 66 | "draft-js": "~0.10.5", |
63 | | - "draft-js-plugins-editor": "^2.0.4", |
| 67 | + "draft-js-plugins-editor": "^2.0.8", |
64 | 68 | "enzyme": "^3.3.0", |
65 | 69 | "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", |
71 | 75 | "gh-pages": "^1.1.0", |
72 | 76 | "highlight.js": "^9.12.0", |
73 | 77 | "html-webpack-plugin": "^2.30.1", |
74 | | - "jest": "^22.4.0", |
| 78 | + "jest": "^22.4.4", |
75 | 79 | "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", |
78 | 82 | "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", |
83 | 86 | "stylus": "^0.54.5", |
84 | | - "stylus-loader": "^3.0.1", |
| 87 | + "stylus-loader": "^3.0.2", |
85 | 88 | "webpack": "^3.11.0", |
86 | 89 | "webpack-dev-server": "^2.11.1" |
87 | 90 | }, |
|
0 commit comments