Fork the repository and clone it to your workspace. Then add this repository as the upstream repository:
git remote add upstream https://github.com/jhipster/generator-jhipster-react-native.git
During development of blueprint, please note the below steps. They are very important.
- Link your blueprint globally
cd generator-jhipster-react-native
npm link
- Link a development version of JHipster to your blueprint (optional: required only if you want to use a non-released JHipster version, like the main branch or your own custom fork)
cd generator-jhipster
npm link
cd generator-jhipster-react-native
npm link generator-jhipster
Generating an app using your local generator-jhipster-react-native
blueprint is similar to normal.
jhipster --blueprints react-native
It's recommended to create and test the changes in a generated app, then transfer the changes to the boilerplate files. Use git
to help track your progress.
When generating an app, make sure to link the blueprint after installing node_modules
.
# in your generated app folder
npm link generator-jhipster-react-native
After linking generator-jhipster-react-native
, running any of the subgenerators (such as entity
or jdl
) will use your local blueprint code.