2023-05-16 20:40:55 +00:00
|
|
|
# Automatically generating UI component boilerplate
|
2023-05-11 19:00:27 +00:00
|
|
|
|
2023-05-16 20:40:55 +00:00
|
|
|
Instead of manually creating each file, you can use
|
|
|
|
the `generate` utility to automatically create the common boilerplate for a new Fleet UI component.
|
|
|
|
|
|
|
|
## Basic steps
|
2023-05-11 19:00:27 +00:00
|
|
|
|
|
|
|
1. `cd` into `fleet/frontend/components`
|
|
|
|
2. Run `./generate -n NewComponentName`, replacing `NewComponentName` with the desired name for your
|
|
|
|
new component.
|
|
|
|
3. A directory and all boilerplate for the various files of the component will be generated in
|
|
|
|
`fleet/frontend/components`
|
|
|
|
|
2023-05-12 15:50:14 +00:00
|
|
|
|
2023-05-16 20:40:55 +00:00
|
|
|
You can also run `./generate -h` for information about the other options available, overwrite and
|
|
|
|
specifying destination.
|
|
|
|
|
|
|
|
<meta name="pageOrderInSection" value="450">
|