Skip to content

quanvo87/generator-ibm-service-enablement

 
 

Repository files navigation

IBM Service Enablement Yeoman Generator

Bluemix powered Travis Coveralls Codacy Version DownloadsMonthly DownloadsTotal License

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"
			}
		}
	]

}

About

IBM Service Enablement Yeoman Generator

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 71.7%
  • Java 16.0%
  • Python 7.2%
  • Swift 4.4%
  • Shell 0.7%