draftjs-filters

v0.4.0
Filter Draft.js content to preserve only the formatting you allow
draft-js draftjs-utils editor wysiwyg rich text rte

start

react-scripts start

build

react-scripts build && source-map-explorer --html build/static/js/main.* > build/source-map-explorer.html && rollup -c

dist

CI=true npm run build -s

flow

flow

danger

danger ci --verbose

release

standard-version --no-verify

test

npm run test:coverage -s

test:coverage

react-scripts test --env=jsdom --coverage

test:watch

react-scripts test --env=jsdom

linter:css

prettier --list-different

linter:md

prettier --list-different

linter:commit

commitlint

report:coverage

open coverage/lcov-report/index.html

report:build

open public/source-map-explorer.html

formatter

prettier --write

lint

npm run linter:css -s -- src/**/*.css && npm run linter:md -s -- '**/*.md'

format

npm run formatter -s -- '**/*.md' src/**/*.js src/**/*.css

test:ci

npm run lint -s && npm run flow -s && npm run dist -s && npm run test:coverage -s -- --outputFile build/test-results.json --json

Metadata

  • MIT
  • Whatever
  • Thibaud Colas
  • released 1/17/2018

Downloads

Maintainers