Skip to content

Commit

Permalink
fix .vsix build
Browse files Browse the repository at this point in the history
  • Loading branch information
salamaashoush committed May 29, 2024
1 parent 514b6ed commit 51cee4f
Show file tree
Hide file tree
Showing 13 changed files with 276 additions and 49 deletions.
2 changes: 0 additions & 2 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": ["dbaeumer.vscode-eslint", "amodio.tsl-problem-matcher"]
}
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@
"source.organizeImports": "never"
},
// Enable the ESlint flat config support
"eslint.experimental.useFlatConfig": true
"eslint.experimental.useFlatConfig": true,
"coverage-gutters.showLineCoverage": false,
"coverage-gutters.showRulerCoverage": false,
"coverage-gutters.showGutterCoverage": false
}
18 changes: 14 additions & 4 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
src
node_modules
test
.github
.vscode
.vscode/**
**/*.ts
**/*.map
.gitignore
**/tsconfig.json
node_modules/**
!node_modules/vscode-jsonrpc/**
!node_modules/vscode-languageclient/**
!node_modules/vscode-languageserver-protocol/**
!node_modules/vscode-languageserver-types/**
!node_modules/{minimatch,brace-expansion,concat-map,balanced-match}/**
!node_modules/{semver,lru-cache,yallist}/**
**/*.mjs
**/*.pact
40 changes: 34 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,31 +32,59 @@ For more information please visit:

## Extension Settings

## `pact.executable`
### `pact.executable`

- **Type**: `string`
- **Default**: `"pact"`
- **Description**: The name or path to the pact executable, if version is not pact 5 we will run `npx pactup install development-latest` to install pact 5

## `pact.enableTrace`
### `pact.enableTrace`

- **Type**: `boolean`
- **Default**: `true`
- **Description**: Enable pact trace output.

## `pact.enableCoverage`
### `pact.enableCoverage`

- **Type**: `boolean`
- **Default**: `false`
- **Description**: Enable code coverage. Requires coverage extension for display.

## `pact.enableLsp`
### `pact.enableLsp`

- **Type**: `boolean`
- **Default**: `true`
- **Description**: Enable the pact-lsp.
-
- `pact.pactExecutable` pact binary path if not provider we use

## Extension commands

`Pact: Restart Language Server` to restart pact lsp.

## Development

To get started with local development

- Make sure you have nodejs and pnpm installed.
- `pnpm i` install dependencies.
- Press F5 to run `pnpm dev` and launch vscode extension debug host

Testing, Linting and Type checking

- `pnpm test` for vitest.
- `pnpm lint` for eslint.
- `pnpm typecheck` for typescript type checking

Building

- `pnpm package` to create `.vsix` file.

Update version and create a release tag.

- `pnpm release` it will ask for version pump type then will update package.json version and creates a git tag and pushes.

Publishing

- Run `pnpm run publish` to package and publish the extension.

## Release Notes

Expand Down
15 changes: 8 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
"commands": [
{
"command": "pact.restartLanguageServer",
"title": "Pact: Restart Language Server"
"title": "Restart Language Server",
"category": "Pact"
}
],
"languages": [
Expand Down Expand Up @@ -81,12 +82,13 @@
}
},
"scripts": {
"build": "tsup src/index.ts --external vscode",
"dev": "nr build --watch",
"build": "tsup",
"dev": "tsup --watch src",
"lint": "eslint .",
"format": "prettier --write .",
"vscode:prepublish": "nr build",
"publish": "vsce publish --no-dependencies",
"pack": "vsce package --no-dependencies",
"publish": "vsce publish",
"package": "vsce package",
"test": "vitest",
"typecheck": "tsc --noEmit",
"release": "bumpp && nr publish",
Expand All @@ -108,9 +110,8 @@
"@lcov-viewer/cli": "^1.3.0",
"@types/glob": "^8.1.0",
"@types/mocha": "^10.0.6",
"@typescript-eslint/eslint-plugin": "^7.7.1",
"@typescript-eslint/parser": "^7.7.1",
"@vscode/test-electron": "^2.3.9",
"@vscode/test-cli": "^0.0.9",
"esbuild": "^0.20.2",
"glob": "^10.3.12",
"mocha": "^10.4.0",
Expand Down
Loading

0 comments on commit 51cee4f

Please sign in to comment.