The purpose of this project is to build an extension for VSCode that helps to automate code generation through scaffolding. The extension will be multipurpose and language agnostic.
Requirements you must have to run the project
Once you have the repo cloned you have to follow these steps:
-
Install VS Code Extension Generator:
npm install -g yo generator-code
-
Open a terminal, go to the folder project, and type:
yarn
-
Once you have the dependencies installed, press
F5
, after that, another window of vscode will open up with the project running
npm run lint
: This command checks the code and fixes problems in your code
To avoid Git converting from LF to CRLF, run the following commands:
git config --global core.autocrlf false
git config --global core.eol lf
git rm --cached -r .
git reset --hard
To publish the extension to marketplace you must have been added as a contributor in the publisher. If you have been added, then follow the next steps:
- First, you should generate a personal access token in Azure DevOps that you can do in the next URL https://dev.azure.com/celerik/_usersSettings/tokens.When you generate, you must choose the marketplace scope like the next image:
- Run the next command:
vsce login Celerik
After that, the console will ask you for the token, enter it and then you will be logged in
- To end run the command to publish this command will push the extension to the marketplace
vsce publish --baseImagesUrl https://raw.githubusercontent.com/celerik/vscode-scaffolder-ext/develop/source/