diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index a462ff3..4c44dd4 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -6,7 +6,7 @@ "image": "mcr.microsoft.com/devcontainers/typescript-node:1-20-bookworm", "features": { "ghcr.io/devcontainers/features/git:1": {} - } + }, // Features to add to the dev container. More info: https://containers.dev/features. // "features": {}, @@ -15,7 +15,7 @@ // "forwardPorts": [], // Use 'postCreateCommand' to run commands after the container is created. - // "postCreateCommand": "yarn install", + "postCreateCommand": "npm install" // Configure tool-specific properties. // "customizations": {}, diff --git a/.vscode/launch.json b/.vscode/launch.json index 3834215..e056382 100644 --- a/.vscode/launch.json +++ b/.vscode/launch.json @@ -8,7 +8,7 @@ "request": "launch", "args": ["--extensionDevelopmentPath=${workspaceRoot}"], "sourceMaps": true, - "preLaunchTask": "npm: compile", + "preLaunchTask": "npm: build", "outFiles": ["${workspaceFolder}/dist/**/*.js"], }, { diff --git a/.vscode/tasks.json b/.vscode/tasks.json index cce1805..2c7b5b9 100644 --- a/.vscode/tasks.json +++ b/.vscode/tasks.json @@ -11,25 +11,24 @@ }, { "type": "npm", - "script": "format", + "script": "package", "problemMatcher": [], - "label": "npm: format", - "detail": "prettier --single-quote --print-width 88 --write \"src/**/*.js\"" + "label": "npm: package", + "detail": "webpack --mode production && vsce package" }, { "type": "npm", "script": "watch", - "problemMatcher": "$ts-webpack-watch", - "isBackground": true, - "presentation": { - "reveal": "never", - "group": "watchers" - }, - "group": { - "kind": "build", - "isDefault": true - } + "problemMatcher": [], + "label": "npm: watch", + "detail": "webpack --mode production --watch" + }, + { + "type": "npm", + "script": "format", + "problemMatcher": [], + "label": "npm: format", + "detail": "eslint src --ext ts" }, - ] } \ No newline at end of file diff --git a/package.json b/package.json index a22e7fe..06ad547 100644 --- a/package.json +++ b/package.json @@ -95,11 +95,11 @@ } }, "scripts": { - "compile": "webpack --mode production", - "vscode:package": "webpack --mode production && vsce package", - "vscode:publish": "vsce publish", + "build": "webpack --mode production", + "package": "webpack --mode production && vsce package", + "publish": "vsce publish", "watch": "webpack --mode production --watch", - "lint": "eslint src --ext ts" + "format": "eslint src --ext ts" }, "dependencies": { "fs-plus": "~3.1.1",