Git Product home page Git Product logo

taro-scaffold's Introduction

开箱即用 taro 框架

版本

  tarojs@3.0.9
  taro-ui@3.0.0-alpha.3
  react@16.13.1
  mobx@4.15.6

多环境部署

build-test:weapp
build-stage:weapp
build-prod:weapp

分别对应测试,预发布和线上;可在utils/constant中配置各环境接口 host

CDN 上传

yarn upload-cdn

使用阿里云的 cdn 和 gulp 把cdn/src中图片上传到阿里云指定目录中

详情可查看/cdn/README.md

自定义处理命令

在开发过程中,经常碰到需要真机调试的情况,此时直接预览会超过2mb打包限制

本模版提供yarn compress自定义命令,使用gulp build在预览之前打包,提供了开发中真机调试功能。

Tips: 此功能不稳定,经测试,需先build后 ==> 命令行编译 ==> 预览

开发功能增强

  • kill.sh 微信开发者工具偶尔会在后台hold server,sh kill.sh 杀掉端口

数据管理

  • mobx4
  • useImmer

组件库

  • taro-ui

  • 自定义组件

    • 自定义头部导航
    • 滚动列表
    • 页面带登录弹窗
    • 页面带登录状态判断
    • 空数据组件
    • 精确到分钟datepicker
    • menu图标组件
    • 登录弹窗
    • 伪tab header

taro-scaffold's People

Contributors

yellowpure avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.