slate

v0.10.0
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.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

http-server ./examples

dist:npm

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

examples

browserify --debug --transform babelify ./examples/index.js --outfile ./examples/build.js

gh-pages

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:watch

watchify --debug --transform babelify ./examples/index.js --outfile ./examples/build.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 7/29/2016

Downloads

Maintainers