# grunt-tart

> tartJS + Cordova build plugin.

Latest version **0.2.1** (published 2014-12-06) · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install grunt-tart
pnpm add grunt-tart
yarn add grunt-tart
bun add grunt-tart
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2014-12-06 |
| First published | 2014-12-06 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.8.0 |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+8 in 2 direct dependencies) |
| Install scripts | no |
| Author | Can Kutlu Kinay |
| Maintainers | ckk |
| Keywords | gruntplugin, tartJS |

## Links

- npm: https://www.npmjs.com/package/grunt-tart
- Repository: https://github.com:cakuki/grunt-tart
- Homepage: https://github.com/cakuki/grunt-tart
- Issues: https://github.com/cakuki/grunt-tart/issues
- npm.io page: https://npm.io/package/grunt-tart

## Dependencies (3)

- [grunt](https://npm.io/package/grunt.md) ~0.4.5
- [lodash](https://npm.io/package/lodash.md) ^2.4.1
- [grunt-cordovacli](https://npm.io/package/grunt-cordovacli.md) ^0.5.1

## Alternatives

- [lodash.startswith](https://npm.io/package/lodash.startswith.md) — 769.7K weekly downloads
- [@tarojs/service](https://npm.io/package/@tarojs/service.md) — 33.9K weekly downloads
- [io.extendreality.tilia.indicators.spatialtargets.unity](https://npm.io/package/io.extendreality.tilia.indicators.spatialtargets.unity.md) — 131 weekly downloads
- [@rtarojs/taro](https://npm.io/package/@rtarojs/taro.md) — 90 weekly downloads
- [node-branch-io](https://npm.io/package/node-branch-io.md) — 50 weekly downloads

## Recent versions

- 0.2.1 (latest) — 2014-12-06
- 0.2.0 — 2014-12-06
- 0.1.1 — 2014-12-06
- 0.1.0 — 2014-12-06

## README

# grunt-tart [![Build Status](https://img.shields.io/travis/cakuki/grunt-tart.svg?style=flat-square)](https://travis-ci.org/cakuki/grunt-tart) [![Stability: Experimental](http://img.shields.io/badge/stability-experimental-orange.svg?style=flat-square)](http://nodejs.org/api/documentation.html#documentation_stability_index) [![npm version](https://img.shields.io/npm/v/grunt-tart.svg?style=flat-square)](https://www.npmjs.org/package/grunt-tart)
> tartJS + Cordova build plugin.

**CAUTION!**

_Currently requires some grunt tasks/aliases to be installed and configured. Initial state intended to work in [tartjs-mobile-demo](https://github.com/tart/tartjs-mobile-demo) only._

## Getting Started
This plugin requires Grunt `~0.4.5`

If you haven't used [Grunt](http://gruntjs.com/) before, be sure to check out the [Getting Started](http://gruntjs.com/getting-started) guide, as it explains how to create a [Gruntfile](http://gruntjs.com/sample-gruntfile) as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

```shell
npm install grunt-tart --save-dev
```

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

```js
grunt.loadNpmTasks('grunt-tart');
```

## "tart", the builder task

### Overview
In your project's Gruntfile, add a section named `tart` to the data object passed into `grunt.initConfig()`.
It is not necessary to add each Cordova platform as targets in order to build them.
They are populated while grunt-task is loading.

```js
grunt.initConfig({
  tart: {
    options: {
      compilerDefs: {
          'goog.DEBUG': false
      },
      cordova: {
        id: 'com.tart.example-app',
        name: 'Example tartJS App',
        path: 'target'
      }
    },
    ios: {
      options: {
        compilerDefs: {
          'goog.userAgent.ASSUME_WEBKIT': true
        }
      }
    },
    wp8: {
      options: {
        compilerDefs: {
          'goog.userAgent.ASSUME_IE': true
        }
      }
    },
  },
});
```

Note that objects under options are overridden completely when target option with same key defined. See [grunt issue #738](https://github.com/gruntjs/grunt/issues/738).

### Options

#### options.compilerDefs
Type: `Object.<String, [Boolean|String|Number]>`
Default value: `{ 'goog.DEBUG': true }`

Closure Compiler definition key pairs. Can be changed via `define` cli flag:

` grunt tart:ios --define="goog.DEBUG=false,goog.LOCALE=fr" `

#### options.cordova
Type: `Object`
Default value: `{
                    id: 'com.tart.example-app',
                    name: 'Example tartJS App',
                    path: 'target'
                }`

These options passed into [grunt-cordovacli](https://github.com/csantanapr/grunt-cordovacli) task. See [grunt-cordovacli options documentation](https://github.com/csantanapr/grunt-cordovacli#options) for details.

### Usage Examples

(Coming soon)

## "plugin", the manager task

### Overview

This tasks does not need any configuration.

Usage is simple as `cordova plugin add/rm` command:

`grunt plugin:(add|rm):(plugin-id|git-url|eg: org.apache.cordova.device)[:version]`

Omit version to download latest.

All added plugins will be persisted into `package.json` under `cordovaPlugins`.

## Contributing
In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using [Grunt](http://gruntjs.com/).

## Release History

- **v0.2.0** *(06/12/2014 07:22)*
    - Added 'plugin' task for managing Cordova plugins persisted in `package.json`.

- Initial release **v0.1.0** *(06/12/2014 02:36)*

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