Contributions are essential for keeping this extension great. We try to keep it as easy as possible to contribute changes and we are open to suggestions for making it even easier. There are only a few guidelines that we need contributors to follow.
-
Install prerequisites:
- latest Visual Studio Code
- Node.js v12.0.0 or higher
-
Fork and clone the repository
-
cd vscode-knative
-
Install the dependencies:
$ npm install
-
Open the folder in VS Code
We strongly suggest that you use esbenp.prettier-vscode
and dbaeumer.vscode-eslint
to ease the development of the extension. We are using multiple tools to keep codebase clean, maintainable and code readable.
- Once you have all package dependencies installed (
npm install
) you can compile the extension, so you are sure you have all the dependencies installed correctly:npm run build
- Now you can run unit tests suite by going to the
Run
tab and launchingExtension Tests (vscode-knative)
task. - Or you can run tests from the CLI:
npm test
- To run extension in VSCode using the code directly from the workspace, launch
Run Extension (vscode-knative)
task.
-
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
-
vscode-knative-<version>.vsix
file is created. Install it by following the instructions here. -
Once the extension is installed and reloaded, there will be an Knative Icon on the View Container.
If you have any questions or run into any problems, please post an issue - we'll be very happy to help.