Skip to content

Commit

Permalink
feat: use reactive-vscode and vscode-ext-gen (#13)
Browse files Browse the repository at this point in the history
Co-authored-by: Anthony Fu <[email protected]>
  • Loading branch information
KermanX and antfu authored Aug 12, 2024
1 parent c46355e commit 135ba2e
Show file tree
Hide file tree
Showing 9 changed files with 1,315 additions and 701 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ lib-cov
logs
node_modules
temp
src/generated
3 changes: 2 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"recommendations": [
"amodio.tsl-problem-matcher"
"amodio.tsl-problem-matcher",
"emeraldwalk.runonsave"
]
}
12 changes: 10 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
{
// Enable the ESlint flat config support
"eslint.experimental.useFlatConfig": true,
// Auto generate metadata
"emeraldwalk.runonsave": {
"commands": [
{
"match": "package.json",
"isAsync": true,
"cmd": "npm run update"
}
]
},

// Disable the default formatter, use eslint instead
"prettier.enable": false,
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# ext-name

<a href="https://marketplace.visualstudio.com/items?itemName=antfu.ext-name" target="__blank"><img src="https://img.shields.io/visual-studio-marketplace/v/antfu.ext-name.svg?color=eee&amp;label=VS%20Code%20Marketplace&logo=visual-studio-code" alt="Visual Studio Marketplace Version" /></a>
<a href="https://kermanx.github.io/reactive-vscode/" target="__blank"><img src="https://img.shields.io/badge/made_with-reactive--vscode-%23007ACC?style=flat&labelColor=%23229863" alt="Made with reacrive-vscode" /></a>

## Sponsors

Expand Down
41 changes: 26 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"displayName": "ext-name",
"version": "0.0.0",
"private": true,
"packageManager": "pnpm@9.3.0",
"packageManager": "pnpm@9.7.0",
"description": "",
"author": "Anthony Fu <[email protected]>",
"license": "MIT",
Expand All @@ -29,14 +29,24 @@
"dist"
],
"engines": {
"vscode": "^1.90.0"
"vscode": "^1.92.0"
},
"activationEvents": [
"onStartupFinished"
],
"contributes": {
"commands": [],
"configuration": {
"type": "object",
"title": "ext-name",
"properties": {}
}
},
"scripts": {
"build": "tsup src/index.ts --external vscode",
"dev": "nr build --watch",
"prepare": "nr update",
"update": "vscode-ext-gen --output src/generated/meta.ts",
"lint": "eslint .",
"vscode:prepublish": "nr build",
"publish": "vsce publish --no-dependencies",
Expand All @@ -46,19 +56,20 @@
"release": "bumpp && nr publish"
},
"devDependencies": {
"@antfu/eslint-config": "^2.21.1",
"@antfu/ni": "^0.21.12",
"@types/node": "^20.14.2",
"@types/vscode": "^1.90.0",
"@vscode/vsce": "^2.27.0",
"bumpp": "^9.4.1",
"eslint": "^9.5.0",
"@antfu/eslint-config": "^2.25.1",
"@antfu/ni": "^0.22.1",
"@types/node": "^22.2.0",
"@types/vscode": "^1.92.0",
"@vscode/vsce": "^2.31.1",
"bumpp": "^9.5.0",
"eslint": "^9.9.0",
"esno": "^4.7.0",
"pnpm": "^9.3.0",
"rimraf": "^5.0.7",
"tsup": "^8.1.0",
"typescript": "^5.4.5",
"vite": "^5.3.1",
"vitest": "^1.6.0"
"pnpm": "^9.7.0",
"reactive-vscode": "0.2.0-beta.9",
"tsup": "^8.2.4",
"typescript": "^5.5.4",
"vite": "^5.4.0",
"vitest": "^2.0.5",
"vscode-ext-gen": "^0.3.6"
}
}
Loading

0 comments on commit 135ba2e

Please sign in to comment.