xuanyue202 / generator-ibm-java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Yeoman generator for Java code

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

You can see builds for all branches here https://travis-ci.org/ibm-developer/generator-ibm-java/branches.

This is a yeoman generator that will create Java code for you.

It is published on npm here

Overview

The generator works by taking the answers that the user has supplied, either via the CLI or a UI, and then maps that to a folder under the templates directory. All files are processed using Handlebars to insert the configuration specified by the user.

Building app

Pre-requisites

Building and running the generator

  1. Clone this repository and navigate to java-codegen-yeoman/generator-java
  2. Run npm install in generator-java to install all of the node modules
  3. Run npm link in generator-java to link the local java yeoman generator (see here for more details
  4. Run yo ibm-java to test the generator

Contribution

In order to publish changes, you will need to fork the repository or ask to join the ibm-developer org and branch off the master 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 or you can use

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

Do a pull request against master, make sure the build passes. A team member will review and merge your pull request. Once merged to master one pull request will be created against master. Make sure that the CHANGELOG.md and the package.json is correct before merging the auto generated pull request. After the autogenerated pull request has been merged to master the version will be bumped and published to npm.

More details

For more detailed documentation see the Java generator docs.

About


Languages

Language:JavaScript 60.5%Language:HTML 26.9%Language:Java 11.3%Language:Shell 1.4%