GithubHelp home page GithubHelp logo

linguofeng / wxapp-typescript Goto Github PK

View Code? Open in Web Editor NEW
22.0 3.0 11.0 661 KB

使用TypeScript开发微信小程序

Home Page: https://github.com/linguofeng/wets

JavaScript 56.07% TypeScript 43.93%
wxapp typescript redux

wxapp-typescript's Introduction

使用TypeScript开发小程序

运行

使用微信web开发者工具新建一个小程序项目,项目目录选择dist目录,该目录是ts源文件编译后存放的目录。

开发

$ git clone [email protected]:linguofeng/wxapp-typescript.git
$ cd wxapp-typescript
$ npm install -g gulp typescript
$ yarn
$ code .
$ gulp watch

主要原理

通过Gulp工具调用tsc编译ts源文件,其它文件通过gulp的watch进行拷贝。

第三库是通过package.json文件描述,拷贝相关文件到dist/libs,并修改require引用的路径实现。

TODOS:

  • 加入第三方库支持
  • 支持Redux
  • 支持rxjs
  • 支持moment
  • 支持bluebird
  • 支持redux-observable

wxapp-typescript's People

Contributors

linguofeng avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

wxapp-typescript's Issues

code . 是什么意思

$ git clone [email protected]:linguofeng/wxapp-typescript.git
$ cd wxapp-typescript
$ npm install -g gulp typescript
$ yarn
$ code .
$ gulp watch

code 是使用的什么命令工具?

bindViewTap

在 index 里面 bindtap="bindViewTap"

WAService.js:5 Do not have bindViewTap handler in current page: pages/index/index. 

Please make sure that bindViewTap handler has been defined in pages/index/index,

 or pages/index/index has been added into app.json

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.