基于 Taro3 + React Hooks + TypeScript + Scss 的开箱即用的多端项目模版,预置 eslint + stylelint + prettier + commitlint + editorConfig 的代码规范体系,封装自定义 tabbar、自定义导航栏等必备组件,一键生成页面/组件/service文件模版,一键启动小程序调试,更多功能持续迭代中...
Overview
The taro3-react-template is a project template based on Taro3 and React. It is designed to provide an out-of-the-box solution for multi-platform projects. The template offers various features and follows a structured directory organization.
Features
- Based on Taro3: The template is built on top of Taro3, which allows for developing cross-platform applications.
- Supports React: The template integrates React, providing a familiar and powerful JavaScript library for building user interfaces.
- CSS Preprocessor (SCSS): The template supports the use of SCSS as a CSS preprocessor, providing enhanced styling capabilities.
- Fully developed in TypeScript: The template is entirely developed using TypeScript, ensuring type safety and improved code quality.
- Enterprise-level request class and interceptor encapsulation: The template includes a request class and interceptor system that is suitable for enterprise-level applications.
- Comprehensive code standardization system: The template incorporates various tools, including eslint, stylelint, markdownlint, prettier, commitlint, and editorConfig, to enforce a comprehensive code standardization system.
- Customizable tabbar: The template allows for the customization of the tabbar, providing flexibility in designing the app’s navigation.
- Optimized compilation speed using multi-core and caching: The template utilizes multi-core processing and caching techniques to improve the compilation speed of the project.
- Continuously iterating on more features: The template is regularly updated and improved, with a focus on adding new features to enhance project development.
Installation
To install the taro3-react-template, follow these steps:
- Clone the repository:
git clone [repository-url]
- Change to the project directory:
- Install the dependencies:
- Start the development server:
- Open your browser and visit
http://localhost:3000 to view the application.
Summary
The taro3-react-template is a Taro3 and React project template that provides a comprehensive starting point for building multi-platform applications. It includes various features such as React integration, support for CSS preprocessing, TypeScript development, and a code standardization system. The template also offers customization options for the tabbar and optimizations for compilation speed. With continuous iterations and updates, the template aims to facilitate and enhance the development process for multi-platform projects.