2016-06-15 12:07:12 -07:00
|
|
|
{
|
2016-07-06 17:22:45 -07:00
|
|
|
"name": "slate",
|
2016-07-20 11:26:39 -07:00
|
|
|
"description": "A completely customizable framework for building rich text editors.",
|
2017-08-25 12:13:18 -07:00
|
|
|
"version": "0.21.4",
|
2016-07-06 17:22:45 -07:00
|
|
|
"license": "MIT",
|
|
|
|
"repository": "git://github.com/ianstormtaylor/slate.git",
|
2016-09-14 01:57:52 +02:00
|
|
|
"main": "./lib/index.js",
|
2016-06-15 12:07:12 -07:00
|
|
|
"dependencies": {
|
2016-11-16 22:38:43 -05:00
|
|
|
"debug": "^2.3.2",
|
2016-07-29 20:25:07 +02:00
|
|
|
"direction": "^0.1.5",
|
2016-11-10 17:52:06 +01:00
|
|
|
"es6-map": "^0.1.4",
|
2016-07-14 13:20:27 -07:00
|
|
|
"esrever": "^0.2.0",
|
2016-08-05 12:40:54 -07:00
|
|
|
"get-window": "^1.1.1",
|
2016-08-07 17:25:43 -07:00
|
|
|
"immutable": "^3.8.1",
|
2016-08-09 12:25:08 -07:00
|
|
|
"is-empty": "^1.0.0",
|
2017-03-03 13:11:38 -08:00
|
|
|
"is-in-browser": "^1.1.3",
|
2017-05-03 18:48:42 -07:00
|
|
|
"is-window": "^1.0.2",
|
2016-06-15 12:07:12 -07:00
|
|
|
"keycode": "^2.1.2",
|
2017-08-17 21:49:44 +03:00
|
|
|
"lodash": "^4.17.4",
|
2017-04-28 13:04:00 -07:00
|
|
|
"prop-types": "^15.5.8",
|
2017-05-04 16:48:42 -07:00
|
|
|
"react-portal": "^3.1.0",
|
2017-02-28 14:51:51 -08:00
|
|
|
"selection-is-backward": "^1.0.0",
|
2016-12-03 23:49:50 -08:00
|
|
|
"type-of": "^2.0.1"
|
2016-06-15 12:07:12 -07:00
|
|
|
},
|
2016-07-06 14:05:35 -07:00
|
|
|
"peerDependencies": {
|
|
|
|
"react": "^0.14.0 || ^15.0.0",
|
|
|
|
"react-dom": "^0.14.0 || ^15.0.0"
|
|
|
|
},
|
2016-06-15 12:07:12 -07:00
|
|
|
"devDependencies": {
|
2016-06-17 19:57:37 -07:00
|
|
|
"babel-cli": "^6.10.1",
|
2016-06-15 12:07:12 -07:00
|
|
|
"babel-core": "^6.9.1",
|
2016-07-06 20:19:19 -07:00
|
|
|
"babel-eslint": "^6.1.0",
|
2016-12-07 15:16:49 -08:00
|
|
|
"babel-polyfill": "^6.16.0",
|
2016-06-15 12:07:12 -07:00
|
|
|
"babel-preset-es2015": "^6.9.0",
|
|
|
|
"babel-preset-react": "^6.5.0",
|
|
|
|
"babel-preset-stage-0": "^6.5.0",
|
|
|
|
"babelify": "^7.3.0",
|
|
|
|
"browserify": "^13.0.1",
|
2016-08-07 17:25:43 -07:00
|
|
|
"browserify-global-shim": "^1.0.3",
|
2016-07-29 10:46:31 -07:00
|
|
|
"browserify-shim": "^3.8.12",
|
2017-03-21 17:38:39 -07:00
|
|
|
"chalk": "^1.1.3",
|
2016-07-20 10:08:19 -07:00
|
|
|
"disc": "^1.3.2",
|
2016-07-29 10:46:31 -07:00
|
|
|
"envify": "^3.4.1",
|
2016-10-25 13:11:19 +02:00
|
|
|
"eslint": "^3.8.1",
|
|
|
|
"eslint-plugin-import": "^2.0.1",
|
|
|
|
"eslint-plugin-react": "^6.4.1",
|
2016-11-03 10:39:38 +01:00
|
|
|
"faker": "^3.1.0",
|
2016-08-07 13:14:43 -07:00
|
|
|
"fbjs": "^0.8.3",
|
2016-12-06 15:21:08 -08:00
|
|
|
"fs-promise": "^1.0.0",
|
2016-07-15 09:40:50 -07:00
|
|
|
"gh-pages": "^0.11.0",
|
2016-07-11 12:34:22 -07:00
|
|
|
"http-server": "^0.9.0",
|
2016-07-19 11:22:09 -07:00
|
|
|
"is-image": "^1.0.1",
|
2016-07-18 13:06:10 -07:00
|
|
|
"is-url": "^1.2.2",
|
2016-12-06 15:21:08 -08:00
|
|
|
"jest": "^17.0.3",
|
2016-10-25 00:06:17 +02:00
|
|
|
"jsdom": "9.6.0",
|
|
|
|
"jsdom-global": "2.1.0",
|
2017-03-21 17:38:39 -07:00
|
|
|
"matcha": "^0.7.0",
|
2016-10-25 00:06:17 +02:00
|
|
|
"microtime": "2.1.1",
|
2016-06-15 12:07:12 -07:00
|
|
|
"mocha": "^2.5.3",
|
2016-08-14 18:33:41 -07:00
|
|
|
"np": "^2.9.0",
|
2016-08-07 17:25:43 -07:00
|
|
|
"npm-run-all": "^2.3.0",
|
2017-07-20 12:46:02 -04:00
|
|
|
"parse5": "^3.0.2",
|
2016-07-06 14:05:35 -07:00
|
|
|
"prismjs": "^1.5.1",
|
2017-02-13 17:17:16 -08:00
|
|
|
"react": "^15.4.2",
|
|
|
|
"react-addons-perf": "^15.4.2",
|
|
|
|
"react-dom": "^15.4.2",
|
2017-02-13 16:28:53 -08:00
|
|
|
"react-frame-aware-selection-plugin": "^1.0.0",
|
2017-08-01 12:06:39 -04:00
|
|
|
"react-frame-component": "^1.1.1",
|
2016-06-24 10:22:48 -07:00
|
|
|
"react-router": "^2.5.1",
|
2017-05-04 16:48:42 -07:00
|
|
|
"react-router-dom": "^4.1.1",
|
2016-06-22 18:42:49 -07:00
|
|
|
"read-metadata": "^1.0.0",
|
2016-12-06 15:21:08 -08:00
|
|
|
"read-yaml-promise": "^1.0.2",
|
2016-07-28 16:47:50 -07:00
|
|
|
"slate-auto-replace-text": "^0.3.0",
|
|
|
|
"slate-collapse-on-escape": "^0.2.0",
|
|
|
|
"slate-soft-break": "^0.2.0",
|
2016-06-23 11:32:24 -07:00
|
|
|
"source-map-support": "^0.4.0",
|
2016-06-22 18:42:49 -07:00
|
|
|
"to-camel-case": "^1.0.0",
|
2016-06-24 10:22:48 -07:00
|
|
|
"to-title-case": "^1.0.0",
|
2016-07-29 10:46:31 -07:00
|
|
|
"uglify-js": "^2.7.0",
|
|
|
|
"uglifyify": "^3.0.2",
|
2016-07-06 20:19:19 -07:00
|
|
|
"watchify": "^3.7.0"
|
2016-07-06 17:22:45 -07:00
|
|
|
},
|
2016-07-21 12:51:34 -07:00
|
|
|
"scripts": {
|
2017-08-09 12:08:35 -07:00
|
|
|
"bench": "npm-run-all build:npm benchs",
|
|
|
|
"benchs": "babel-node ./node_modules/.bin/_matcha --reporter ./benchmark/reporter ./benchmark/index.js > ./tmp/benchmark-comparison.json && babel-node ./benchmark/compare",
|
|
|
|
"benchs:save": "babel-node ./node_modules/.bin/_matcha --reporter ./benchmark/reporter ./benchmark/index.js > ./tmp/benchmark-baseline.json",
|
2016-09-15 20:01:13 +02:00
|
|
|
"build": "mkdir -p ./dist && npm-run-all build:npm build:max build:min",
|
2016-09-15 00:51:50 +02:00
|
|
|
"build:max": "NODE_ENV=production browserify ./src/index.js --transform babelify --transform envify --transform [ browserify-global-shim --global ] --standalone Slate > ./dist/slate.js",
|
|
|
|
"build:min": "NODE_ENV=production browserify ./src/index.js --transform babelify --transform envify --transform [ browserify-global-shim --global ] --transform uglifyify --standalone Slate | uglifyjs > ./dist/slate.min.js",
|
2016-09-14 02:05:47 +02:00
|
|
|
"build:npm": "babel --out-dir ./lib ./src",
|
2016-11-03 00:04:08 +01:00
|
|
|
"build:test": "babel --out-dir ./lib ./src --source-maps inline",
|
2017-08-09 12:08:35 -07:00
|
|
|
"clean": "rm -rf ./lib ./node_modules ./examples/build.dev.js ./examples/build.prod.js",
|
|
|
|
"disc": "npm-run-all build disc:build disc:open",
|
|
|
|
"disc:build": "mkdir -p ./tmp && browserify ./lib/index.js --full-paths --transform uglifyify --standalone Slate | uglifyjs > ./tmp/build.js",
|
|
|
|
"disc:open": "discify ./tmp/build.js --open",
|
2016-08-07 17:25:43 -07:00
|
|
|
"examples": "npm-run-all examples:dev examples:prod",
|
|
|
|
"examples:dev": "browserify --debug --transform babelify ./examples/index.js > ./examples/build.dev.js",
|
|
|
|
"examples:prod": "NODE_ENV=production browserify --transform babelify ./examples/index.js > ./examples/build.prod.js",
|
2016-09-22 16:11:34 -07:00
|
|
|
"gh-pages": "npm run build && npm run examples && gh-pages --dist ./examples",
|
2016-09-14 01:57:52 +02:00
|
|
|
"lint": "eslint --ignore-pattern 'build.dev.js' --ignore-pattern 'build.prod.js' '{examples,src}/**/*.js'",
|
2016-08-07 17:25:43 -07:00
|
|
|
"open": "open http://localhost:8080/dev.html",
|
2016-09-26 21:44:42 -07:00
|
|
|
"postpublish": "npm run gh-pages",
|
2017-08-09 12:08:35 -07:00
|
|
|
"prepublish": "npm run build",
|
2016-08-15 14:44:44 -07:00
|
|
|
"release": "np",
|
2016-09-10 17:25:20 -07:00
|
|
|
"release:next": "np --tag=next",
|
2016-08-07 17:25:43 -07:00
|
|
|
"start": "http-server ./examples",
|
2016-11-03 00:04:08 +01:00
|
|
|
"test": "npm-run-all build:test tests",
|
2016-12-07 15:16:49 -08:00
|
|
|
"tests": "mocha --compilers js:babel-core/register ./test/index.js",
|
2016-09-14 01:57:52 +02:00
|
|
|
"watch": "npm-run-all --parallel --print-label watch:lib watch:examples start",
|
2017-08-09 12:08:35 -07:00
|
|
|
"watch:examples": "watchify --debug --transform babelify ./examples/index.js -o ./examples/build.dev.js -v",
|
|
|
|
"watch:lib": "babel --watch --out-dir ./lib ./src --source-maps inline"
|
2016-07-21 12:51:34 -07:00
|
|
|
},
|
2016-08-07 17:25:43 -07:00
|
|
|
"browserify-global-shim": {
|
|
|
|
"immutable": "Immutable",
|
|
|
|
"react": "React",
|
|
|
|
"react-dom": "ReactDOM",
|
|
|
|
"react-dom/server": "ReactDOMServer"
|
2016-07-29 10:46:31 -07:00
|
|
|
},
|
2016-07-06 17:22:45 -07:00
|
|
|
"keywords": [
|
|
|
|
"canvas",
|
|
|
|
"contenteditable",
|
|
|
|
"doc",
|
|
|
|
"docs",
|
|
|
|
"document",
|
|
|
|
"edit",
|
|
|
|
"editor",
|
|
|
|
"html",
|
2016-07-12 22:40:32 -07:00
|
|
|
"immutable",
|
2016-07-06 17:22:45 -07:00
|
|
|
"markdown",
|
|
|
|
"medium",
|
|
|
|
"paper",
|
|
|
|
"react",
|
|
|
|
"rich",
|
|
|
|
"rich-text",
|
|
|
|
"richtext",
|
2016-07-21 15:06:27 -07:00
|
|
|
"slate",
|
2016-07-06 17:22:45 -07:00
|
|
|
"text",
|
|
|
|
"wysiwyg",
|
|
|
|
"wysiwym"
|
|
|
|
]
|
2016-06-15 12:07:12 -07:00
|
|
|
}
|