Skip to content

Commit 4f4eb1b

Browse files
committed
feat: add dev nextjs-nativewind script in root + update README
1 parent b1615d3 commit 4f4eb1b

File tree

2 files changed

+28
-45
lines changed

2 files changed

+28
-45
lines changed

README.md

+27-45
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,33 @@ RN Primitives provides unstyled components, offering a high degree of customizat
1010

1111
Accessibility is a significant focus within RN Primitives. We are dedicated to ensuring our components align with accessibility standards. Our ongoing efforts involve designing and testing components with appropriate labels, roles, and behaviors, aiming to provide an inclusive user experience.
1212

13+
### Getting started for contributors
14+
15+
1. Fork, clone, and install the dependencies with `pnpm`
16+
17+
```bash
18+
pnpm i
19+
```
20+
21+
2. Build and watch all of the primitive packages:
22+
23+
> This builds all of the primitive packages, it watches them for changes. This prevents the need to run the `build` command every time a primitive file is changed.
24+
25+
```bash
26+
pnpm dev:primitives
27+
```
28+
29+
3. Start the app of your choice:
30+
31+
```bash
32+
# Start the Expo NativeWind app
33+
pnpm dev:expo-nativewind
34+
# Or start the Nextjs NativeWind app
35+
pnpm dev:nextjs-nativewind
36+
# Or the Documentation app
37+
pnpm dev:docs
38+
```
39+
1340
### Primitives
1441

1542
#### Core
@@ -49,48 +76,3 @@ Accessibility is a significant focus within RN Primitives. We are dedicated to e
4976
- `slot`
5077
- `types`
5178
- `utils`
52-
53-
### Getting started for contributors
54-
55-
1. Fork, clone, and install the dependencies with `pnpm`
56-
57-
```bash
58-
pnpm i
59-
```
60-
61-
2. Build and watch all of the primitive packages:
62-
63-
> This builds all of the primitive packages, it watches them for changes. This prevents the need to run the `build` command every time a primitive file is changed.
64-
65-
```bash
66-
pnpm dev:primitives
67-
```
68-
69-
3. Start the app of your choice:
70-
71-
```bash
72-
# Start the Expo NativeWind app
73-
pnpm dev:expo-nativewind
74-
# Or the Documentation app
75-
pnpm dev:docs
76-
```
77-
78-
### Trying out the Expo NativeWind app
79-
80-
1. Clone, and install the dependencies with `pnpm`
81-
82-
```bash
83-
pnpm i
84-
```
85-
86-
2. Build all of the primitive packages:
87-
88-
```bash
89-
pnpm build
90-
```
91-
92-
3. Start the expo-nativewind app
93-
94-
```bash
95-
pnpm dev:expo-nativewind
96-
```

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"dev": "turbo dev --concurrency=34",
66
"dev:primitives": "turbo dev --filter=./packages/* --concurrency=33",
77
"dev:expo-nativewind": "turbo dev --filter=./apps/expo-nativewind",
8+
"dev:nextjs-nativewind": "turbo dev --filter=./apps/nextjs-nativewind",
89
"dev:docs": "turbo dev --filter=./apps/docs",
910
"lint": "turbo lint",
1011
"test": "turbo test",

0 commit comments

Comments
 (0)