An open API service indexing awesome lists of open source software.

https://github.com/meteor/cordova-lib

Mirror of Apache Cordova
https://github.com/meteor/cordova-lib

Last synced: 5 months ago
JSON representation

Mirror of Apache Cordova

Awesome Lists containing this project

README

        

[![Build status](https://ci.appveyor.com/api/projects/status/q9s459ssqvs1t7j6/branch/master)](https://ci.appveyor.com/project/Humbedooh/cordova-lib)
[![Build Status](https://travis-ci.org/apache/cordova-lib.svg?branch=master)](https://travis-ci.org/apache/cordova-lib)
[![NPM](https://nodei.co/npm/cordova.png)](https://nodei.co/npm/cordova/)

[BuildBot waterfall](http://ci.cordova.io/) with [cordova-mobile-spec](https://github.com/apache/cordova-mobile-spec) running on real Android and iOS devices.

# cordova-lib
Contains npm modules used primarily by [cordova](https://github.com/apache/cordova-cli/) and [plugman](https://github.com/apache/cordova-plugman/).

## Setup
* Clone this repository onto your local machine.
`git clone https://git-wip-us.apache.org/repos/asf/cordova-lib.git`
* In terminal, navigate to the inner cordova-lib directory.
`cd cordova-lib/cordova-lib`
* Install dependencies and npm-link
`npm install && npm link`
* Navigate to CLI and Plugman directories and link cordova-lib
`cd ../../cordova-cli && npm link cordova-lib && npm install`
`cd ../../cordova-plugman && npm link cordova-lib && npm install`

## NPM commands

This package exposes the following commands;

* `npm run jshint` - runs jshint check against all js files
* `npm run jasmine` - runs jasmine tests from spec-plugman and spec-cordova directories
* `npm run cover` - runs istanbul code coverage tool to measure tests coverage

* `npm test` - shortcut for `npm run jshint && npm run jasmine`