Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 153 #169

Closed
wants to merge 7 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
# Contents of this file are also in `.prettierignore`

# Folders
.idea/
.@vscode/test-electron/
.vscode-test/
node_modules
out

# Files
.vscode/settings.json
*.vsix
*.vsix
syntaxes/*.json
13 changes: 13 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# From `.gitignore`

# Folders
.idea/
.@vscode/test-electron/
.vscode-test/
node_modules
out

# Files
.vscode/settings.json
*.vsix
syntaxes/*.json
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
singleQuote: true
tabWidth: 4
trailingComma: all
overrides:
- files: ["*.yml", "*.yaml", ".prettierrc"]
options:
tabWidth: 2
1 change: 1 addition & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": [
"--disable-extensions",
"--extensionDevelopmentPath=${workspaceFolder}",
"--extensionTestsPath=${workspaceFolder}/out/test/suite/index"
],
Expand Down
24 changes: 24 additions & 0 deletions Contributing.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Contributing

I welcome any issues or PRs :)

## Running locally

1. Clone the repo
1. Install the relevant dependencies
- VS Code Insiders (needed to run the tests from CLI, see [using Insiders version for extension development](https://code.visualstudio.com/api/working-with-extensions/testing-extension#using-insiders-version-for-extension-development))
- Node 16 with npm 8
1. `npm i`

## Validate the build

1. `npm run test`
1. Go to `Run and Debug` viewlet (`Ctrl+Shift+D`) and click "Run Extension"

## Automated checks

All checks are found in `package.json`.

- Test
- Pretest (compile): tsc, js-yaml
- Automated tests: Mocha
7 changes: 3 additions & 4 deletions docs/Development.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ The tests should run automatically, and you should see passing output in the Deb
1. Bump the version in `package.json`. The message of the commit should be e.g. `v2.8.2`.
1. Push the changes.
1. Merge the PR. The body of the commit message should be the changelog entry.
1. Checkout `main`
1. `git checkout main`
1. Package the new version using `vsce package`.
1. Install the new version:
1. Select the newly-created `.vsix` file.
Expand All @@ -48,10 +48,9 @@ The tests should run automatically, and you should see passing output in the Deb
### Publishing

1. Tag the release
1. Delete the release branch in local
1. `git checkout main`
1. `git tag v<major>.<minor>.<patch>`
1. `git push origin v<major>.<minor>.<patch>`
1. e.g. `git tag v2.8.2`
1. `git push origin v2.8.2`
1. [Create a new release for this tag](https://github.com/mark-wiemer/vscode-autohotkey-plus-plus/tags)
1. Release title: Same as in [Changelog.md](../Changelog.md)
1. Description: Same as in changelog
Expand Down
223 changes: 220 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading