fleet/docs/Contributing/Automatically-generating-UI-component-boilerplate.md
Eric e420e34ce2
Website: Add meta descriptions to Fleet documentation. (#12586)
#11986


Changes: 
- Added meta descriptions to Fleet documentation pages.

---------

Co-authored-by: Rachael Shaw <r@rachael.wtf>
2023-07-13 11:57:17 -05:00

20 lines
770 B
Markdown

# Automatically generating UI component boilerplate
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
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`
You can also run `./generate -h` for information about the other options available, overwrite and
specifying destination.
<meta name="pageOrderInSection" value="450">
<meta name="description" value="How to create boilerplate for new UI components in Fleet.">