66 "scripts" : {
77 "eslint" : " node_modules/.bin/eslint ." ,
88 "build" : " npm run clean && npm run build:js" ,
9- "build:demo" : " NODE_ENV=production webpack --config demo/webpack.config.prod.js && rm -rf demo/public/css && cp -R demo/publicTemplate/* demo/public/" ,
10- "build:js" : " BABEL_DISABLE_CACHE=1 BABEL_ENV=production NODE_ENV=production node_modules/.bin/babel --out-dir='lib' --ignore='**/__test__/*' src" ,
11- "clean" : " node_modules/.bin/rimraf lib; node_modules/.bin/rimraf demo/public" ,
12- "deploy:demo" : " COMMIT=$(git rev-parse --short HEAD) && BRANCH=gh-pages && GIT_URL=$(git remote get-url origin) && DIR=.deploy; rm -rf $DIR; (git clone $GIT_URL -b $BRANCH $DIR || (git init $DIR && cd $DIR && git remote add origin $GIT_URL && git checkout -b $BRANCH)) && rm -rf ${DIR}/* && cp -R ${DIR}/../demo/public/* $DIR && cd $DIR && git add -A && git commit -m \" Built artifacts of ${COMMIT} [ci skip]\" && git push origin $BRANCH" ,
9+ "build:demo" :
10+ " NODE_ENV=production webpack --config demo/webpack.config.prod.js && rm -rf demo/public/css && cp -R demo/publicTemplate/* demo/public/" ,
11+ "build:js" :
12+ " BABEL_DISABLE_CACHE=1 BABEL_ENV=production NODE_ENV=production node_modules/.bin/babel --out-dir='lib' --ignore='**/__test__/*' src" ,
13+ "clean" :
14+ " node_modules/.bin/rimraf lib; node_modules/.bin/rimraf demo/public" ,
15+ "deploy:demo" :
16+ " COMMIT=$(git rev-parse --short HEAD) && BRANCH=gh-pages && GIT_URL=$(git config --get remote.origin.url) && DIR=.deploy; rm -rf $DIR; (git clone $GIT_URL -b $BRANCH $DIR || (git init $DIR && cd $DIR && git remote add origin $GIT_URL && git checkout -b $BRANCH)) && rm -rf ${DIR}/* && cp -R ${DIR}/../demo/public/* $DIR && cd $DIR && git add -A && git commit -m \" Built artifacts of ${COMMIT}\" && git push origin $BRANCH" ,
1317 "prepublish" : " npm run build" ,
1418 "start" : " npm run start:dev" ,
1519 "start:dev" : " node_modules/.bin/babel-node ./demo/server.js" ,
1620 "test" : " npm run test:coverage" ,
17- "test:coverage" : " node_modules/.bin/nyc --require babel-core/register npm run test:mocha" ,
21+ "test:coverage" :
22+ " node_modules/.bin/nyc --require babel-core/register npm run test:mocha" ,
1823 "test:mocha" : " mocha --opts .mocha.opts $(find src -name '*-test.js')" ,
1924 "test:watch" : " npm test | npm run watch" ,
2025 "watch" : " npm-watch" ,
2126 "postinstall" : " opencollective postinstall"
2227 },
2328 "watch" : {
2429 "test" : {
25- "patterns" : [
26- " src/**/*.js"
27- ]
30+ "patterns" : [" src/**/*.js" ]
2831 }
2932 },
3033 "repository" : {
3134 "type" : " git" ,
3235 "url" : " git+https://github.com/ngs/draft-js-markdown-shortcuts-plugin.git"
3336 },
34- "keywords" : [
35- " draftjs" ,
36- " editor" ,
37- " plugin" ,
38- " markdown"
39- ],
37+ "keywords" : [" draftjs" , " editor" , " plugin" , " markdown" ],
4038 "author" : " Atsushi Nagase" ,
4139 "license" : " MIT" ,
4240 "bugs" : {
4341 "url" : " https://github.com/ngs/draft-js-markdown-shortcuts-plugin/issues"
4442 },
45- "homepage" : " https://github.com/ngs/draft-js-markdown-shortcuts-plugin#readme" ,
43+ "homepage" :
44+ " https://github.com/ngs/draft-js-markdown-shortcuts-plugin#readme" ,
4645 "devDependencies" : {
4746 "autoprefixer" : " ^6.5.3" ,
4847 "babel-cli" : " ^6.18.0" ,
102101 "webpack-hot-middleware" : " ^2.13.2"
103102 },
104103 "peerDependencies" : {
105- "draft-js-plugins-editor" : " ^2.0.0 || ~2.0.0-rc.1 || 2.0.0-rc2 || 2.0.0-rc1 || 2.0.0-beta12" ,
104+ "draft-js-plugins-editor" :
105+ " ^2.0.0 || ~2.0.0-rc.1 || 2.0.0-rc2 || 2.0.0-rc1 || 2.0.0-beta12" ,
106106 "react" : " ^16.0.0 || ^15.0.0" ,
107107 "react-dom" : " ^16.0.0 || ^15.0.0"
108108 },
109- "contributors" : [
110- " Atsushi Nagase <[email protected] >" 111- ],
109+ "contributors" : [
" Atsushi Nagase <[email protected] >" ],
112110 "dependencies" : {
113111 "decorate-component-with-props" : " ^1.1.0" ,
114112 "draft-js" : " ~0.10.5" ,
120118 "type" : " opencollective" ,
121119 "url" : " https://opencollective.com/draft-js-markdown-shortcuts-plugin"
122120 }
123- }
121+ }
0 commit comments