All Projects → jamieYou → weapp-starter-kit

jamieYou / weapp-starter-kit

Licence: other
No description or website provided.

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects

Projects that are alternatives of or similar to weapp-starter-kit

SoundCloudMobx
No description or website provided.
Stars: ✭ 49 (+276.92%)
Mutual labels:  mobx
mobx-collection
Objects store for MobX
Stars: ✭ 14 (+7.69%)
Mutual labels:  mobx
taro-template
可用于生产环境的taro项目模版,技术栈:taro + taro-ui + typescript + dva / mobx + sass,无需过多关注项目配置,预置功能包括但不限于页面/组件/store/service模版一键生成/编译自动生成路由列表和组件入口/代码规范强制检查/请求拦截封装/小程序CI等,实现多端项目的高效快速开发。目前已有1.x / 2.x / 3.x 版本。
Stars: ✭ 59 (+353.85%)
Mutual labels:  mobx
flutter mobx boilerplate
A Flutter Project contains a Boilerplate code with MobX and Provider as a State Management.
Stars: ✭ 29 (+123.08%)
Mutual labels:  mobx
miniprogram-demo
FinClip 小程序演示,用于测试小程序中相关 API 与组件能力 / Mini-Program DEMO for FinClip
Stars: ✭ 49 (+276.92%)
Mutual labels:  mini-program
webpack-mpvue-startup
A template with webpack 3 + mpvue 1 setup for projects startup
Stars: ✭ 13 (+0%)
Mutual labels:  mini-program
NObservable
MobX like observable state management library with Blazor support
Stars: ✭ 66 (+407.69%)
Mutual labels:  mobx
osmosis-frontend
Web interface for Osmosis Zone
Stars: ✭ 117 (+800%)
Mutual labels:  mobx
react-mobx-antd-boilerplate
react16-router4--mobx-antd3--webpack4-boilerplate
Stars: ✭ 15 (+15.38%)
Mutual labels:  mobx
mengya
一个类知乎文章方面的应用项目
Stars: ✭ 14 (+7.69%)
Mutual labels:  mobx
taro-icons
基于 Taro 的小程序图标库
Stars: ✭ 53 (+307.69%)
Mutual labels:  mini-program
extjs-reactjs-examples
Code examples for ExtJS to React transition
Stars: ✭ 48 (+269.23%)
Mutual labels:  mobx
mobx-react-mvvm-example
React MVVM architecture powered by MobX.
Stars: ✭ 58 (+346.15%)
Mutual labels:  mobx
91 Python Mini Projects
No description or website provided.
Stars: ✭ 212 (+1530.77%)
Mutual labels:  mini-program
union
union login for wechat,weibo,qq,alipay with go
Stars: ✭ 23 (+76.92%)
Mutual labels:  mini-program
react-native-devtools-spy
Adds a Spy option to the React Native development menu
Stars: ✭ 14 (+7.69%)
Mutual labels:  mobx
mini-program-table
基于 WePY 实现的固定头和列的 table 组件,可根据自身需求进行修改扩展。
Stars: ✭ 14 (+7.69%)
Mutual labels:  mini-program
mobx-decorated-models
Decorators to create serialized model relations using Mobx
Stars: ✭ 18 (+38.46%)
Mutual labels:  mobx
electron-exhentai
No description or website provided.
Stars: ✭ 13 (+0%)
Mutual labels:  mobx
BLOG DESKTOP
Yancey Official Blog for PC.
Stars: ✭ 80 (+515.38%)
Mutual labels:  mobx

微信小程序开发脚手架

Installation

# 克隆仓库到指定的文件夹
$ git clone [email protected]:jamieYou/weapp-starter-kit.git
$ cd weapp-starter-kit
$ cp project.config.json.example project.config.json

Develop

  • 在项目根目录运行 yarn
  • 在项目根目录运行 yarn start
  • 打开微信Web开放者工具,将项目的跟目录导入进去,填写或选择相应信息

Script

yarn start //开发模式
NODE_ENV=xxx yarn build //部署 # NODE_ENV 默认为 production 
yarn lint // 用于 ci 的 esling 检查

css

  1. 使用 scss 作为开发语言
  2. 页面、组件以外的 scss 文件,请以 _ 开头或者放在 styles 目录

npm 支持

可以在 js 中引入 npm 的包

alias

通过 babel-plugin-module-resolver 支持 require 的路径别名配置

require('@/store') @指 src 的目录

wxp

全局变量 wxp,对 wx 的 api 进行 Promise 封装

环境变量

支持通过 .env 文件修改环境变量,参考

Observer

让页面和 mobx 结合使用

Observer.Page({
  state() {
    return {
      show: true,
      authStore,
      list: new Collection,
    }
  },
  computed: {
    get nickname() {
      return authStore.user.nickname
    }
  },
  onLoad() {
    // state 和 computed 设置到 this 上,并同步到 data
    this.authStore;
    this.nickname;
  }
})

支持页面、组件(Observer.Component)、Behavior(Observer.Behavior),其他参数按照官方文档即可

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].