Skip to content

Create CLI script for generator #22

@rmariuzzo

Description

@rmariuzzo

Currently we have a single NPM script for data generation purposes. However no script files exists. We would like to create a script files that replace the data generation process.

Tasks:

  • Create a script file at: src/server/scripts/generate-data.js.
  • Follow this guide to add the proper shebang directive and setup permissions only. Do not add a bin entry.
  • The script file should support a --only option and only one of two values are accepted: users or repos. When that CLI option is specified, then only the specified set will be generated.
  • Replace the current single NPM script (generate, scrape:users and scrape:repos) with one script: generate-data which will execute our new cli script defined at: src/server/scripts/generate-data.js.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions