Skip to content

EyeSeeTea/dhis2-script-skeleton

Repository files navigation

Setup

The required node version is v16.14.0. Alternatively, you can run:

shell:~$ nvm use

To build the script run:

shell:~$ yarn install
shell:~$ yarn test
shell:~$ yarn build

How to run

The entry point CLI is executed with yarn start. Pass --help to show commands and arguments to commands:

shell:~$ yarn start
# ...
shell:~$ yarn start users --help

The default log level is info. Set the desired level using env variable LOG_LEVEL:

shell:~$ LOG_LEVEL=debug yarn start users

Available levels: 'debug' | 'info' | 'warn' | 'error'

Development

You can start a build on watch mode:

shell:~$ yarn build --watch

Or use ts-node to compile and execute:

shell:~$ npx ts-node src/index.ts [...]

To run tests on watch mode:

shell:~$ yarn test --watch

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors