• UID12
  • 登录2016-06-14
  • 粉丝111
  • 关注50
  • 发帖1415
  • 主页
  • 金币8544枚
社区居民
最爱沙发
忠实会员
喜欢达人
原创写手
极分享 发布于2016-06-02 15:37
1/968

来自微软的一款开源Cordova 跨平台开发工具

楼层直达

来自微软的一款开源Cordova 跨平台开发工具

 

源码:https://github.com/Microsoft/TACO

 

What is TACO?

The Tools for Apache Cordova – "TACO" for short – provide a set of command line utilities that make hybrid app development easier, friendlier, and faster.

For developers new to Cordova, TACO makes it crazy-easy to setup your dev environment so you can begin coding immediately. The install-reqs utility downloads, installs and configures all the build tools you need for each mobile platform. Once you’ve started coding, TACO makes life a little sweeter by providing a gentle nudge toward the most likely “next steps” and best practices. If you’re looking for a safety blanket, TACO has one of those, too. “TACO Kits” provide a set of validated open source components (e.g. platforms, build tools and plugins) so you don’t have to wade through the morass of download stats, star ratings and open issues to know which components are both stable and compatible with your app. Since building for iOS platform requires a Mac, TACO also provides a utility to connect to a remotebuild server, so that you can build iOS projects from your Windows machine.

Faster setup. Friendlier command line. Validated quality at run-time. TACO is your friend.

Quick Start

Using TACO, start building awesome Apache Cordova apps really quickly by following these steps:

1. Install the tools:

Make sure you have Node.js installed. Note: Latest version of NodeJS has issues with iOS build

Run the following command to install the latest version of TACO:

npm install -g taco-cli

Note: On OSX and Linux, you may need to prefix this command with sudo

2. Create a new app:

taco create myAwesomeApp

3. Navigate to the directory of your new project:

cd myAwesomeApp

4. Add the Android platform:

taco platform add android

5. (Optional) Check for any missing Android dependencies:

taco install-reqs android

6. Build for Android:

taco build android

7. Run the app on the Android emulator:

taco emulate android

After a few moments, your app will be running inside the Android emulator in all its awesomeness. The steps to build for Windows and iOS are very similar, but this should help you get started.

Remember, when in doubt, just type:

taco help

Community

Development

In order to build the TACO packages, ensure that you have Git and Node.js installed.

Clone a copy of the repo:

git clone https://github.com/Microsoft/TACO.git

Change to TACO directory:

cd TACO

Install dev dependencies

npm install

Building TACO

TACO uses gulp based build system. To build TACO packages, simply run following command from root folder

gulp

Above command will build and install TACO packages. It will also create a globally-installed symbolic link ("npm link") to TACO packages

Running TACO

Once TACO has been built and linked properly, you can use TACO packages from globally-installed symbolic link

  • To run taco-cli run
taco
  • Similarly to run remotebuild run
remotebuild

Running tests

Please run following to make sure all tests are passing

gulp run-tests

Getting tests coverage

To check test coverage, please run following command

gulp coverage

Coding guidelines

TACO uses tslint rules specified in tslint.json. Run following command to make sure code is tslint clean

gulp tslint

LICENSE

TACO is licensed under the MIT Open Source license.


0人打赏
  • UID7461
  • 登录2016-06-08
  • 粉丝1
  • 关注0
  • 发帖211
  • 主页
  • 金币191枚
社区居民
忠实会员
android_chao 发布于2016-06-03 11:18
沙发F
不错工具,多谢分享
您需要登录后才可以回帖
发表回复
极贡献
技术问答
专题荟萃
程序人生
视觉设计
Android开发
iOS开发
编程语言
前端开发
后端开发
服务器架构
软件测试
运维方案
创业路上



