All Projects → didilinkin → elf-taro

didilinkin / elf-taro

Licence: MIT license
Taro 小程序 脚手架 (Taro 3 + Dva + Typescript + Immer) - 内置 Redux 计数器, 异步数据请求 与 腾讯小程序地图 demo

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
stylus
462 projects

Projects that are alternatives of or similar to elf-taro

taro3-vue3-template
一个基于 Taro3 和 Vue3 框架微信小程序模版。 核心技术采用Taro3、Vue3、TypeScript、NutUi、Vux4/Pinia、VueUse
Stars: ✭ 115 (+88.52%)
Mutual labels:  wechat-mini-program, taro, taro-ui
gangxiaoer-taro
博雅塔小程序,基于Taro的版本,同步发布百度小程序,支付宝小程序。
Stars: ✭ 16 (-73.77%)
Mutual labels:  taro, taro-ui
taro-icons
基于 Taro 的小程序图标库
Stars: ✭ 53 (-13.11%)
Mutual labels:  taro, taro-ui
taro-weapp
🎮一款提供餐桌,酒桌上小游戏的小程序。
Stars: ✭ 28 (-54.1%)
Mutual labels:  taro, taro-ui
ui
We reinvent the UI for taro3+
Stars: ✭ 48 (-21.31%)
Mutual labels:  taro, taro-ui
taroCloud
记日常、GitHub trending资讯小程序 taro-hooks + rematch+云开发
Stars: ✭ 25 (-59.02%)
Mutual labels:  taro, taro-ui
patrick-wechat
⭐️🐟 questionnaire wechat app built with taro, taro-ui and heart. 微信问卷小程序
Stars: ✭ 74 (+21.31%)
Mutual labels:  wechat-mini-program, taro
taroify
Taroify 是移动端组件库 Vant 的 Taro 版本,两者基于相同的视觉规范,提供一致的 API 接口,助力开发者快速搭建小程序应用。
Stars: ✭ 420 (+588.52%)
Mutual labels:  taro, taro-ui
Taro-ParserRichText
适用于 Taro 的小程序富文本组件
Stars: ✭ 32 (-47.54%)
Mutual labels:  wechat-mini-program, taro
Taro Ui
一款基于 Taro 框架开发的多端 UI 组件库
Stars: ✭ 3,806 (+6139.34%)
Mutual labels:  wechat-mini-program, taro
taro-template
可用于生产环境的taro项目模版,技术栈:taro + taro-ui + typescript + dva / mobx + sass,无需过多关注项目配置,预置功能包括但不限于页面/组件/store/service模版一键生成/编译自动生成路由列表和组件入口/代码规范强制检查/请求拦截封装/小程序CI等,实现多端项目的高效快速开发。目前已有1.x / 2.x / 3.x 版本。
Stars: ✭ 59 (-3.28%)
Mutual labels:  taro, taro-ui
natsuha-weather
Natsuha Weather for WeChat Mini Program.
Stars: ✭ 33 (-45.9%)
Mutual labels:  wechat-mini-program, taro
taroWxParse
taro框架wxParse纯净封装组件,来源于项目实战,随下随用
Stars: ✭ 24 (-60.66%)
Mutual labels:  taro, taro-ui
classmate-map
🧭 一款设计精美、体验优良的地图信息展示小程序,一个更有意思的同学录,可以在小程序中查看班级同学的毕业去向以及地域分布,多联(蹭)系(饭)。
Stars: ✭ 79 (+29.51%)
Mutual labels:  wechat-mini-program, taro
Taro
开放式跨端跨框架解决方案,支持使用 React/Vue/Nerv 等框架来开发微信/京东/百度/支付宝/字节跳动/ QQ 小程序/H5/React Native 等应用。 https://taro.zone/
Stars: ✭ 30,230 (+49457.38%)
Mutual labels:  wechat-mini-program, taro
TaroCreator
微信小程序 小程序模板 小程序可视化设计工具 Taro Taro UI
Stars: ✭ 60 (-1.64%)
Mutual labels:  taro, taro-ui
lodash-loader
Cherry-picks Lodash functions and require them explicitly to reduce the webpack bundle size.
Stars: ✭ 13 (-78.69%)
Mutual labels:  lodash
quick-redux
helper functions to make redux and react development quicker
Stars: ✭ 61 (+0%)
Mutual labels:  immer
taro-yanxuan
首个 Taro 多端统一实例 - 网易严选(小程序 + H5 + React Native) - By 趣店 FED
Stars: ✭ 2,527 (+4042.62%)
Mutual labels:  taro
nstate
A simple but powerful react state management library with low mind burden
Stars: ✭ 11 (-81.97%)
Mutual labels:  immer

elf-taro-cli

Elf 基于 Taro 的 小程序 脚手架

Taro-cli version: Taro v3.0.0-rc.6

主要功能

  • dva
  • 异步请求
  • 腾讯地图 示例
  • Typescript

预览项目

# 全局安装taro脚手架
npm install -g @tarojs/cli
# 安装依赖
yarn install

# 小程序 预览模式 => 用 小程序开发工具 打开 ./dist 文件夹 即可预览
yarn dev:weapp

打包项目

# 打包完成的小程序 文件在 ./dist 文件夹内
yarn build:weapp

注意事项

  • 本项目拉取到本地后, “小程序开发工具” 请打开 “不校验合法域名”! 方便查看 请求效果

常见错误

  1. 开发环境版本不相同

    Taro 版本升级权威指南

    taro update self 的更新好像不管用

目录结构

├── dist/                       // 微信小程序编译结果目录
├── config/                     // Taro 配置目录
│   ├── dev.js                  // 开发时配置
│   ├── index.js                // 默认配置
│   └── prod.js                 // 打包时配置
├── src/                        // 源码目录
│   ├── components/             // 公共组件
│   └── dvaCore/                // dva-core 配置
│       └── index.ts
│   └── models/                 // 全局 models
│       └── index.ts
│   ├── pages                   // 页面文件目录
│   │   └── index
│   │       ├── model/          // 业务逻辑 (Dva model)
│   │       ├── index.tsx       // 页面逻辑
│   │       └── index.styl      // 页面样式
│   ├── services/               // 全局模块请求
│   ├── utils                   // 常用工具类
│   ├── app.js                  // 入口文件
│   └── index.html
├── global.d.ts                 // 全局类型配置
└── package.json                // 项目依赖

TODO

  • 用户信息读取
  • components 功能
  • dva-model-extend

项目版本升级

# 1. 更新 Taro CLI 工具:
npm i -g @tarojs/cli@latest

# 2. 更新项目中 Taro 相关的依赖:
taro update project

# 3. 删除原来的node_modules后重新安装依赖(注意):
cnpm install

已配置的依赖

名称 库名称 用途
Taro @tarojs/taro 基础库
Taro-UI taro-ui 样式库
Dva dva-core 基于 redux 和 redux-saga 的数据流方案
Immer dva-immer immer 不可变结构
Lodash lodash 函数库

开发环境的依赖

名称 库名称 用途
Typescript typescript JS 超集语言
ESLint eslint 规范检查
Prettier prettier 代码格式化
cz-customizable cz-customizable Git commit 规范化

特别鸣谢

库名称 用途
taro-request 封装 Taro.request(拦截器,url 配置,Authorization 等)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].