You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CONTRIBUTING.md
+20-25Lines changed: 20 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,77 +4,73 @@ We want this community to be friendly and respectful to each other. Please follo
4
4
5
5
## Development workflow
6
6
7
-
To get started with the project, run `yarn bootstrap` in the root directory to install the required dependencies for each package and locally link the library:
7
+
This project uses [yarn workspaces](https://yarnpkg.com/features/workspaces).
8
+
9
+
To get started with the project, run `yarn` in the root directory to install the required dependencies for all packages and examples:
8
10
9
11
```sh
10
-
yarn bootstrap
12
+
yarn
11
13
```
12
14
13
-
> While it's possible to use [`npm`](https://github.com/npm/cli), the tooling is built around [`yarn`](https://classic.yarnpkg.com/), so you'll have an easier time if you use `yarn` for development.
14
-
15
-
While developing, you can run the [example app](/example/example) and [next app with ssr](/example/next-example) to test your changes. Any changes you make in the library's JavaScript code will be reflected in the example app without a rebuild. If you change any macro code, then you'll need to rebuild the macro using:
15
+
While developing, you can run the [expo app](/examples/expo) and [next app with ssr](/examples/next) to test your changes. For changes in `react-native-tailwind.macro` to take effect in the example apps, you need to rebuild the library using:
16
16
17
17
```sh
18
-
yarn prepare
19
-
20
-
# In the expo example directory
21
-
yarn clean
22
-
23
-
# In the next example directory
24
-
yarn clean
18
+
yarn workspace react-native-tailwind.macro build
25
19
```
26
20
21
+
If you changed any macro code, make sure to restart the example projects in order to clean the babel cache.
22
+
27
23
Make sure your code passes TypeScript and ESLint. Run the following to verify:
0 commit comments