Skip to content
Open
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
20 changes: 16 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@
"version": "0.6.1",
"description": "A DraftJS plugin for supporting Markdown syntax shortcuts",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"scripts": {
"eslint": "node_modules/.bin/eslint .",
"build": "npm run clean && npm run build:js",
"build": "npm run clean && npm run build:js && npm run build:types",
"build:demo": "rm -rf demo/public/* && NODE_ENV=production npx webpack --config demo/webpack.config.prod.js && rm -rf demo/public/{css,index.html} && cp -R demo/publicTemplate/* demo/public/ && sed \"s/app.js/$(basename $(ls demo/public/app.*.js))/g\" demo/publicTemplate/index.html > demo/public/index.html",
"build:js": "BABEL_DISABLE_CACHE=1 BABEL_ENV=production NODE_ENV=production node_modules/.bin/babel --out-dir='lib' --ignore='**/__test__/*' src",
"build:types": "BABEL_DISABLE_CACHE=1 BABEL_ENV=production NODE_ENV=production node_modules/.bin/babel typings --out-dir='lib' --copy-files",
"clean": "node_modules/.bin/rimraf lib; node_modules/.bin/rimraf demo/public",
"prepare": "npm run build",
"start": "npm run start:dev",
Expand All @@ -20,14 +22,21 @@
},
"watch": {
"test": {
"patterns": ["src/**/*.js"]
"patterns": [
"src/**/*.js"
]
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/ngs/draft-js-markdown-shortcuts-plugin.git"
},
"keywords": ["draftjs", "editor", "plugin", "markdown"],
"keywords": [
"draftjs",
"editor",
"plugin",
"markdown"
],
"author": "Atsushi Nagase",
"license": "MIT",
"bugs": {
Expand Down Expand Up @@ -100,11 +109,14 @@
"react": "^16.13.1",
"react-dom": "^16.13.1"
},
"contributors": ["Atsushi Nagase <[email protected]>"],
"contributors": [
"Atsushi Nagase <[email protected]>"
],
"dependencies": {
"decorate-component-with-props": "^1.1.0",
"draft-js": "~0.11.5",
"draft-js-checkable-list-item": "^3.0.4",
"draft-js-plugins-editor": "^3.0.0",
"draft-js-prism-plugin": "^0.1.3",
"immutable": "~3.8.2"
},
Expand Down
5 changes: 5 additions & 0 deletions typings/index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
declare module 'draft-js-markdown-shortcuts-plugin' {
import { EditorPlugin } from 'draft-js-plugins-editor';
const createMarkdownShortcutsPlugin: (config?: any) => EditorPlugin;
export default createMarkdownShortcutsPlugin;
}