-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add contribution guide, update readme
- Loading branch information
Showing
4 changed files
with
228 additions
and
196 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# Contributing to VSCode Javascript Booster | ||
|
||
## Pre-flight checklist | ||
|
||
All releases are made using release branches, e.g. `release/0.11.0`. | ||
|
||
- Update README.md: | ||
- Add new changelog entry | ||
- Add new code actions into the list | ||
- Check if other changes are needed | ||
- Place all the resources (gifs, etc) into the `resources` dir. | ||
- Copy the README.md => client/README.md (pure copy and replace). | ||
- Copy the new changelog entry into client/CHANGELOG.md | ||
- Initiate new release by running the command (in the root dir): `npm version [patch|minor|major]` | ||
- Merge the release branch into master, delete it and push | ||
|
||
## Debugging the extension | ||
|
||
- Compile the language server using `npm run compile` in the server/ directory. | ||
- Launch `Launch client (client)`. You can debug the extension code now. | ||
- If needed, launch `Attach to Server (server)` in parallel. Now you can debug both language server and the extension. | ||
|
||
## Running tests (dev mode) | ||
|
||
Language server: | ||
|
||
- run `npm test -- --watch` inside the `server` directory to run the language server tests. | ||
- launch `Server Tests (server)` to debug the tests. | ||
|
||
Extension (client): | ||
|
||
- run `npm test` inside the `client` directory to run the extension integration tests. | ||
- launch `Extension tests (client)` to debug the tests. | ||
|
||
## Useful links | ||
|
||
- https://astexplorer.net/ - Explore code as an abstract syntax tree. Select Babylon7 parser to see the right tree. Helps when writing new code actions. | ||
- https://github.com/facebook/jscodeshift - The engine behind this extension: a set of high-level tools to operate an AST. | ||
- https://github.com/benjamn/recast - The library used by jscodeshift to mutate and pretty-print the code. | ||
- https://github.com/benjamn/ast-types - The library under the hood of recast and jscodeshift. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.