Instructions for getting started contributing to webhint
for Visual Studio Code.
- Run
yarnto install dependencies. - Run
yarn buildfrom the roothintdirectory. - Open VS Code on this directory.
- Switch to the Debug viewlet.
- Select
Client + Serverfrom the drop down. - Run the launch config.
NOTE: Make sure you open a file in the launched vscode instance that webhint is registered for (like html or tsconfig.json), otherwise, the server won't start.
- Run
yarn testfrom this directory.
- Install the packager via
npm install -g vsce. - Run
vsce package. - Install the generated
*.vsixpackage in VSCode:- Go to
View > Extensions. - Click
...in the top-right of the panel. - Click
Install from VSIX.... - Choose the generated
*.vsixpackage from disk.
- Go to
Full instructions available at the Publishing Extensions
page in the Visual Studio Code documentation. You must be a member of
the webhint Visual Studio Marketplace publisher to
publish.
- Install the packager via
npm install -g vsce - Run
vsce login webhint - Provide your Personal Access Token
- Run the release script
- Preferred: Run
npm run releasefrom the root of this repo (publishes all webhint packages - automatically calculates version bump) - Alternate: Run
vsce publishfrom this directory (publishes only this extension - requires manual version bump)
- Preferred: Run
Note vsce saves your login information so only npm install and
vsce publish are necessary on subsequent attempts.