How to contribute
December 1, 2022 ยท View on GitHub
Contributions are essential for ensuring this extension meets developer needs. There are only a few guidelines that we need contributors to follow and we are open to suggestions for making it even easier to contribute!
First Time Setup
-
Install prerequisites:
- latest Visual Studio Code
- Node.js v4.0.0 or higher
-
Fork and clone the repository
-
cd vscode-tekton -
Install the dependencies:
$ npm install -
Open the folder in VS Code
Run the extension locally
-
Install
vsce- A command line tool you'll use to publish extensions to the Extension Marketplace.$ npm install -g vsce -
From root folder, run the below command.
$ vsce package -
tekton-pipelines-<version>.vsixfile is created. Install it by following the instructions here. -
Once the extension is installed and reloaded, you should see a Tekton Icon on the View Container, as shown in the image below.
If you have any questions or run into any problems, please post an issue - we'll be very happy to help.
Build the extension snippets
All templates are placed in yaml files in rawsnippets.
If you want to add/change snippets body, you need to edit proper yaml file in rawsnippets.
Label and description for each snippet are placed in build-snippets.ts script.
To generate new snippet json, run:
$ npm run snippets-build
npm script from extension root.
Generate new icons
If you want to change icons for PipelineRun, TaskRun or Condition, you may want to generate new state icons for failed and pending state. To do that run:
$ npm run icon-build
npm script from extension root. New icons will be placed in images/generated.
Certificate of Origin
By contributing to this project you agree to the Developer Certificate of Origin (DCO). This document was created by the Linux Kernel community and is a simple statement that you, as a contributor, have the legal right to make the contribution. See the DCO file for details.