generator-ibm-java-spring

Spring code generation and modification


Keywords
arf, codegen, yeoman, generator, YaaS, java, Spring
License
Apache-2.0
Install
npm install generator-ibm-java-spring@2.0.0

Documentation

This repository is deprecated. The Spring generator has been merged into the Java generator at:

https://github.com/ibm-developer/generator-ibm-java/tree/develop/generator-java/generators/spring



Yeoman generator for Spring code

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

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. It then walks all the files in the directory and for each one parses it through a handlebars template processing engine.

Running the generator

This is a sub generator and is intended to work with the main Java code generator. This generator is listed as a dependency in the package.json which means that it will be installed automatically. Follow the build instructions for the main page then additionally

  • Fork or clone this repository locally.
  • Change into the generator-spring directory (where the package.json file is)
  • Run npm link - this will configure your local node installation to resolve this generator from the local file system rather than the NPM registry.

You will now be able to make changes locally and have them picked up when you run the main Java 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 to make sure all tests pass.

Do a pull request against develop and make sure the build passes. A team member will review and merge your pull request. Once merged to develop a team member will merge to master and a pull request will be created against master to update the version. After the autogenerated pull request has been merged to master the version will be bumped and published to npm.