1.2.1 • Published 9 years ago

grunt-mobify-cloud v1.2.1

Weekly downloads
40
License
-
Repository
-
Last release
9 years ago

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
1.2.1

9 years ago

1.2.0

9 years ago

1.1.0

9 years ago

1.0.12

10 years ago

1.0.11

10 years ago

1.0.10

10 years ago

1.0.9

10 years ago

1.0.8

10 years ago

1.0.7

10 years ago

1.0.6

10 years ago

1.0.5

10 years ago

1.0.4

10 years ago

1.0.3

10 years ago

1.0.2

10 years ago

1.0.1

10 years ago

1.0.0

10 years ago