Skip to content

Commit b85d59d

Browse files
committed
feat: remove one doc link from contributing
1 parent 9f995f2 commit b85d59d

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

packages/create-react-native-library/templates/common/CONTRIBUTING.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,27 @@ yarn
1818
```
1919

2020
> Since the project relies on Yarn workspaces, you cannot use [`npm`](https://github.com/npm/cli) for development.
21+
<% if (project.moduleConfig === 'nitro-modules') { -%>
2122
22-
The [example app](/example/) demonstrates usage of the library. You need to run it to test any changes you make.
23+
This project uses Nitro Modules. If you're not familiar with how Nitro works, make sure to check the [Nitro Modules Docs](https://nitro.margelo.com/).
2324

24-
It is configured to use the local version of the library, so any changes you make to the library's source code will be reflected in the example app. Changes to the library's JavaScript code will be reflected in the example app without a rebuild, but native code changes will require a rebuild of the example app.
25-
<% if (project.moduleConfig === 'nitro-modules') { -%>
25+
You need to run the code generation process using [Nitrogen](https://nitro.margelo.com/docs/nitrogen) to generate the boilerplate-heavy code required for this project. Without this step, the example apps will not build.
26+
27+
Run **Nitrogen** in the following cases:
28+
- When you make changes to any `*.nitro.ts` files.
29+
- When running the project for the first time (since the generated files are not committed to the repository).
30+
31+
To invoke **Nitrogen**, use the following command:
2632

27-
This project uses [Nitro Modules](https://nitro.margelo.com/). If you're not familiar with how Nitro works, make sure to check the [Nitro Modules Docs](https://nitro.margelo.com/).
33+
```sh
34+
yarn nitrogen
35+
```
2836
<% } -%>
2937

38+
The [example app](/example/) demonstrates usage of the library. You need to run it to test any changes you make.
39+
40+
It is configured to use the local version of the library, so any changes you make to the library's source code will be reflected in the example app. Changes to the library's JavaScript code will be reflected in the example app without a rebuild, but native code changes will require a rebuild of the example app.
41+
3042
<% if (project.native) { -%>
3143
If you want to use Android Studio or XCode to edit the native code, you can open the `example/android` or `example/ios` directories respectively in those editors. To edit the Objective-C or Swift files, open `example/ios/<%- project.name -%>Example.xcworkspace` in XCode and find the source files at `Pods > Development Pods > <%- project.slug -%>`.
3244

0 commit comments

Comments
 (0)