|
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", |
|
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>", |
|
0 commit comments