slate

v0.10.3
A completely customizable framework for building rich text editors.
canvas contenteditable doc docs document edit editor html immutable and 12 more...

disc

npm run dist && npm run disc:build && npm run disc:open

dist

npm run dist:npm && npm run dist:bundle

lint

eslint --ignore-pattern 'build.dev.js' --ignore-pattern 'build.prod.js' '{examples,lib}/**/*.js'

test

npm run dist && npm run lint && npm run test:server

clean

rm -rf ./dist ./node_modules ./examples/build.js

start

npm run examples:start

dist:npm

babel --out-dir ./dist ./lib

examples

npm run examples:dev && npm run examples:prod

gh-pages

npm run dist && npm run examples && gh-pages --dist ./examples

disc:open

discify ./tmp/build.js --open

disc:build

mkdir -p ./tmp && browserify ./dist/index.js --full-paths --outfile ./tmp/build.js

dist:watch

babel --watch --out-dir ./dist ./lib

prepublish

npm run dist

dist:bundle

npm run dist:bundle:max && npm run dist:bundle:min

test:server

mocha --compilers js:babel-core/register --reporter spec ./test/server.js

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

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

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 8/1/2016

Downloads

Maintainers