Skip to content

Latest commit

 

History

History
27 lines (19 loc) · 1.15 KB

README.md

File metadata and controls

27 lines (19 loc) · 1.15 KB

Best of JavaScript back-end tasks

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 1

Available options:

  • --loglevel info|verbose|debug specify 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 file MONGO_URI_<KEY>
  • --limit <integer> limit the number of items processed
  • --readonly run the batch in readonly mode, no database write operation
  • --dryrun (or --dryRun) no side effect (used only by notify task for now)