# grunt-mobify-cloud

> Grunt plugins used by Adaptive.js projects to interact Mobify's Preview and Release Console

Latest version **1.2.1** (published 2015-09-24) · 0 weekly downloads

## Install

```sh
npm install grunt-mobify-cloud
pnpm add grunt-mobify-cloud
yarn add grunt-mobify-cloud
bun add grunt-mobify-cloud
```

## 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 | 1.2.1 |
| Published | 2015-09-24 |
| First published | 2014-03-19 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >= 0.10.21 |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Author | Mobify |
| Maintainers | donniel.mobify, jb, mikeklemarewski, shawn, spiside, tedtate |
| Keywords | grunt plugin mobify gruntplugin |

## Links

- npm: https://www.npmjs.com/package/grunt-mobify-cloud
- Homepage: http://adaptivejs.mobify.com/
- npm.io page: https://npm.io/package/grunt-mobify-cloud

## Dependencies (2)

- [request](https://npm.io/package/request.md) 2.11.4
- [archiver](https://npm.io/package/archiver.md) ~0.6.1

## Recent versions

- 1.2.1 (latest) — 2015-09-24
- 1.2.0 — 2015-05-29
- 1.1.0 — 2015-02-05
- 1.0.12 — 2014-06-06
- 1.0.11 — 2014-05-27
- 1.0.10 — 2014-04-10
- 1.0.9 — 2014-03-31
- 1.0.8 — 2014-03-31
- 1.0.7 — 2014-03-19
- 1.0.6 — 2014-03-19
- 1.0.5 — 2014-03-19
- 1.0.4 — 2014-03-19

## README

# Grunt Tasks

`grunt-mobify-cloud` provides three Grunt tasks used for building Adaptive.js projects:
* `mobify-upload`: Builds a bundle and pushes it to the Mobify Cloud using saved credentials.
* `mobify-save_credentials`: Saves your Mobify Cloud credentials.
* `mobify-verify_adaptive_dependencies`: Verifies that the installed dependancies are valid.

## mobify-upload

Builds a bundle and pushes it to the Mobify Cloud using your saved credentials.

```
'mobify-upload': {
    options: {
        projectSlug: 'mobify-test',
        settingsFile: './.local-settings'
    },
    src: ['bld/**', '!bld/test/test-credentials']
}
```

Refer to [Grunt's globbing patterns](http://gruntjs.com/api/grunt.file#globbing-patterns)
to specify file paths.

### Options

* `origin`: Where to upload the bundle. Defaults to `https://cloud.mobify.com/`.

  ```sh
  grunt mobify-upload --origin="http://cloud-test.mobify.com/"
  ```

* `message`: A descriptive message to be associated with the bundle.

  ```sh
  grunt mobify-upload --message="An informative and witty bundle message."
  ```

* `deploy-to-target`: Deploys the bundle to a target after it is uploaded.
  Useful for build servers.

  ```sh
  grunt mobify-upload --deploy-to-target="ci-development"
  ```

## mobify-save_credentials

Stores your email and API key so it can be used for uploads.

```
'mobify-save_credentials': {
    // The location where the credentials will be stored.
    src: '/Users/myself/.mobify'
}
```

To save your credentials:

```sh
grunt mobify-save_credentials --user="user@mobify.com" --key="5up3rR4Nd0mK3y"
```

## mobify-verify_adaptive_dependencies

Verifies your `package.json` and `bower.json` files against the Mobify Cloud.

```sh
grunt mobify-verify_adaptive_dependencies
```

# Deployment

To deploy this plugin you need to specify some environment variables that specify your github username and password.

```sh
export GITHUB_USERNAME='foobarnerson'
export GITHUB_PASSWORD='myaccesstoken'
```

# Development

## Testing

```sh
grunt test
```

## Releasing

To release a new version of this package:

0. `grunt test`
1. Bump version in `package.json`.
2. Update the `CHANGELOG`.
3. [Create a new release on GitHub](https://github.com/mobify/grunt-mobify-cloud/releases/new).
4. `npm publish`

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