CLI Tools
Generators
yarn generate
Generators in this template are used to create boilerplate Component
and redux toolkit sices
Codes. You can also run yarn generate <part>
to skip the initial CLI input.
Setters
yarn set
This command is used to set native related assets for your app. One pain point of working with react native is generating app icons with their corresponding platform size guidelines. By using this command you will be able to generate both Android and IOS app icons as well as splash screen icons based on the platform recommended size guideline just from one picture.
Git Hooks
yarn init-husky
This command will initiate a new git repository for your project if it doesn't exist currently and sets up husky so you can utilize pre commit and push hooks.
Unit Testing
yarn test
Unit tests specified in the */tests/.ts files throughout the application are run.
Linting
yarn lint
Lints your typescript code.
yarn lint:fix
Tries to fix lint issues in src
directory.
Typescript
yarn checkTs
Checks for typescript errors in the code base.
Last updated
Was this helpful?