/redex-scripts

Primary LanguageJavaScript

redex scripts

This repository contains a number of scripts used in generating and maintaining the content of redex. Please see the redex publishing guide for information on how to add a package.

Scripts

  • fetch_published - reads the published package sources from souces.json, collects more information from npms.io and generates packages from the collected data.

  • fetch_unpublished - reads the unpublished package sources from souces.json, collects more information from each repository and generates packages from the collected data.

  • lint_packages - checks all generated packages for common issues.

  • lint_remote - runs the lints on a remote source, without generating a package.

  • update_search_index - reads the generated packages and updates the Algolia search index. This requires a valid api key.

  • validate_sources - checks sources.json for common errors without fetching any data from remote services. This is primarily used for CI on the data repository to quickly check for silly mistakes before merging a PR.