Grunt plugin to import KVMs into Apigee. This plugin plays well with API Lifecycle Tools such as Apigee Deploy Grunt Plugin to propagate KVM configuration across environments and organizations.
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-apigee-kvm --save-dev
The "apigee_kvm" task
In your project's Gruntfile, add a section named
apigee_kvm to the data object passed into
In this example, custom options are used to specify at which level these KVM files should be created or updated. Currently, env (environment) and org(organization) types are supported by this plugin. When no option type is provided, it defaults to environment. Also, note that orgnizations and environments are provided as part of the configuration. Org and environment parameters are resolved by the configuration file from apigee-config.js file.
In this example, custom options are used to specify at which level these KVM files should be created or updated. Currently, env (environment) and org(organization) types are supported by this plugin.
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.