IBM Service Enablement Yeoman Generator

Pre-requisites
Install Yeoman
npm install -g yo
Installation
bash npm install -g generator-ibm-service-enablement
Usage
Following command line arguments are supported
--bluemix {stringified-json}
- used by Scaffolder to supply project information from pman
. This will be referred as projectConfig
in this document. You can also supply a local file containing compatible JSON object by using --bluemix file:path/to/file.json
Development
Clone this repository and link it via npm
git clone https://github.com/ibm-developer/generator-ibm-service-enablement
cd generator-ibm-service-enablement
npm link
In a separate directory invoke the generator via
yo ibm-service-enablement
Testing
To run the unit tests
npm test
To run integration tests
npm run integration
Note You will need to mock the credentials by adding a bluemix.int.json
file. The file content should look something like the following:
{
"cloudant": [
{
"url": "XXXX",
"username": "XXXXX",
"password": "XXXX",
"serviceInfo": {
"label": "cloudant-label",
"name": "cloudant-name",
"plan": "cloudant-plan"
}
}
],
"objectStorage": [
{
"auth_url": "XXXX",
"domainId": "XXXXX",
"domainName": "XXXX",
"password": "XXXX",
"project": "XXXXX",
"projectId": "XXXX",
"region": "dallas",
"role": "admin",
"userId": "XXXX",
"username": "XXXX",
"serviceInfo": {
"label": "object-storage-label",
"name": "object-storage-name",
"plan": "object-storage-plan"
}
}
]
}