TypeScript 开发微信小程序 WXapp-typescript

码农软件 · 软件分类 · 微信/微信小程序 · 2019-03-13 21:58:13

软件介绍

使用 TypeScript 开发小程序

运行

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

开发

$ git clone git@git.oschina.net: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:

- [x] 加入第三方库支持

- [x] 支持Redux

- [x] 支持rxjs

- [x] 支持moment

- [x] 支持bluebird

- [x] 支持redux-observable

本文地址:https://www.codercto.com/soft/d/1290.html

Types and Programming Languages

Types and Programming Languages

Benjamin C. Pierce / The MIT Press / 2002-2-1 / USD 95.00

A type system is a syntactic method for automatically checking the absence of certain erroneous behaviors by classifying program phrases according to the kinds of values they compute. The study of typ......一起来看看 《Types and Programming Languages》 这本书的介绍吧!

SHA 加密
SHA 加密

SHA 加密工具

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换

HSV CMYK 转换工具
HSV CMYK 转换工具

HSV CMYK互换工具