Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: bundle extension #506

Merged
merged 3 commits into from
Aug 26, 2021
Merged
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
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ jobs:
- name: Lint
run: npm run lint

- name: Compile
run: npm run compile
- name: Type check
run: npm run test-compile

- name: Package
run: npx vsce@1.93.0 package -o vscode-deno.vsix
Expand Down
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
out
dist
node_modules
client/server
.vscode-test
*.vsix
!.vscode
*.vsix
16 changes: 8 additions & 8 deletions .vscodeignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
.vscode/**
**/*.ts
**/*.map
.gitignore
**/tsconfig.json
**/tsconfig.base.json

/typescript-deno-plugin
.vscode
node_modules
out
src
*.map
docs
tsconfig.json
/screenshots/*.png
17 changes: 17 additions & 0 deletions package-lock.json

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

12 changes: 8 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"onCommand:deno.reloadImportRegistries",
"onWebviewPanel:welcomeDeno"
],
"main": "./client/out/extension",
"main": "./client/dist/main",
"contributes": {
"breakpoints": [
{
Expand Down Expand Up @@ -446,8 +446,11 @@
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -b",
"vscode:prepublish": "npm run esbuild-plugin && npm run esbuild-base",
"esbuild-base": "esbuild ./client/src/extension.ts --bundle --outfile=client/dist/main.js --external:vscode --format=cjs --platform=node",
"esbuild-plugin": "esbuild ./typescript-deno-plugin/src/index.ts --bundle --outfile=typescript-deno-plugin/dist/index.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run esbuild-plugin -- --sourcemap && npm run esbuild-base -- --sourcemap",
"test-compile": "tsc -b",
"fmt": "deno fmt .vscode .github client/src media typescript-deno-plugin/src typescript-deno-plugin/*.md docs package.json tsconfig.json README.md CHANGELOG.md",
"lint": "deno lint --unstable client/src typescript-deno-plugin/src docs",
"watch": "tsc -b -w",
Expand All @@ -458,6 +461,7 @@
},
"devDependencies": {
"@types/node": "^14.14.25",
"esbuild": "^0.12.22",
"typescript": "^4.3.5"
}
}
}
2 changes: 1 addition & 1 deletion typescript-deno-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"private": true,
"version": "3.8.1",
"publisher": "deno-land",
"main": "./out/index",
"main": "./dist/index",
"repository": {
"type": "git",
"url": "https://github.com/denoland/vscode_deno"
Expand Down