Skip to content
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: 3 additions & 3 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
"type": "extensionHost",
"request": "launch",
"runtimeExecutable": "${execPath}",
"args": ["--extensionDevelopmentPath=${workspaceFolder}"],
"args": ["--extensionDevelopmentPath=${workspaceFolder}/plugins/vscode"],
"sourceMaps": true,
"outFiles": ["${workspaceFolder}/dist/**/*.js"],
"outFiles": ["${workspaceFolder}/plugins/vscode/dist/**/*.js"],
"preLaunchTask": "${defaultBuildTask}",
"env": {
"NODE_ENV": "development",
"VSCODE_DEBUG_MODE": "true"
},
"resolveSourceMapLocations": ["${workspaceFolder}/**", "!**/node_modules/**"],
"resolveSourceMapLocations": ["${workspaceFolder}/plugins/vscode/**", "!**/node_modules/**"],
"presentation": {
"hidden": false,
"group": "tasks",
Expand Down
6 changes: 3 additions & 3 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"tasks": [
{
"label": "watch",
"dependsOn": ["npm: dev", "npm: watch:tsc", "npm: watch:esbuild"],
"dependsOn": ["npm: dev", "npm: watch:tsc", "npm: watch:vscode"],
"presentation": {
"reveal": "never"
},
Expand Down Expand Up @@ -37,9 +37,9 @@
}
},
{
"label": "npm: watch:esbuild",
"label": "npm: watch:vscode",
"type": "npm",
"script": "watch:esbuild",
"script": "watch:vscode",
"group": "build",
"problemMatcher": "$esbuild-watch",
"isBackground": true,
Expand Down
212 changes: 0 additions & 212 deletions esbuild.js

This file was deleted.

7 changes: 5 additions & 2 deletions knip.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"$schema": "https://unpkg.com/knip@latest/schema.json",
"entry": ["src/extension.ts", "src/activate/index.ts", "webview-ui/src/index.tsx"],
"entry": ["plugins/vscode/extension.ts", "src/activate/index.ts", "webview-ui/src/index.tsx"],
"project": ["src/**/*.ts", "webview-ui/src/**/*.{ts,tsx}"],
"ignore": [
"**/__mocks__/**",
Expand All @@ -19,7 +19,10 @@
"src/exports/**",
"src/schemas/ipc.ts",
"src/extension.ts",
"scripts/**"
"scripts/**",
"plugins/vscode/src/extension.ts",
"plugins/vscode/scripts/**",
"plugins/vscode/build.js"
],
"workspaces": {
"webview-ui": {
Expand Down
36 changes: 36 additions & 0 deletions package-lock.json

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

15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -350,13 +350,14 @@
}
},
"scripts": {
"build": "npm run vsix",
"build": "npm-run-all -l -p build:* && npm run vsix",
"build:vscode": "cd plugins/vscode && npm run build",
"build:webview": "cd webview-ui && npm run build",
"build:esbuild": "node esbuild.js --production",
"compile": "tsc -p . --outDir out && node esbuild.js",
"compile": "tsc -p . --outDir out && cd plugins/vscode && node build.js",
"install:all": "npm install npm-run-all && npm-run-all -l -p install-*",
"install-extension": "npm install",
"install-webview": "cd webview-ui && npm install",
"install-vscode": "cd plugins/vscode && npm install",
"install-e2e": "cd e2e && npm install",
"lint": "npm-run-all -l -p lint:*",
"lint:extension": "eslint src --ext ts",
Expand All @@ -366,7 +367,7 @@
"check-types:extension": "tsc --noEmit",
"check-types:webview": "cd webview-ui && npm run check-types",
"check-types:e2e": "cd e2e && npm run check-types",
"package": "npm-run-all -l -p build:webview build:esbuild check-types lint",
"package": "npm-run-all -l -p build:webview build:vscode check-types lint",
"pretest": "npm run compile",
"dev": "cd webview-ui && npm run dev",
"test": "node scripts/run-tests.js",
Expand All @@ -377,14 +378,15 @@
"publish": "npm run build && changeset publish && npm install --package-lock-only",
"version-packages": "changeset version && npm install --package-lock-only",
"vscode:prepublish": "npm run package",
"vsix": "rimraf bin && mkdirp bin && npx vsce package --out bin",
"vsix": "cd plugins/vscode && npm run vsix",
"watch": "npm-run-all -l -p watch:*",
"watch:esbuild": "node esbuild.js --watch",
"watch:vscode": "cd plugins/vscode && node build.js --watch",
"watch:tsc": "tsc --noEmit --watch --project tsconfig.json",
"watch-tests": "tsc -p . -w --outDir out",
"changeset": "changeset",
"knip": "knip --include files",
"clean": "npm-run-all -l -p clean:*",
"clean:vscode": "cd plugins/vscode && npm run clean",
"clean:extension": "rimraf bin dist out",
"clean:webview": "cd webview-ui && npm run clean",
"clean:e2e": "cd e2e && npm run clean",
Expand Down Expand Up @@ -470,6 +472,7 @@
"@vscode/test-electron": "^2.5.2",
"@vscode/vsce": "^3.3.2",
"esbuild": "^0.24.0",
"esbuild-plugin-tsconfig-paths": "^1.0.1",
"eslint": "^8.57.0",
"execa": "^9.5.2",
"glob": "^11.0.1",
Expand Down
Loading