|
1 | 1 | # Contributing |
2 | 2 |
|
3 | | -Hi! We're looking for some help, and we're excited that you're interested! |
4 | | -We want contributing to this project to be enjoyable and productive for everyone. |
5 | | -All contributions are welcome, including opening and commenting on issues and pull requests, adding or updating the docs, |
6 | | -bug fixes, blog posts, and suggestions for new features. |
7 | | -We follow a [Code of Conduct](CODE_OF_CONDUCT.md), so please be kind to others and reach out if you have any questions or concerns. |
| 3 | +Hi! We're looking for some help, and we're excited that you're interested! We |
| 4 | +want contributing to this project to be enjoyable and productive for everyone. |
| 5 | +All contributions are welcome, including opening and commenting on issues and |
| 6 | +pull requests, adding or updating the docs, bug fixes, blog posts, and |
| 7 | +suggestions for new features. We follow a [Code of Conduct](CODE_OF_CONDUCT.md), |
| 8 | +so please be kind to others and reach out if you have any questions or concerns. |
8 | 9 |
|
9 | | -Theme UI is still in an early stage and things will likely move quickly. |
10 | | -The time to review a pull request depends on the complexity involved, |
11 | | -so please be patient if a particular feature takes longer to review than others. |
| 10 | +Theme UI is still in an early stage and things will likely move quickly. The |
| 11 | +time to review a pull request depends on the complexity involved, so please be |
| 12 | +patient if a particular feature takes longer to review than others. |
12 | 13 |
|
13 | 14 | ## Local Development |
14 | 15 |
|
15 | | -This repo uses [Yarn Workspaces][] and [Lerna][] to develop multiple packages together as a monorepo. |
16 | | -Be sure to install [Yarn][] before setting up the development environment. |
| 16 | +This repo uses [pnpm workspaces][] to develop multiple packages together as a |
| 17 | +monorepo. Be sure to [install pnpm][] before setting up the development |
| 18 | +environment. |
17 | 19 |
|
18 | 20 | Install dependencies and link local packages in the root directory: |
19 | 21 |
|
20 | 22 | ```sh |
21 | | -yarn |
| 23 | +pnpm i |
22 | 24 | ``` |
23 | 25 |
|
24 | | -In `postinstall` script running after dependencies install, [Preconstruct][] links source files to dist directories. |
| 26 | +In `postinstall` script running after dependencies install, [Preconstruct][] |
| 27 | +links source files to dist directories. |
25 | 28 |
|
26 | | -Depending on the part of the codebase you're working on, you'll want to run tests or docs development server. |
| 29 | +Depending on the part of the codebase you're working on, you'll want to run |
| 30 | +tests or docs development server. |
27 | 31 |
|
28 | 32 | ## Working on the docs |
29 | 33 |
|
30 | | -The docs are using Gatsby. To start development server run |
| 34 | +The docs are using Gatsby. To start development server run: |
31 | 35 |
|
32 | 36 | ```sh |
33 | | -yarn workspace docs start |
| 37 | +pnpm run dev:docs |
34 | 38 | ``` |
35 | 39 |
|
36 | 40 | Changes to libraries will immediately hot reload the docs. |
37 | 41 |
|
38 | 42 | ## Tests |
39 | 43 |
|
40 | | -Unit tests are run with [Jest][], and each package should include a `test/` directory with unit tests for that package. |
| 44 | +Unit tests are run with [Jest][], and each package should include a `test/` |
| 45 | +directory with unit tests for that package. |
41 | 46 |
|
42 | 47 | Running tests: |
43 | 48 |
|
44 | 49 | ```sh |
45 | | -yarn test |
| 50 | +pnpm test |
46 | 51 | ``` |
47 | 52 |
|
48 | 53 | Running tests in watch mode: |
49 | 54 |
|
50 | 55 | ```sh |
51 | | -yarn test --watch |
| 56 | +pnpm test --watch |
52 | 57 | ``` |
53 | 58 |
|
54 | | -You can specify what tests to run by passing test path pattern as the first positional argument and test name pattern after `-t` flag. |
| 59 | +You can specify what tests to run by passing test path pattern as the first |
| 60 | +positional argument and test name pattern after `-t` flag. |
55 | 61 |
|
56 | 62 | ```sh |
57 | | -yarn test core/test/react-jsx -t 'accepts sx prop' |
| 63 | +pnpm test core/test/react-jsx -t 'accepts sx prop' |
58 | 64 | ``` |
59 | 65 |
|
60 | 66 | ## Pull Requests |
61 | 67 |
|
62 | | -When opening a pull request, please be sure to update any relevant documentation in the READMEs or in the `packages/docs` directory. |
63 | | -Also include a high-level list of changes in the [CHANGELOG.md](CHANGELOG.md) file at the top under the `## Unreleased` heading. |
| 68 | +When opening a pull request, please be sure to update any relevant documentation |
| 69 | +in the READMEs or in the `packages/docs` directory. Also include a high-level |
| 70 | +list of changes in the [CHANGELOG.md](CHANGELOG.md) file at the top under the |
| 71 | +`## Unreleased` heading. |
64 | 72 |
|
65 | | -[yarn]: https://yarnpkg.com |
66 | | -[yarn workspaces]: https://yarnpkg.com/en/docs/workspaces |
67 | | -[lerna]: https://github.com/lerna/lerna |
| 73 | +[pnpm workspaces]: https://pnpm.io/workspaces |
| 74 | +[install pnpm]: https://pnpm.io/installation |
68 | 75 | [jest]: https://jestjs.io/ |
69 | | -[preconstruct]: https://preconstruct.tools/guides/using-preconstruct-dev-in-a-monorepo |
| 76 | +[preconstruct]: |
| 77 | + https://preconstruct.tools/guides/using-preconstruct-dev-in-a-monorepo |
0 commit comments