最热文章墙

  • 68838/364   【精品推荐】200多种Android动画效果的强悍框架,太全了,不看这个,再有动画的问题,不理你了^@^

  • 38920/190   情人节福利,程序员表白的正确姿势:改几行代码就变成自己的表白了

  • 36007/0   Python爬虫:常用浏览器的useragent

  • 35820/255   【精品推荐】Android版产品级的音乐播放器源码,功能太强大了,最好的产品原型有木有?

  • 35227/145   省时省力的Android组件群来了,非常棒的原型参考

  • 27843/2   超全!整理常用的iOS第三方资源

  • 26905/71   原创表白APP,以程序员的姿势备战新年后的7夕,持续完善中!

  • 26478/142   2016抢红包软件及源码

  • 21495/30   麻省理工的一帮疯子,真的实现了随意操控万物!(绝对黑科技)

  • 21159/25   Android工程师面试题大全

  • 20907/27   2016程序员跳槽全攻略

  • 20709/9   GitHub上排名前50的iOS项目:总有一款你用得着

  • 20526/155   Android版类似UC浏览器:非常赞,产品级的源码

  • 19785/20   码魂:程序员的牛B漫画

  • 18064/10   2016年最全的Android面试考题+答案 精编版

  • 17824/3   吐槽那些程序员的搞笑牛逼注释

  • 17076/42   一个绚丽的loading动效分析与实现!

  • 16878/85   Android小而全的博客源码:非常适合全面掌握开发技巧

  • 16832/73   【持续更新中】Android福利贴(二):资料源码大放送

  • 16792/1   iOS 动画总结

  • 16036/45   惊艳的App引导页:背景图片切换加各个页面动画效果

  • 15817/23   个人收集的Android 各类功能源代码

  • 15604/10   女程序员的梦,众网友的神回复

  • 15366/5   新一代Android渠道打包工具:1000个渠道包只需要5秒

  • 15309/11   年会上现场review代码是怎么样的体验!

  • 15217/81   仿京东商城客户端Android最新版,不错的原型和学习资料

  • 14818/53   基于瀑布流的美女图片浏览App,有注释的源代码

  • 14777/23   珍藏多年的素材,灵感搜寻网站

  • 14766/101   Android带弹幕的视频播放器源码,来自大名鼎鼎的Bilibili弹幕网站

  • 14693/17   用JavaScript 来开发iOS和Android 原生应用:React Native开源框架中文版来啦

  • 14622/20   Android福利第三波【Android电子书】

  • 14179/76   【精品推荐】类似360安全卫士安Android源码:非常赞的产品原型

  • 13904/0   iOS中文版资源库,非常全

  • 13834/15   基于Android支付宝支付设计和开发方案

  • 13797/18   65条最常用正则表达式,你要的都在这里了

  • 13304/17   什么是真正的黑客:收获12200+Stars,人气远超微软开源VS

  • 12953/11   有木有这样一张酷图帮你集齐所有git命令超实用

  • 12633/7   一张图搞定iOS学习路线,非常全面

  • 12571/7   用程序员的姿势抢过年的火车票

  • 12405/46   在线音乐播放器完整版(商用级的源码):非常赞,可听免费高品质专辑

  • 12274/10   成为Java顶尖程序员 ,看这11本书就够了

  • 12096/10   微信支付终于成功了(安卓,iOS),在此分享

  • 12007/18   一张图搞定Android学习路线,非常全面

  • 11842/0   GitHub iOS 库和框架Top100 

  • 11766/3   基于Node.js的强大爬虫,能直接发布抓取的文章哦

  • 11551/61   【技巧一】搭配Android Studio,如何实现App远程真机debug?

  • 11549/29   【持续更新中】Android福利贴(一):资料源码

  • 10972/4   46 个非常有用的 PHP 代码片段

  • 10851/3   即时通信第三方库

  • 10539/8   流媒体视频直播方案

  • 10404/9   B站建开源工作组:APP想支持炫酷弹幕的看过来

  • 10380/18   八个最优秀的Android Studio插件

  • 10267/9   烧了5亿美金,这家神秘的公司即将颠覆人类未来!

  • 10075/2   【精品推荐】高质量PHP代码的50个实用技巧:非常值得收藏

  • 10056/10   中国黑客的隐秘江湖:攻守对立,顶尖高手月入千万美元

  • 9488/6   开箱即用!Android四款系统架构工具

  • 9316/10   十大技巧快速提升Android应用开发性能

  • 9259/3   10款GitHub上最火爆的国产开源项目——可以媲美西半球

  • 9217/3   一张图看清Linux 内核运行原理

  • 8999/1   Android性能优化视频,文档以及工具

  • 返回顶部