cd into it.git clone git@github.com:forcedotcom/salesforcedx-templates.git
yarn install
yarn build
main and we release (aka. production) branch is main.main
<developer-name>/.rebaseWe try to limit merge commits as much as possible.
Topic branches are:
main and will bemain.Hot-fix branches are an exception.
develop branch.Take a look at CONTRIBUTING doc for making and merging pull requests.
Adding a new template:
TemplateType, and add available template options extending TemplateOptions in library types.SfdxGenerator in generators folder. Take a look at ApexClassGenerator for an example.SfdxGeneratorConsider adding a corresponding command for your new template to be invoked with the CLI in the plugin for templates here.
Run the following to test the library:
yarn test
If you are using VS Code for development, the following launch configurations are available: “Run All Tests”, “Run Current Test”, “Run Current Test Without Compile”. Have "debug.javascript.usePreview": true in your user setting enabled so you can utilize vscode-js-debug debugger. This setting is enabled by default in VS Code version 1.47.