diff --git a/src/lib/docs/cli/build.md b/src/lib/docs/cli/build.md index 6814dff..b48ec1d 100644 --- a/src/lib/docs/cli/build.md +++ b/src/lib/docs/cli/build.md @@ -58,6 +58,16 @@ Include only the categories with these names. Corresponding config key: `include jsrepo build --include-categories utils scripts ``` +### `--include-files` + +Additional files to include in the manifest. Corresponding config key: `includeFiles` + +#### Usage + +```sh +jsrepo build --include-files ./src/**/*.txt +``` + ### `--exclude-blocks` Do not include the blocks with these names. Corresponding config key: `excludeBlocks` diff --git a/src/lib/docs/registry/jsrepo-build-config-json.md b/src/lib/docs/registry/jsrepo-build-config-json.md index 7d10e21..895d158 100644 --- a/src/lib/docs/registry/jsrepo-build-config-json.md +++ b/src/lib/docs/registry/jsrepo-build-config-json.md @@ -145,6 +145,17 @@ The path of the file in your registry. } ``` +### `includeFiles` + +Additional files to include in the manifest. This can be used to include arbitrary extra static files which don't have language support. +This config option supports ignore style glob patterns. + +```jsonc showLineNumbers +{ + "includeFiles": ["./src/blocks/header/hero.png", "./src/**/*.txt"] +} +``` + ### `listBlocks` `listBlocks` is a list of block names that should be listed when the user runs the `add` command.