More Premium Hugo Themes Premium Vue Themes

Taro2 Template

可用于生产环境的taro项目模版,技术栈:taro + taro-ui + typescript + dva / mobx + sass,无需过多关注项目配置,预置功能包括但不限于页面/组件/store/service模版一键生成/编译自动生成路由列表和组件入口/代码规范强制检查/请求拦截封装/小程序CI等,实现多端项目的高效快速开发。目前已有1.x / 2.x / 3.x 版本。

Taro2 Template

可用于生产环境的taro项目模版,技术栈:taro + taro-ui + typescript + dva / mobx + sass,无需过多关注项目配置,预置功能包括但不限于页面/组件/store/service模版一键生成/编译自动生成路由列表和组件入口/代码规范强制检查/请求拦截封装/小程序CI等,实现多端项目的高效快速开发。目前已有1.x / 2.x / 3.x 版本。

Author Avatar Theme by lexmin0412
Github Stars Github Stars: 62
Last Commit Last Commit: Feb 27, 2022 -
First Commit Created: Jun 19, 2023 -
Taro2 Template screenshot

Overview

The Taro 2.x project template is a long-term maintained template based on Taro 2.x. It also provides versions 1.x and 3.x (based on React) for selection. The template includes features such as navigation, project structure, development, compilation, and deployment. It also supports TypeScript, Sass, UI library (taro-ui), state management (mobx), asynchronous programming (async/await), font importing (iconfont), and interface requests.

Features

  • TypeScript: Supports TypeScript for development.
  • Sass: Allows global injection of common style files.
  • UI Library (taro-ui): Includes a UI library for use in the project.
  • State Management (mobx): Includes state management using MobX.
  • Asynchronous Programming (async/await): Supports asynchronous programming using async/await.
  • Font Importing (iconfont): Allows importing of custom fonts using iconfont.
  • Interface Requests: Includes a request class and interceptors for handling interface requests.
  • Development Environment Proxy: Supports local proxy for development environment (h5 platform).
  • Debugging: Includes vconsole for debugging purposes.
  • Engineering Features: Includes global variables, plugins, and environment variable checks.
  • Component Library (taro-xui): Includes a custom component library for use in the project.
  • Utils Library (wtils): Includes a custom utility library for use in the project.

Installation

To install the Taro 2.x project template, follow these steps:

  1. Clone the repository from the GitHub page.
  2. Run npm install or yarn install to install the necessary dependencies.
  3. Customize the template as needed.

Summary

The Taro 2.x project template is a comprehensive template for developing projects using Taro 2.x. It includes features such as TypeScript support, Sass styling, a UI library (taro-ui), state management using MobX, and asynchronous programming using async/await. It also provides tools for interface requests, debugging, and engineering features such as global variables, plugins, and environment variable checks. Additionally, it includes a custom component library (taro-xui) and a utility library (wtils) for use in the project. Overall, it offers a robust framework for developing Taro 2.x projects.