Giter VIP home page Giter VIP logo

taco-cli's Introduction

As of March 2019, this repo is no longer maintained by Microsoft. If you're interested in continuing this project, please feel free to fork it. As of March 2019, we will no longer monitor or respond to open issues. Thanks for your support!


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.

Code of conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

taco-cli's People

Contributors

alebelcor avatar digeff avatar drewgillies avatar guillaumejenkins avatar guiserrato avatar happylab-jenkins avatar jmatthiesen avatar joshuaskelton avatar leotlee avatar meenakb avatar mslaguana avatar newtonjain avatar nisheetjain avatar omefire avatar rido-min avatar ridomin avatar subhagpo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

taco-cli's Issues

Remote build error from the build server Build failed with error Failed to fetch plugin cordova-plugin-vs-taco-support via registry.

I am using taco for remote build my cordova project after connecting to mac and when build started this error occures
TACO5629: Remote build failed
Inner Error:
Remote build error from the build server Build failed with error Failed to fetch plugin cordova-plugin-vs-taco-support via registry.
Probably this is either a connection problem, or plugin spec is incorrect.
Check your connection and plugin name/version/URL.
Error: npm: Command failed with exit code 254 Error output:
npm WARN checkPermissions Missing write access to /Users/jobeamusa/.taco_home/remote-builds/taco-remote/builds/943/cordovaApp/node_modules/cordova-plugin-whitelist
npm ERR! path /Users/jobeamusa/.taco_home/remote-builds/taco-remote/builds/943/cordovaApp/node_modules/cordova-plugin-whitelist
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall access
npm ERR! enoent ENOENT: no such file or directory, access '/Users/jobeamusa/.taco_home/remote-builds/taco-remote/builds/943/cordovaApp/node_modules/cordova-plugin-whitelist'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.