NX generators for Ronas IT projects.
At the moment this library contains the following generators:
-
repo-config
- setups the monorepo structure for React Native development. -
code-checks
- configures code checks and formatting with pre-commit hook. -
expo-app
- generates and configures Expo React Native app. -
react-lib
- generates a library according to NX notation. -
react-component
- creates a React component in particular library.
- Create monorepo with Expo app using NX preset:
npx create-nx-workspace@latest my-project --preset=expo --appName=my-app --e2eTestRunner=none --ci=skip
- Install this package:
npm i @ronas-it/nx-generators --save-dev
- Run generators:
npx nx g repo-config
npx nx g code-checks
npx nx g expo-app
Or run all generators at once:
npx nx g repo-config && npx nx g code-checks && npx nx g expo-app
- Start the app:
npx nx start my-app
- Continue developing your app by generating libraries and components:
npx nx g react-lib mobile/account/features/profile-settings --withComponent
npx nx g react-component
Each generator accepts the --help
argument to see generator instructions.
npx nx g react-lib --help