Skip to content

Commit

Permalink
improve extension
Browse files Browse the repository at this point in the history
  • Loading branch information
hverlin committed Nov 11, 2024
1 parent 9781850 commit 9c96146
Show file tree
Hide file tree
Showing 8 changed files with 183 additions and 1,052 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:

- run: corepack enable && pnpm i --frozen-lockfile
- run: pnpm lint
- run: pnpm ts-check
- run: pnpm compile

publish-vscode-openvsx:
Expand Down
18 changes: 16 additions & 2 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
[tools]
node = '22'

[tasks]
run = 'echo "Hello, World!"'
[tasks.dev]
run = 'pnpm dev'

[tasks.ts-check]
run = 'pnpm ts-check'
sources = ['src/**/*.ts']

[tasks.biome-lint]
run = 'pnpm lint'
sources = ['src/**/*.ts']

[tasks.lint]
depends = ['ts-check', 'biome-lint']

[tasks.lint-fix]
run = 'pnpm lint-fix'
13 changes: 6 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,20 +73,19 @@
},
"scripts": {
"vscode:prepublish": "npm run package --no-optional",
"compile": "webpack",
"watch": "webpack --watch",
"compile": "rsbuild build",
"dev": "rsbuild dev",
"ts-check": "tsc --noEmit",
"lint-fix": "biome check --fix",
"lint": "biome ci",
"package": "webpack --mode production --devtool hidden-source-map"
"package": "rsbuild build"
},
"devDependencies": {
"@biomejs/biome": "1.9.4",
"@rsbuild/core": "^1.1.0",
"@types/node": "^22.9.0",
"@types/vscode": "^1.85.0",
"ts-loader": "^9.5.1",
"typescript": "^5.6.3",
"webpack": "5.96.1",
"webpack-cli": "^5.1.4"
"typescript": "^5.6.3"
},
"packageManager": "pnpm@9.12.2+sha512.22721b3a11f81661ae1ec68ce1a7b879425a1ca5b991c975b074ac220b187ce56c708fe5db69f4c962c989452eee76c82877f4ee80f474cebd61ee13461b6228"
}
1,135 changes: 139 additions & 996 deletions pnpm-lock.yaml

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions rsbuild.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
import { defineConfig } from "@rsbuild/core";

export default defineConfig({
dev: {
writeToDisk: true,
hmr: false,
},
server: {},
source: {
entry: { extension: "./src/extension.ts" },
},
output: {
sourceMap: { js: "source-map" },
target: "node",
externals: {
vscode: "commonjs vscode",
},
},
});
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export function activate(context: vscode.ExtensionContext) {
);
statusBarItem.show();
statusBarItem.text = "$(tools) Mise";
statusBarItem.tooltip = "Click to refresh Mise views";
statusBarItem.tooltip = "Click to refresh Mise";

vscode.window.registerTreeDataProvider("miseTasksView", tasksProvider);
vscode.window.registerTreeDataProvider("miseToolsView", toolsProvider);
Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"rootDir": "src",
"strict": true
},
"exclude": ["node_modules", ".vscode-test"]
"exclude": ["node_modules", ".vscode-test", "rsbuild.config.ts"]
}
45 changes: 0 additions & 45 deletions webpack.config.js

This file was deleted.

0 comments on commit 9c96146

Please sign in to comment.