Coder Social home page Coder Social logo

miniprogrma_cli's Introduction

小程序脚手架

主要功能

  • 解决单个项目,多个环境对多个小程序切换的问题
  • 后续会支持sass开发,压缩和混淆代码,以及通用小组件
  • 如果此脚手架不满足需求,欢迎各位提到Issues

项目

git clone https://github.com/nanxiaodi/miniProgrma_CLI.git
cnpm install 
在src目录下分别有 project.dev.config.json project.prod.config.json project.uat.config.json 分别对应开发,生产,uat小程序 project.config.json配置
gulp build --env dev (此命令用于开发,生成devDist,加入了热更新功能)
gulp build --env prod (此命令用于打包生产包,生成prodDist目录,无热更新功能)
gulp build --env uat (此命令用于打包uat包,生成uatDist目录,无热更新功能)

更新内容 2020/1/19

  • 新增局部更新代码
  • 新增全局管理状态 store
    const app = getApp();
    app.store.getState() // 获取全局变量
    app.store.setState({}) // 修改全局变量 
    
  • 新增建立watch方法 调用app.js的setWatch方法

miniprogrma_cli's People

Contributors

dependabot[bot] avatar song-yinan avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

li-qishan

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.