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
--dirsThe directories containing the categories. Corresponding config key: dirs
jsrepo build --dirs ./src ./blocks
--output-dirDirectory 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-blocksInclude only the blocks with these names. Corresponding config key: includeBlocks
jsrepo build --include-blocks math logger
--include-categoriesInclude only the categories with these names. Corresponding config key: includeCategories
jsrepo build --include-categories utils scripts
--include-filesAdditional files to include in the manifest. Corresponding config key: includeFiles
jsrepo build --include-files ./src/**/*.txt
--exclude-blocksDo not include the blocks with these names. Corresponding config key: excludeBlocks
jsrepo build --exclude-blocks math logger
--exclude-categoriesDo not include the categories with these names. Corresponding config key: excludeCategories
jsrepo build --exclude-categories utils scripts
--list-blocksList only the blocks with these names. Corresponding config key: listBlocks
jsrepo build --list-blocks math logger
--list-categoriesList only the categories with these names. Corresponding config key: listCategories
jsrepo build --list-categories utils scripts
--do-not-list-blocksDo not list the blocks with these names. Corresponding config key: doNotListBlocks
jsrepo build --do-not-list-blocks math logger
--do-not-list-categoriesDo not list the categories with these names. Corresponding config key: doNotListCategories
jsrepo build --do-not-list-categories utils scripts
--exclude-depsPrevent these dependencies from being included in the jsrepo-manifest.json file. Corresponding config key: excludeDeps
jsrepo build --exclude-deps svelte react
--allow-subdirectoriesAllow subdirectories to be built. Corresponding config key: allowSubdirectories
jsrepo build --allow-subdirectories
--previewDisplay a preview of the blocks list. Corresponding config key: preview
jsrepo build --preview
--verboseMore verbose logging. (May be used to troubleshoot issues)
jsrepo build --verbose
--cwdRun the current command on the provided directory absolute or relative.
jsrepo build --cwd ./sites/docs
-h, --helpHelp with the command.
jsrepo build --help