decoders

v0.1.0-rc2
Elm-like decoders for when working with Flow types in JS

test

yarn run test:flow && yarn run test:jest && yarn run check

build

yarn run build:clean && yarn run build:lib && yarn run build:flow

check

yarn run check:eslint && yarn run check:prettier && yarn run check:import-sort

build:lib

babel -d lib src --ignore '**/__tests__/**'

test:flow

flow check

test:jest

jest --coverage

build:flow

flow-copy-source -v -i '**/__tests__/**' src lib

prepublish

yarn run --silent in-publish && yarn run actually-prepublish || echo

build:clean

rimraf lib

check:eslint

eslint --report-unused-disable-directives src

fix:prettier

prettier --write 'src/**/*.js'

check:prettier

prettier --list-different 'src/**/*.js'

fix:import-sort

find src -iname '*.js' | xargs -n1 import-sort -o

check:import-sort

find src -iname '*.js' | xargs -n1 import-sort --diff

actually-prepublish

yarn run build:clean && yarn run test && yarn run build

Metadata

  • MIT
  • Whatever
  • Vincent Driessen
  • released 10/27/2017

Downloads

Maintainers