Thank you for your interest in contributing to the venom-scaffolding generator!
If you spot a problem with generator, search if an issue already exists. If a related issue doesn't exist, you can open a new issue using a relevant issue form.
Scan through our existing issues to find one that interests you. If you find an issue to work on, you are welcome to open a PR with a fix.
Before running anything, you'll need to install the dependencies:
# project dependencies
npm install
# and yo scaffolding tool
npm install --global yo
# build the project
npm run build
# create symlink to project binary
npm link
The venom-scaffold now is ready to be ran locally. To do so, run the cmd bellow in any directory.
yo venom-scaffold <new-project-path>
git checkout -b feature/my-amazing-subgenerator
To create new sub generator, you should add it to the ./generators directory. Generator consist of index.ts
, where you specify questions, how to process templates, etc and templates
directory, where you store project's template.
For templating, use esj. Be sure, that you added README.md
file with description about project details and information about project run and test. The last step is to update generators/app/index.ts
and generators/app/USAGE
with new sub-generator
After you finished sub generator developing, create pull request.
- Describe the purpose of your changes
- Don't forget to link PR to issue if you are solving one.
- Enable the checkbox to allow maintainer edits so the branch can be updated for a merge. Once you submit your PR, a Docs team member will review your proposal. We may ask questions or request additional information.
- We may ask for changes to be made before a PR can be merged, either using suggested changes or pull request comments. You can apply suggested changes directly through the UI. You can make any other changes in your fork, then commit them to your branch.
- As you update your PR and apply changes, mark each conversation as resolved.
- If you run into any merge issues, checkout this git tutorial to help you resolve merge conflicts and other issues.
Congratulations, and thank you on behalf of the venom team!