GitHub

build

Build your repository into a jsrepo registry.

The build command builds the specified directories into a jsrepo-manifest.json file which jsrepo can use to locate blocks in your repository.

npx jsrepo build

Usage

npx jsrepo build

Options

--dirs

The directories containing the categories. Corresponding config key: dirs

Usage

npx jsrepo build --dirs ./src ./blocks
--output-dir

Directory to copy the jsrepo-manifest.json and all required registry files to once the build is complete. This is useful when you want to host your registry on a custom domain from a different directory from where the code actually lives. Corresponding config key: outputDir

Usage

npx jsrepo build --output-dir ./static/new-york
--include-blocks

Include only the blocks with these names. Corresponding config key: includeBlocks

Usage

npx jsrepo build --include-blocks math logger
--include-categories

Include only the categories with these names. Corresponding config key: includeCategories

Usage

npx jsrepo build --include-categories utils scripts
--exclude-blocks

Do not include the blocks with these names. Corresponding config key: excludeBlocks

Usage

npx jsrepo build --exclude-blocks math logger
--exclude-categories

Do not include the categories with these names. Corresponding config key: excludeCategories

Usage

npx jsrepo build --exclude-categories utils scripts
--list-blocks

List only the blocks with these names. Corresponding config key: listBlocks

Usage

npx jsrepo build --list-blocks math logger
--list-categories

List only the categories with these names. Corresponding config key: listCategories

Usage

npx jsrepo build --list-categories utils scripts
--do-not-list-blocks

Do not list the blocks with these names. Corresponding config key: doNotListBlocks

Usage

npx jsrepo build --do-not-list-blocks math logger
--do-not-list-categories

Do not list the categories with these names. Corresponding config key: doNotListCategories

Usage

npx jsrepo build --do-not-list-categories utils scripts
--exclude-deps

Prevent these dependencies from being included in the jsrepo-manifest.json file. Corresponding config key: excludeDeps

Usage

npx jsrepo build --exclude-deps svelte react
--preview

Display a preview of the blocks list. Corresponding config key: preview

Usage

npx jsrepo build --preview
--verbose

More verbose logging. (May be used to troubleshoot issues)

Usage

npx jsrepo add --verbose
--cwd

Run the current command on the provided directory absolute or relative.

Usage

npx jsrepo add --cwd ./sites/docs
-h, --help

Help with the command.

Usage

npx jsrepo add --help