Skip to content

Latest commit

 

History

History
44 lines (24 loc) · 1 KB

README.md

File metadata and controls

44 lines (24 loc) · 1 KB

Scripts Project Template

Templates to generate scripts in Node JS (typed with flow)

Using types

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.

Folder structure

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

Prepare environment

npm install

Working flow: STEPS

1.Create and develop your scripts in the src folder.

  1. Once you've finished run:
npm run build

  1. The scripts (ready to execute), will be created in the scripts folder.

Example:

npm run run:example