Install Yeoman
npm install -g yo
bash npm install -g generator-ibm-cloud-enablement
Following command line arguments are supported
--bluemix {stringified-json}
- used by Scaffolder to supply project information frompman
. 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 addcontainer
todeploy-target
incli-config.yaml
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
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.