Build your code into a jsrepo registry.
jsrepo build
The build command builds the specified directories into a jsrepo-manifest.json
file which jsrepo can use to locate blocks in your repository.
jsrepo build
--dirs
The directories containing the categories. Corresponding config key: dirs
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
jsrepo build --output-dir ./static/new-york
--include-blocks
Include only the blocks with these names. Corresponding config key: includeBlocks
jsrepo build --include-blocks math logger
--include-categories
Include only the categories with these names. Corresponding config key: includeCategories
jsrepo build --include-categories utils scripts
--exclude-blocks
Do not include the blocks with these names. Corresponding config key: excludeBlocks
jsrepo build --exclude-blocks math logger
--exclude-categories
Do not include the categories with these names. Corresponding config key: excludeCategories
jsrepo build --exclude-categories utils scripts
--list-blocks
List only the blocks with these names. Corresponding config key: listBlocks
jsrepo build --list-blocks math logger
--list-categories
List only the categories with these names. Corresponding config key: listCategories
jsrepo build --list-categories utils scripts
--do-not-list-blocks
Do not list the blocks with these names. Corresponding config key: doNotListBlocks
jsrepo build --do-not-list-blocks math logger
--do-not-list-categories
Do not list the categories with these names. Corresponding config key: doNotListCategories
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
jsrepo build --exclude-deps svelte react
--allow-subdirectories
Allow subdirectories to be built. Corresponding config key: allowSubdirectories
jsrepo build --allow-subdirectories
--preview
Display a preview of the blocks list. Corresponding config key: preview
jsrepo build --preview
--verbose
More verbose logging. (May be used to troubleshoot issues)
jsrepo build --verbose
--cwd
Run the current command on the provided directory absolute or relative.
jsrepo build --cwd ./sites/docs
-h, --help
Help with the command.
jsrepo build --help