|
1 | 1 | { |
2 | 2 | "name": "draft-js-markdown-plugin", |
3 | 3 | "version": "0.4.0", |
4 | | - "description": "A DraftJS plugin for supporting Markdown syntax shortcuts, fork of draft-js-markdown-shortcuts-plugin", |
| 4 | + "description": |
| 5 | + "A DraftJS plugin for supporting Markdown syntax shortcuts, fork of draft-js-markdown-shortcuts-plugin", |
5 | 6 | "main": "lib/index.js", |
6 | 7 | "scripts": { |
7 | 8 | "build": "npm run clean && npm run build:js", |
8 | | - "build:demo": "NODE_ENV=production webpack --config demo/webpack.config.prod.js && rm -rf demo/public/css && cp -R demo/publicTemplate/* demo/public/", |
9 | | - "build:js": "BABEL_DISABLE_CACHE=1 BABEL_ENV=production NODE_ENV=production node_modules/.bin/babel --out-dir='lib' --ignore='**/__test__/*' src", |
10 | | - "clean": "node_modules/.bin/rimraf lib; node_modules/.bin/rimraf demo/public", |
| 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", |
11 | 15 | "dev": "node_modules/.bin/babel-node ./demo/server.js", |
12 | | - "test": "jest" |
| 16 | + "test": "jest", |
| 17 | + "precommit": "lint-staged" |
13 | 18 | }, |
14 | 19 | "repository": { |
15 | 20 | "type": "git", |
16 | 21 | "url": "git+https://github.com/withspectrum/draft-js-markdown-plugin.git" |
17 | 22 | }, |
18 | | - "keywords": [ |
19 | | - "draftjs", |
20 | | - "editor", |
21 | | - "plugin", |
22 | | - "markdown" |
23 | | - ], |
| 23 | + "keywords": ["draftjs", "editor", "plugin", "markdown"], |
24 | 24 | "author": "Max Stoiber <contact@mxstbr.com>", |
25 | 25 | "license": "MIT", |
26 | 26 | "bugs": { |
27 | 27 | "url": "https://github.com/withspectrum/draft-js-markdown-plugin/issues" |
28 | 28 | }, |
29 | 29 | "homepage": "https://github.com/withspectrum/draft-js-markdown-plugin#readme", |
| 30 | + "lint-staged": { |
| 31 | + "*.{js,json,css}": ["prettier --write", "git add"] |
| 32 | + }, |
30 | 33 | "devDependencies": { |
31 | 34 | "autoprefixer": "^6.5.3", |
32 | 35 | "babel-cli": "^6.18.0", |
|
47 | 50 | "css-modules-require-hook": "^4.0.5", |
48 | 51 | "dirty-chai": "^1.2.2", |
49 | 52 | "draft-js-plugins-editor": "2.0.0-rc2", |
50 | | - "draft-js-prism": "ngs/draft-js-prism#6edb31c3805dd1de3fb897cc27fced6bac1bafbb", |
| 53 | + "draft-js-prism": |
| 54 | + "ngs/draft-js-prism#6edb31c3805dd1de3fb897cc27fced6bac1bafbb", |
51 | 55 | "enzyme": "^2.6.0", |
52 | 56 | "eslint": "^3.11.1", |
53 | 57 | "eslint-config-airbnb": "^13.0.0", |
|
60 | 64 | "file-loader": "^0.9.0", |
61 | 65 | "flow-bin": "^0.36.0", |
62 | 66 | "history": "^2.0.0", |
| 67 | + "husky": "^0.14.3", |
63 | 68 | "jsdom": "^9.8.3", |
| 69 | + "lint-staged": "^4.2.1", |
64 | 70 | "mocha": "^3.2.0", |
65 | 71 | "mocha-junit-reporter": "^1.12.1", |
66 | 72 | "mocha-multi-reporters": "^1.1.1", |
67 | 73 | "npm-watch": "^0.1.6", |
68 | 74 | "nyc": "^10.0.0", |
69 | 75 | "postcss-loader": "^1.1.1", |
| 76 | + "prettier": "^1.7.0", |
70 | 77 | "prismjs": "^1.6.0", |
71 | 78 | "react": "^15.4.1", |
72 | 79 | "react-addons-pure-render-mixin": "^15.4.1", |
|
84 | 91 | "webpack-hot-middleware": "^2.13.2" |
85 | 92 | }, |
86 | 93 | "peerDependencies": { |
87 | | - "draft-js-plugins-editor": "~2.0.0-rc.1 || 2.0.0-rc2 || 2.0.0-rc1 || 2.0.0-beta12", |
| 94 | + "draft-js-plugins-editor": |
| 95 | + "~2.0.0-rc.1 || 2.0.0-rc2 || 2.0.0-rc1 || 2.0.0-beta12", |
88 | 96 | "react": "^15.0.0", |
89 | 97 | "react-dom": "^15.0.0" |
90 | 98 | }, |
91 | | - "contributors": [ |
92 | | - "Atsushi Nagase <a@ngs.io>" |
93 | | - ], |
| 99 | + "contributors": ["Atsushi Nagase <a@ngs.io>"], |
94 | 100 | "dependencies": { |
95 | 101 | "decorate-component-with-props": "^1.0.2", |
96 | 102 | "draft-js": "~0.10.1", |
|
0 commit comments