A WeApp project template in TypeScript using VS Code
VS Code下基于TypeScript的微信小程序项目模板
This is a WeApp project template using TypeScript
使用TypeScript的微信小程序项目模板
-
Install dependencies with command
npm install
-
Build the project with command
gulp
-
All files are built into a dist folder so it is the
dist
folder which will be referenced in Wexin dev tool for a WeApp instead of theproject folderor the folder ofsrc
-
所有文件都被编译到 dist 文件夹下 所以在微信开发者工具中应该引用
dist
文件夹 而不是项目文件夹或者src
文件夹 -
These VS Code extensions is recommeded to be installed:
-
推荐安装下列VS Code插件:
-
It is strongly recommeded to get the TypeScript declaration file for WeApp API:
-
墙裂推荐
- With
npm
installed (which is already stored in package.json)
npm install typed-we-app --save-dev
- With
typings
installed
typings install github:Emeryao/typed-we-app -SG
- With
2017.07.13