Skip to content

Commit 8e0874b

Browse files
committed
docs: script target
1 parent c83116a commit 8e0874b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/pages/build.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,22 @@ Generates the [React Native Codegen](https://reactnative.dev/docs/the-new-archit
188188

189189
You can ensure your Codegen generated scaffold code is stable through different React Native versions by shipping it with your library. You can find more in the [React Native Official Docs](https://reactnative.dev/docs/the-new-architecture/codegen-cli#including-generated-code-into-libraries).
190190

191+
#### `script`
192+
193+
Allows arbitrary scripts to be called during the build process. There is no guarantee when the script is going to be called or finished. This is useful to call code generators during the build process.
194+
195+
##### `run`
196+
197+
`bob` will run the command passed in the `run` option. The build process will throw and exit if the `script` target is defined without the `run` option.
198+
199+
##### `cwd`
200+
201+
You can set the `cwd` (current working directory) option to specify where the command should be called from. This option accepts a path and will default to the path `build` was called from.
202+
203+
##### `clean`
204+
205+
You can pass a path to this option and `bob` will delete all the files on that path. The path is resolved relatively to the `cwd` option.
206+
191207
#### `commonjs`
192208

193209
Enable compiling source files with Babel and use CommonJS module system.

0 commit comments

Comments
 (0)