-
Notifications
You must be signed in to change notification settings - Fork 22
How To Contribute
Thanks for taking the time to contribute! 👍
When contributing to this project, please first discuss the changes you wish to make via an issue before making changes.
By contributing to this project you agree to the Developer Certificate of Origin. All contributions to this repository must be signed as described on that page. Your signature certifies that you wrote the patch or have the right to pass it on as an open-source patch.
Looking for places to contribute to the codebase? You can start by looking through the good-first-issue
and help-wanted
issues.
git clone https://github.com/vmware/vrealize-developer-tools.git
- Git
-
Node.js,
>= 14.0.0
-
npm,
>= 8.0.0
-
gulp CLI,
>= 2.0.1
-
Visual Studio Code,
>= 1.54.0
- For building any of the maven cli tools
From a terminal, where you have cloned the repository, execute the following command to install the required dependencies:
npm install
During development you can use a watcher to make builds on changes quick and easy. From a terminal, where you have cloned the repository, execute the following command:
gulp watch
This will first do an initial full build and then watch for file changes, compiling those changes incrementally, enabling a fast, iterative coding experience.
💡Tip! You can press CMD+SHIFT+B (CTRL+SHIFT+B on Windows, Linux) to start the watch task.
💡Tip! You don't need to stop and restart the development version of VS Code after each change. You can just execute Reload Window
from the command palette.
To do a complete rebuild, from a terminal, where you have cloned the repository, execute the following command:
gulp compile
This project uses eslint for code linting. You can run eslint across the code by calling gulp lint
from a terminal. Warnings from eslint show up in the Errors and Warnings
panel and you can navigate to them from inside VS Code.
To lint the code as you make changes you can install the ESLint extension.
📜NOTE! Linting rules that have auto-fixes available will be automatically applied on file save and during compilation.
To run the tests execute the following from a terminal:
gulp test
To generate a VSIX (installation package) run the following from a terminal:
gulp package
- Open the
vrealize-developer-tools
folder - Ensure the required dependencies are installed
- Start the
watch
task - Choose the
Launch Extension
launch configuration from the launch dropdown in the Debug viewlet and pressF5
.
📜NOTE! In the [Extension Development Host] instance, the extension will be activated when any folder with vRO JavaScript code is opened AND one of the following events occurs.
- a
.o11n/
folder is located at the root of the opened project - a JavaScript or TypeScript file is opened in the editor
- a
vRealize: ...
action is executed from the command palette
Make sure the
window.openFoldersInNewWindow
setting is not"on"
, otherwise a new, non-[Extension Development Host], window may be opened.
💡Tip! If you make edits to the code, just execute Reload Window
from the command palette and the debugger will reattach.
Please follow the instructions in the PR template.
Fork the repo and open a pull request modifying the files under ./wiki/
Documentation
- Setup Artifact Repository
- Setup Developer Workstation
- Using the VS Code Extension
- Using the Bundle Installer
- Project Types
- Versioning and releasing
Contributing