Skip to content

Commit

Permalink
chore: config esbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
洛竹 committed Aug 12, 2021
1 parent f28877f commit c9fd374
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 25 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -3,3 +3,5 @@ dist
node_modules
.vscode-test/
*.vsix
yarn-error.log
.DS_Store
8 changes: 3 additions & 5 deletions .vscode/extensions.json
@@ -1,7 +1,5 @@
{
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": [
"dbaeumer.vscode-eslint"
]
// See http://go.microsoft.com/fwlink/?LinkId=827846
// for the documentation about the extensions.json format
"recommendations": ["dbaeumer.vscode-eslint", "connor4312.esbuild-problem-matchers"]
}
32 changes: 16 additions & 16 deletions .vscode/tasks.json
@@ -1,20 +1,20 @@
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
{
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "watch",
"problemMatcher": "$tsc-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
"version": "2.0.0",
"tasks": [
{
"type": "npm",
"script": "esbuild-watch",
"problemMatcher": "$esbuild-watch",
"isBackground": true,
"presentation": {
"reveal": "never"
},
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
2 changes: 2 additions & 0 deletions .vscodeignore
Expand Up @@ -13,3 +13,5 @@ vsc-extension-quickstart.md
.cz-config.js
.prettierrc.js
commitlint.config.js
**/node_modules/**
yarn-error.log
11 changes: 7 additions & 4 deletions package.json
Expand Up @@ -27,11 +27,13 @@
]
},
"scripts": {
"vscode:prepublish": "yarn run compile",
"compile": "tsc -p ./",
"watch": "tsc -watch -p ./",
"pretest": "yarn run compile && yarn run lint",
"vscode:prepublish": "yarn esbuild-base --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
"esbuild": "yarn esbuild-base --sourcemap",
"esbuild-watch": "yarn esbuild-base --sourcemap --watch",
"test-compile": "tsc -p ./",
"lint": "eslint src --ext ts",
"pretest": "yarn test-compile && yarn lint",
"test": "node ./out/test/runTest.js",
"commit": "git cz",
"package": "vsce package --no-yarn"
Expand Down Expand Up @@ -66,6 +68,7 @@
"commitizen": "^4.2.4",
"commitlint-config-cz": "^0.13.2",
"cz-customizable": "^6.3.0",
"esbuild": "^0.12.19",
"eslint": "^7.19.0",
"glob": "^7.1.6",
"lint-staged": "^11.1.2",
Expand Down
5 changes: 5 additions & 0 deletions yarn.lock
Expand Up @@ -1177,6 +1177,11 @@ es-to-primitive@^1.2.1:
is-date-object "^1.0.1"
is-symbol "^1.0.2"

esbuild@^0.12.19:
version "0.12.19"
resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.12.19.tgz#ab849766705a5093df5acd8ec2f6ba2159a38a6c"
integrity sha512-5NuT1G6THW7l3fsSCDkcPepn24R0XtyPjKoqKHD8LfhqMXzCdz0mrS9HgO6hIhzVT7zt0T+JGbzCqF5AH8hS9w==

escalade@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.1.tgz#d8cfdc7000965c5a0174b4a82eaa5c0552742e40"
Expand Down

0 comments on commit c9fd374

Please sign in to comment.