Skip to main content

โ“ Help Scripts

This page explains how to use the help scripts included in the Img2Num project.

There are two sets of help scripts:

  1. Root project scripts (/scripts/help.js)
  2. Docs scripts (/docs/scripts/help.js)

Both provide the same interface, but are scoped to their package.json scripts.

Project Helpโ€‹

Run the following command from the project root:

npm run help

This launches an interactive CLI that shows all scripts in package.json grouped by category and allows fuzzy search.

Features:

  • Lists scripts in groups: Development, Build, Cleaning, Formatting, Linting, Other
  • Allows fuzzy search for script names
  • a + enter lists all scripts
  • q + enter quits the CLI
Normal Example Fuzzy Search Example CLI Args Example
info
  • These scripts are meant to manage the documentation site.
  • Use start to run a local dev server for docs.
  • Use build and deploy to publish to GitHub Pages.
  • swizzle allows customizing theme components safely.
  • write-translations and write-heading-ids are useful for internationalization and stable MDX anchors.