mirror of
https://github.com/ianstormtaylor/slate.git
synced 2025-02-18 22:24:38 +01:00
115 lines
4.0 KiB
JSON
115 lines
4.0 KiB
JSON
{
|
|
"name": "slate",
|
|
"description": "A completely customizable framework for building rich text editors.",
|
|
"version": "0.10.10",
|
|
"license": "MIT",
|
|
"repository": "git://github.com/ianstormtaylor/slate.git",
|
|
"main": "./dist/index.js",
|
|
"dependencies": {
|
|
"cheerio": "^0.20.0",
|
|
"debug": "^2.2.0",
|
|
"detect-browser": "^1.3.3",
|
|
"direction": "^0.1.5",
|
|
"esrever": "^0.2.0",
|
|
"immutable": "^3.8.1",
|
|
"is-empty": "^1.0.0",
|
|
"keycode": "^2.1.2",
|
|
"lodash": "^4.13.1",
|
|
"react-portal": "^2.2.0",
|
|
"type-of": "^2.0.1",
|
|
"ua-parser-js": "^0.7.10",
|
|
"uid": "0.0.2"
|
|
},
|
|
"peerDependencies": {
|
|
"react": "^0.14.0 || ^15.0.0",
|
|
"react-dom": "^0.14.0 || ^15.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"babel-cli": "^6.10.1",
|
|
"babel-core": "^6.9.1",
|
|
"babel-eslint": "^6.1.0",
|
|
"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",
|
|
"browserify-shim": "^3.8.12",
|
|
"disc": "^1.3.2",
|
|
"envify": "^3.4.1",
|
|
"eslint": "^3.0.1",
|
|
"eslint-plugin-import": "^1.10.2",
|
|
"eslint-plugin-react": "^5.2.2",
|
|
"gh-pages": "^0.11.0",
|
|
"http-server": "^0.9.0",
|
|
"is-image": "^1.0.1",
|
|
"is-url": "^1.2.2",
|
|
"mocha": "^2.5.3",
|
|
"prismjs": "^1.5.1",
|
|
"react": "^15.2.0",
|
|
"react-addons-perf": "^15.2.1",
|
|
"react-dom": "^15.1.0",
|
|
"react-router": "^2.5.1",
|
|
"read-metadata": "^1.0.0",
|
|
"selection-position": "^1.0.0",
|
|
"slate-auto-replace-text": "^0.3.0",
|
|
"slate-collapse-on-escape": "^0.2.0",
|
|
"slate-soft-break": "^0.2.0",
|
|
"source-map-support": "^0.4.0",
|
|
"to-camel-case": "^1.0.0",
|
|
"to-title-case": "^1.0.0",
|
|
"uglify-js": "^2.7.0",
|
|
"uglifyify": "^3.0.2",
|
|
"watchify": "^3.7.0"
|
|
},
|
|
"scripts": {
|
|
"clean": "rm -rf ./dist ./node_modules ./examples/build.js",
|
|
"disc": "npm run dist && npm run disc:build && npm run disc:open",
|
|
"disc:build": "mkdir -p ./tmp && browserify ./dist/index.js --full-paths --outfile ./tmp/build.js",
|
|
"disc:open": "discify ./tmp/build.js --open",
|
|
"dist": "npm run dist:npm && npm run dist:bundle",
|
|
"dist:bundle": "npm run dist:bundle:max && npm run dist:bundle:min",
|
|
"dist:bundle:max": "NODE_ENV=production browserify ./dist/index.js --transform envify --transform browserify-shim --standalone Slate --outfile ./dist/slate.js",
|
|
"dist:bundle:min": "NODE_ENV=production browserify ./dist/index.js --transform envify --transform uglifyify --transform browserify-shim --standalone Slate | uglifyjs --output ./dist/slate.min.js",
|
|
"dist:npm": "babel --out-dir ./dist ./lib",
|
|
"dist:watch": "babel --watch --out-dir ./dist ./lib",
|
|
"examples": "npm run examples:dev && npm run examples:prod",
|
|
"examples:dev": "browserify --debug --transform babelify ./examples/index.js --outfile ./examples/build.dev.js",
|
|
"examples:open": "open http://localhost:8080/dev.html",
|
|
"examples:prod": "NODE_ENV=production browserify --transform babelify ./examples/index.js --outfile ./examples/build.prod.js",
|
|
"examples:start": "http-server ./examples",
|
|
"examples:watch": "watchify --debug --transform babelify ./examples/index.js --outfile ./examples/build.dev.js",
|
|
"gh-pages": "npm run dist && npm run examples && gh-pages --dist ./examples",
|
|
"lint": "eslint --ignore-pattern 'build.dev.js' --ignore-pattern 'build.prod.js' '{examples,lib}/**/*.js'",
|
|
"prepublish": "npm run dist",
|
|
"start": "npm run examples:start",
|
|
"test": "npm run dist && npm run lint && npm run test:server",
|
|
"test:server": "mocha --compilers js:babel-core/register --reporter spec ./test/server.js"
|
|
},
|
|
"browserify-shim": {
|
|
"react": "global:React",
|
|
"react-dom": "global:ReactDOM"
|
|
},
|
|
"keywords": [
|
|
"canvas",
|
|
"contenteditable",
|
|
"doc",
|
|
"docs",
|
|
"document",
|
|
"edit",
|
|
"editor",
|
|
"html",
|
|
"immutable",
|
|
"markdown",
|
|
"medium",
|
|
"paper",
|
|
"react",
|
|
"rich",
|
|
"rich-text",
|
|
"richtext",
|
|
"slate",
|
|
"text",
|
|
"wysiwyg",
|
|
"wysiwym"
|
|
]
|
|
}
|