slate

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

disc

npm-run-all build disc:build disc:open

lint

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

open

open http://localhost:8080/dev.html

test

npm-run-all build:test tests

bench

npm-run-all build:npm benchs

build

mkdir -p ./dist && npm-run-all build:npm build:max build:min

clean

rm -rf ./lib ./node_modules ./examples/build.dev.js ./examples/build.prod.js

start

http-server ./examples

tests

mocha --compilers js:babel-core/register ./test/index.js

watch

npm-run-all --parallel --print-label watch:lib watch:examples start

benchs

babel-node ./node_modules/.bin/_matcha --reporter ./benchmark/reporter ./benchmark/index.js > ./tmp/benchmark-comparison.json && babel-node ./benchmark/compare

release

np

examples

npm-run-all examples:dev examples:prod

gh-pages

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

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

build:npm

babel --out-dir ./lib ./src

disc:open

discify ./tmp/build.js --open

watch:lib

babel --watch --out-dir ./lib ./src --source-maps inline

build:test

babel --out-dir ./lib ./src --source-maps inline

disc:build

mkdir -p ./tmp && browserify ./lib/index.js --full-paths --transform uglifyify --standalone Slate | uglifyjs > ./tmp/build.js

prepublish

npm run build

benchs:save

babel-node ./node_modules/.bin/_matcha --reporter ./benchmark/reporter ./benchmark/index.js > ./tmp/benchmark-baseline.json

postpublish

npm run gh-pages

examples:dev

browserify --debug --transform babelify ./examples/index.js > ./examples/build.dev.js

release:next

np --tag=next

examples:prod

NODE_ENV=production browserify --transform babelify ./examples/index.js > ./examples/build.prod.js

watch:examples

watchify --debug --transform babelify ./examples/index.js -o ./examples/build.dev.js -v

Metadata

  • MIT
  • Whatever
  • Unknown
  • released 9/6/2017

Downloads

Maintainers