2.1.0 โ€ข Published 16 days ago

react-native-awesome-template v2.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
16 days ago

react-native-awesome-template

A React Native starter template to have a better product and development experience

๐Ÿ“ข Introduction (Why?)

When developing a real-world application, more careful consideration is required. This becomes even more apparent when a team, comprising developers with varying levels of expertise, works on a project.

Whether collectively or individually, maintaining the application necessitates adherence to specific rules to uphold project quality and minimize issues. Therefore, the purpose of this template, which centers on the development setup, is to aid in achieving the goal by providing essential configuration and addressing concerns, ultimately resulting in a better product.

๐Ÿ’ซ Features

  • ๐Ÿถ Configuring husky, a popular Git hook tool, simplifies the setup and management of pre-commit hooks. Currently, pre-commit, pre-push, and commit-msg hooks have configured.

  • ๐Ÿ’… Configuring lint-staged allows for code linting before committing, ensuring that no errors make their way into the repository and enforcing consistent code style.

  • โœ๏ธ Configuring commitlint enables linting of commit messages, enforcing a consistent format that promotes clarity and understanding the changes made to your project.

  • ๐Ÿงน Removing logs in production mode improves performance and prevents potential concerns that may arise from logging.

  • ๐Ÿ—‚๏ธ Setting up configuration for paths with the @/ absolute prefix provides a better and more convenient experience when importing files.

๐Ÿ“€ Installation

Step 1

npx react-native init MyApp --template react-native-awesome-template

Or specific version

npx react-native init MyApp --template react-native-awesome-template@1.6.0
VersionReact Native
v2.0.0v0.74.0
v1.7.0v0.73.7
v1.6.0v0.73.6

Step 2

On the terminal in the project path run the following command to initialize husky:

yarn prepare

//or

npm run prepare

๐Ÿ›ก๏ธ License

MIT