allowed-fields

v0.1.1
Define white listed and black listed database fields and check whether given field is allowed.
db fields whitelist blacklist

watch:babel

babel src/ -d lib/ --source-maps -watch

//

Because flow gen-flow-files has bugs such as 'export default class xxx {}', I use flow-copy-source instead of flow gen-flow-files src --out-dir lib

build

rm -rf lib && babel src/ -d lib/ --source-maps && flow-copy-source src lib && npm run doc

flow

flow

flowtyped

flow-typed install

lint

eslint src test --fix --ignore-path .gitignore

pretest

flow && npm run lint

test

cross-env NODE_ENV=test mocha --async-only --check-leaks --require babel-register

test:cover

npm run pretest && cross-env NODE_ENV=test nyc mocha --async-only --check-leaks --require babel-register

map

node -r source-map-support/register

doc

jsdoc2md src/*.js --configure jsdoc.json --template README.hbs > README.md

preversion

npm run test:cover && npm run build && git add README.md

Metadata

  • MIT
  • Whatever
  • Özüm Eldoğan
  • released 10/18/2017

Downloads

Maintainers