mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
docs: instruction about adding packages in ui-component library (#48750)
Co-authored-by: Shaun Hamilton <shauhami020@gmail.com> Co-authored-by: Mrugesh Mohapatra <1884376+raisedadead@users.noreply.github.com>
This commit is contained in:
@@ -92,6 +92,14 @@ To run tests against the component library, run the following command from the r
|
||||
npm run test-ui-components
|
||||
```
|
||||
|
||||
## Adding packages to the UI-Component library
|
||||
|
||||
We restrict adding new packages to the UI Components to help with the project's maintainability. In the rare chance that you think a dependency is needed, please check with the maintainers first and then use the following command to add a package:
|
||||
|
||||
```bash
|
||||
npm i -w=tools/ui-components package_name
|
||||
```
|
||||
|
||||
### Useful links
|
||||
|
||||
- [Testing for Accessibility](https://testing-library.com/docs/dom-testing-library/api-accessibility)
|
||||
|
||||
Reference in New Issue
Block a user