From 442e4d51a6d4b2bb65d7bb40e29983d402208257 Mon Sep 17 00:00:00 2001 From: Emeric Warnez Date: Thu, 25 Sep 2025 21:19:06 +0200 Subject: [PATCH 1/3] docs: add include files documentation --- src/lib/docs/cli/build.md | 10 ++++++++++ src/lib/docs/jsrepo-json.md | 14 ++++++++++++++ 2 files changed, 24 insertions(+) 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/jsrepo-json.md b/src/lib/docs/jsrepo-json.md index e5b7e1e..2e23c4e 100644 --- a/src/lib/docs/jsrepo-json.md +++ b/src/lib/docs/jsrepo-json.md @@ -56,6 +56,20 @@ Whether or not to include test files when installing blocks. } ``` +## 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" + ] +} +``` + ## paths Where to add specific categories in your project. From 6bb09aa04b86dc9b993aad3f7e7badb67fc13c49 Mon Sep 17 00:00:00 2001 From: Emeric Warnez Date: Thu, 25 Sep 2025 21:21:36 +0200 Subject: [PATCH 2/3] chore: formatting --- src/lib/docs/jsrepo-json.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/lib/docs/jsrepo-json.md b/src/lib/docs/jsrepo-json.md index 2e23c4e..9f0b45f 100644 --- a/src/lib/docs/jsrepo-json.md +++ b/src/lib/docs/jsrepo-json.md @@ -63,10 +63,7 @@ This config option supports ignore style glob patterns. ```jsonc showLineNumbers { - "includeFiles": [ - "./src/blocks/header/hero.png", - "./src/**/*.txt" - ] + "includeFiles": ["./src/blocks/header/hero.png", "./src/**/*.txt"] } ``` From 3b82cd04c625908b64cfa0b4491fb865fabd0c5a Mon Sep 17 00:00:00 2001 From: Emeric Warnez Date: Fri, 26 Sep 2025 08:28:57 +0200 Subject: [PATCH 3/3] docs: move include files config to right markdown file --- src/lib/docs/jsrepo-json.md | 11 ----------- src/lib/docs/registry/jsrepo-build-config-json.md | 11 +++++++++++ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/lib/docs/jsrepo-json.md b/src/lib/docs/jsrepo-json.md index 9f0b45f..e5b7e1e 100644 --- a/src/lib/docs/jsrepo-json.md +++ b/src/lib/docs/jsrepo-json.md @@ -56,17 +56,6 @@ Whether or not to include test files when installing blocks. } ``` -## 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"] -} -``` - ## paths Where to add specific categories in your project. 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.