Templates to generate scripts in Node JS (typed with flow)
Using flow provides a way to check for common syntax errors while calling functions. Flow provides a simple example of which kind of problems it can solve in their Type Annotations guide. There's also a list of annotations it supports there.
scipts: Contains the built scripts, ready to use, generated by the "build" command in package.json (unflow).
src: Contains the source files that compound the package.
test: Contains the unit and integration tests
flow-typed: Contains flow types definitions used i nthe project
npm install
1.Create and develop your scripts in the src folder.
- Once you've finished run:
npm run build
- The scripts (ready to execute), will be created in the scripts folder.
Example:
npm run run:example