Skip to content

Commit

Permalink
chore: ignore node_modules when using vsce for bundling (#170)
Browse files Browse the repository at this point in the history
* chore: ignore node_modules when using vsce for bundling

* feat: 🎸 use esbuild instead

* Update .vscodeignore

Co-authored-by: Sophie Dankel <47993817+sdankel@users.noreply.github.com>

* fix: 🐛 address issue

* chore: update docs

* Update client/src/client.ts

---------

Co-authored-by: Sophie Dankel <47993817+sdankel@users.noreply.github.com>
  • Loading branch information
bethatguyad and sdankel committed Apr 17, 2024
1 parent 5e915cf commit b628e07
Show file tree
Hide file tree
Showing 7 changed files with 634 additions and 14 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,3 +107,6 @@ dist
out
.vscode-test
sway-vscode-plugin.vsix

# .vsix
*.vsix
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"outFiles": ["${workspaceRoot}/client/out/**/*.js"],
"preLaunchTask": {
"type": "npm",
"script": "watch"
"script": "esbuild-watch"
}
}
],
Expand Down
2 changes: 1 addition & 1 deletion .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"panel": "dedicated",
"reveal": "never"
},
"problemMatcher": ["$tsc-watch"]
"problemMatcher": ["$esbuild-watch"]
}
]
}
3 changes: 3 additions & 0 deletions .vscodeignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@
.vscode-test/**
.gitignore
vsc-extension-quickstart.md
node_modules
**/*.ts
**/tsconfig.json
3 changes: 1 addition & 2 deletions docs/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,7 @@ Firstly, uninstall the official release of the extension and reload VS Code if y
cd sway-vscode-plugin
npm i
git checkout <branch>
vsce package -o sway-vscode-plugin-dev.vsix
code --install-extension sway-vscode-plugin-dev.vsix
npm run install-extension
```

## Testing in Debug mode
Expand Down

0 comments on commit b628e07

Please sign in to comment.