gen-flow-files

v0.1.2
This is a script which finds `.js` files with @flow annotation, extract flow definitions and save to specific folder.

build

npm run build:clean && npm run build:lib

build:clean

rimraf dist

build:lib

cross-env BABEL_ENV=production babel src --out-dir dist --ignore '**/__tests__/**'

test

jest

prettier

prettier "*/**/*.js" --ignore-path ./.prettierignore --write && git add . && git status

generate-example-code

rimraf example/generated-code && ./bin/gen-flow-files.js example/orginal-code --out-dir example/generated-code

prepublish

npm run test && npm run build && npm run generate-example-code

Metadata

  • MIT
  • Whatever
  • Ilya Lesik
  • released 1/18/2019

Downloads

Maintainers