A grunt plugin for cms project uploads.
When using this to upload files, you must use the command-line to enter the
--password=yourldappassword command line arguments. Do not include them in GRUNTFILES!!! Remember, this is your password, and uploads are logged against your account. You are responsible for using them correctly.
This plugin requires Grunt
If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:
npm install grunt-cms-upload --save-dev
In your project's Gruntfile, add a section named
cms_upload to the data object passed into
The url to upload to.
When true, missing zips will be filtered out of the list of zips to upload and the build will continue. When false, the build will fail if a zip in the file list is missing.
In this example, the default options are used to upload the file deploy/someZip.zip template to artemis.local:9000. The email and password configuration values pull from the command-line arguments --firstname.lastname@example.org --password=yourpassword.
In this example, two targets are used: uat and staging. Staging gets the deploy/dummyZip.zip theme and uat gets the deploy/realZip.zip. the url option is used on each target to ensure that the theme gets uploaded to the correct place. The email and password configuration values pull from the command-line arguments --email@example.com --password=yourpassword.
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.