Contributing
Everyone is welcome to contribute to sfdx-hardis (even juniors: we'll assist you !)
Salesforce CLI Plugin: sfdx-hardis
- Install Node.js (recommended version)
- Install typescript by running
npm install typescript --global
- Install yarn by running
npm install yarn --global
- Install Salesforce DX by running
npm install @salesforce/cli --global
command line - Fork https://github.com/hardisgroupcom/sfdx-hardis and clone it (or just clone if you are an internal contributor)
- At the root of the repository:
- Run
yarn
to install dependencies - Run
sf plugins link
to link the local sfdx-hardis to SFDX CLI - Run
tsc --watch
to transpile typescript into js everytime you update a TS file
- Run
- Debug commands using
NODE_OPTIONS=--inspect-brk sf hardis:somecommand --someparameter somevalue
(you can also debug commands using VsCode Sfdx-Hardis setting)
VsCode Extension: vscode-sfdx-hardis
- Install Node.js (recommended version)
- Install typescript by running
npm install typescript --global
- Install yarn by running
npm install yarn --global
- Install Visual Studio Code Insiders (download here)
- Fork https://github.com/hardisgroupcom/vscode-sfdx-hardis and clone it (or just clone if you are an internal contributor)
- At the root of the repository:
- Run
yarn
to install dependencies
- Run
- To test your code in the VsCode Extension:
- Open the
vscode-sfdx-hardis
folder in VsCode Insiders - Press
F5
to open a new VsCode window with the extension loaded (or menu Run -> Start Debugging) - In the new window, open a Salesforce DX project
- Run commands from the command palette (Ctrl+Shift+P) or use the buttons in the panel or webviews
- Open the