Skip to content

Commit

Permalink
docs: add hooks in contributing guide
Browse files Browse the repository at this point in the history
  • Loading branch information
Esthefanie Vila Maior committed Aug 2, 2024
1 parent 73e15d8 commit b9b137b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ or
$ yarn new NewComponent --native
```

- **New Theming:** Every component has its own `theme` file. You can find it in its own folder. When building a new component, make sure to add values like paddings, colors, margins, to the component theme file.
- **New Theme:** Every component has its own `theme` file. You can find it in its own folder. When building a new component, make sure to add values like paddings, colors, margins, to the component theme file.

To create custom themes, Yoga exposes a `createTheme` function in order to generate new themes, you can refer to [Theme Generator](https://gympass.github.io/yoga/components/theming/themeGenerator) in order to see how to create custom themes.

Expand Down Expand Up @@ -208,6 +208,20 @@ Push your changes to your fork:
$ git push origin branch-name
```

Also, we have two hooks inside Yoga repo.

For run eslint:

```bash
$ pre-commit
```

For run test:

```bash
$ pre-push
```

### 5. Pull Requests

Open a Pull Request (PR) in the Yoga repository. Describe what was done, why it was done, and any other relevant details in the PR, following the template. Please always indicate in the PR when a design review is needed, along with images and videos.
Expand Down

0 comments on commit b9b137b

Please sign in to comment.