# ionic-app-lib

> A library for creating and developing Ionic Framework mobile apps.

Latest version **2.2.1** (published 2017-03-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install ionic-app-lib
pnpm add ionic-app-lib
yarn add ionic-app-lib
bun add ionic-app-lib
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.1 |
| Published | 2017-03-28 |
| First published | 2015-04-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 28 |
| Known vulnerabilities | 0 (+23 in 10 direct dependencies) |
| Install scripts | no |
| GitHub stars | 45 |
| Maintainers | brandyscarney, drifty, drygh, dwieeb, ericb, jthoms1, tlancina |
| Keywords | ionic, ionic framework, ionicframework, mobile, app, hybrid, cordova, phonegap |

## Links

- npm: https://www.npmjs.com/package/ionic-app-lib
- Repository: https://github.com/driftyco/ionic-app-lib
- Homepage: http://ionicframework.com/
- Issues: https://github.com/driftyco/ionic-app-lib/issues
- npm.io page: https://npm.io/package/ionic-app-lib

## Dependencies (28)

- [q](https://npm.io/package/q.md) 1.0.1
- [crc](https://npm.io/package/crc.md) 3.2.1
- [open](https://npm.io/package/open.md) 0.0.5
- [chalk](https://npm.io/package/chalk.md) ^1.1.3
- [prompt](https://npm.io/package/prompt.md) 0.2.12
- [semver](https://npm.io/package/semver.md) 4.2.0
- [xml2js](https://npm.io/package/xml2js.md) 0.4.16
- [adm-zip](https://npm.io/package/adm-zip.md) 0.4.7
- [cheerio](https://npm.io/package/cheerio.md) 0.19.0
- [connect](https://npm.io/package/connect.md) 3.1.1
- [os-name](https://npm.io/package/os-name.md) ^2.0.1
- [request](https://npm.io/package/request.md) 2.51.0
- [shelljs](https://npm.io/package/shelljs.md) 0.2.6
- [winston](https://npm.io/package/winston.md) 1.1.2
- [archiver](https://npm.io/package/archiver.md) 0.5.2
- [optimist](https://npm.io/package/optimist.md) 0.6.0
- [progress](https://npm.io/package/progress.md) 1.1.7
- [form-data](https://npm.io/package/form-data.md) 0.1.4
- [underscore](https://npm.io/package/underscore.md) 1.7.0
- [cordova-lib](https://npm.io/package/cordova-lib.md) 6.1.0
- [cross-spawn](https://npm.io/package/cross-spawn.md) 4.0.2
- [finalhandler](https://npm.io/package/finalhandler.md) 0.2.0
- [glob-watcher](https://npm.io/package/glob-watcher.md) 3.0.0
- [serve-static](https://npm.io/package/serve-static.md) 1.7.1
- [tiny-lr-fork](https://npm.io/package/tiny-lr-fork.md) 0.0.5
- [proxy-middleware](https://npm.io/package/proxy-middleware.md) 0.7.0
- [request-progress](https://npm.io/package/request-progress.md) 0.3.1
- [connect-livereload](https://npm.io/package/connect-livereload.md) 0.5.2

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 2.2.1 (latest) — 2017-03-28
- 2.1.9-201701110334 (nightly) — 2017-01-11
- 2.1.0-beta.1 (beta) — 2016-09-20
- 0.7.2 (testing) — 2016-05-23
- 2.0.0-alpha.22 (alpha) — 2015-11-16
- 2.0.0-alpha.16 (generate) — 2015-11-04
- 2.0.0-alpha.11 (livereload) — 2015-10-22
- 2.2.0 — 2017-01-13
- 2.1.9 — 2016-12-22
- 2.1.8 — 2016-12-19
- 2.1.7 — 2016-11-16
- 2.1.6 — 2016-11-16
- 2.1.5 — 2016-11-15
- 2.1.4 — 2016-11-09
- 2.1.3 — 2016-11-09
- … 137 more at https://npm.io/package/ionic-app-lib/versions

## README

[![Build Status][circle-badge]][circle-badge-url]
[![npm][npm-badge]][npm-badge-url]

## Getting started

`npm install ionic-app-lib --save`

## Using this library

Here's a snippet of JavaScript that shows how to use this library:

```javascript
var ionicAppLib = require('ionic-app-lib'),
    cordova = ionicAppLib.cordova,
    serve = ionicAppLib.serve,
    start = ionicAppLib.start;

var options = { 
  appDirectory: 'IonicApp',
  appName: 'Test',
  packageName: 'com.ionic.test',
  isCordovaProject: true,
  template: 'tabs',
  targetPath: '/User/Path/Development/' 
};

start.startApp(options);

//Start an Ionic server with LiveReload on your files
serve.start(options)

cordova.addPlatform(appPath, platform);
cordova.runPlatform(appPath, platform);



```

## Status

Commands to convert:

* [X] start
* [X] serve
* [X] cordova (using cordova-lib)
  * [X] run
  * [X] emulate
  * [X] compile
  * [X] build
  * [X] add platform
  * [X] remove platform
  * [X] add plugin
  * [X] remove plugin
* [X] utils
* [X] setup
* [X] login
* [X] upload
* [X] share
* [ ] push
* [X] hooks
* [X] browser
* [ ] resources
* [ ] docs
* [X] state

cordova (using cordova-lib - run/emulate/compile/build)
upload
stats

## Developing this library

To use this library from another project, simply take your command line to the root of this directory and run `npm link`.

Then in the project you wish to consume the library, run `npm link ionic-app-lib`. Then `require('ionic-app-lib')` and start using the commands listed in index.js.

## The idea and plan

The idea here is to make the CLI library easier to use from any interface. 

This project will contain all the logic to make all of the commands happen - start/serve/platform/run/emulate/etc..

The root file, index.js - will import all of the other modules/commands, to provide an interface to run all of the tasks.

The lib folder will contain all of the individual commands.

The specs will test passing the commands the correct parameters, instead of if they properly read in command line arguments. Starting out, tests will just ensure there are no silly JavaScript errors by just requireing them.

## Strategy going forward

Need to think about how to start cutting over forward development and passing it off to this library instead of straight parsing arguments from CLI.


[circle-badge]: https://circleci.com/gh/driftyco/ionic-app-lib.svg?style=shield
[circle-badge-url]: https://circleci.com/gh/driftyco/ionic-app-lib
[npm-badge]: https://img.shields.io/npm/v/ionic-app-lib.svg
[npm-badge-url]: https://www.npmjs.com/package/ionic-app-lib

---
_Source: https://npm.io/package/ionic-app-lib · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
