npm install -g typescript tsd coffee-script grunt-cli karma-cli
如有必要,使用 sudo npm
在项目根目录下执行:
npm install
bower install
tsd install // 本地有 typings 时可忽略
grunt karma
grunt build
grunt release
grunt connect
http://localhost:8181
执行grunt build前将app.config文件中的serverUrl和appkey改为自己应用的值
https://github.com/Microsoft/TypeScript/wiki/Coding-guidelines
1.修改/src/assets/app.config 中serverUrl和appkey的值(ServerUrl为后台Server地址,AppKey为从融云注册的应用key)
2.项目根目录执行命令 grunt release
3.将dist目录下的文件以静态文件形式部署在服务器上。程序入口页面index.html。