Skip to content

linguofeng/wxapp-typescript

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

使用TypeScript开发小程序

运行

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

开发

$ git clone git@github.com: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

Releases

No releases published

Packages

No packages published