⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

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

License

Notifications You must be signed in to change notification settings

geostarters/scripts-template-project

Repository files navigation

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •