Skip to content

patricktiu/generator-ibm-cloud-enablement

 
 

Repository files navigation

IBM Cloud Enablement Generator

IBM Cloud powered Travis Coveralls Codacy Version DownloadsMonthly DownloadsTotal License Conventional Commits

Pre-requisites

Install Yeoman

npm install -g yo

Installation

bash npm install -g generator-ibm-cloud-enablement

Usage

Following command line arguments are supported

  • --bluemix {stringified-json} - used by Scaffolder to supply project information from pman. You can also supply a local file containing compatible JSON object by using --bluemix file:path/to/file.json or pass the JSON in the CLI like --bluemix "{\"backendPlatform\":\"NODE\"}". You will need at least a backendPlatform to run it locally.
  • --storages {stringified-array} - used to add storage deployment to helm charts
  • --isDeployableContainer - if true add container to deploy-target in cli-config.yaml

Development Environment

Clone this repository and link it via npm

git clone https://github.com/ibm-developer/generator-ibm-cloud-enablement
cd generator-ibm-cloud-enablement
npm link

In a separate directory invoke the generator via

yo ibm-cloud-enablement 

Publishing Changes

In order to publish changes, you will need to fork the repository or ask to join the ibm-developer org and branch off the development branch.

Make sure to follow the conventional commit specification before contributing. To help you with commit a commit template is provide. Run config.sh to initialize the commit template to your .git/config.

Once you are finished with your changes, run npm test to make sure all tests pass.

Do a pull request against development, make sure the build passes. A team member will review and merge your pull request. Once merged from development to master one pull request will be created against development. Merge the pull request then create another pull request from development into master. Once the final pull request has been merged the generator will be published to npm. Make sure that the CHANGELOG.md and the package.json is correct before merging the auto generated pull request.

About

IBM Cloud Enablement Yeoman Generator

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 90.7%
  • Shell 6.9%
  • Python 2.2%
  • Groovy 0.2%