1
Fork 0
mirror of https://github.com/Steffo99/bluelib.git synced 2024-12-23 03:54:21 +00:00
bluelib/CONTRIBUTING.md

31 lines
1.1 KiB
Markdown
Raw Normal View History

# Contributing
2021-01-25 18:37:58 +00:00
Feel free to contribute to bluelib at any time, adding new rules, themes or anything else through [pull requests](https://github.com/RYGhub/bluelib/pulls)!
2021-01-25 18:37:58 +00:00
## Structure
2021-01-25 18:37:58 +00:00
- [src](src) contains the project source
- [components](src/components) contains all components provided by this module with the following structure
- `Component`, a folder with the name of the component
- `index.js`, a JSX file default-exporting the React component
- `Readme.md`, a Markdown file which contains the text to be displayed in the documentation; code blocks additionally act as examples where the component is automatically imported, allowing the developer to edit them in real time
- [contexts](src/contexts) contains all React contexts used by this module
- [hooks](src/hooks) contains all custom React hooks used by this module
- [utils](src/utils) contains miscellaneous functions with a variety of uses
2021-01-25 18:37:58 +00:00
## Compiling
2021-01-25 18:37:58 +00:00
To build this module, run:
2021-01-25 18:37:58 +00:00
```bash
npm run build
```
2021-01-25 18:37:58 +00:00
## Publish
2021-01-25 18:37:58 +00:00
To publish this module on npm, run:
2021-01-25 18:37:58 +00:00
```bash
npm publish
```