grunt-mobify-cloud

1.2.1 • Public • Published

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 to specify file paths.

Options

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

    grunt mobify-upload --origin="http://cloud-test.mobify.com/"
  • message: A descriptive message to be associated with the bundle.

    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.

    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:

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.

grunt mobify-verify_adaptive_dependencies

Deployment

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

export GITHUB_USERNAME='foobarnerson'
export GITHUB_PASSWORD='myaccesstoken'

Development

Testing

grunt test

Releasing

To release a new version of this package:

  1. grunt test
  2. Bump version in package.json.
  3. Update the CHANGELOG.
  4. Create a new release on GitHub.
  5. npm publish

Package Sidebar

Install

npm i grunt-mobify-cloud

Weekly Downloads

1

Version

1.2.1

License

none

Last publish

Collaborators

  • fractaltheory
  • jb
  • shawn