This repository contains Best of JavaScript back-end tasks run every day to update the database and build JSON files consumed by the web applications.
Tasks can be launched manually from the command line and scheduled on CI servers.
A "task" is just a Node.js JavaScript file that can be launched using the task runner run.js at the root level:
node ./run.js <path-to-task.task.js> <options>
Example:
node ./run.js ./cli/tasks/projects/update-github-data.task.js --loglevel debug --limit 1Available options:
--loglevel info|verbose|debugspecify the log level--name <project_name>process only the project with the specified repository name, instead of all projects--id <project_id>process only the project with the specified id, instead of all projects--db <key>connect to a database whose URL is specified in the .env fileMONGO_URI_<KEY>--limit <integer>limit the number of items processed--readonlyrun the batch in readonly mode, no database write operation--dryrun(or--dryRun) no side effect (used only bynotifytask for now)