This is a yeoman generator that will create Java code for you.
It is published on npm here.
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.
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.
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.