Skip to content
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
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [1.1.0] - Unreleased

### Added:

- Snippets: Added `devproxy-action-setup` - GitHub Actions step: Setup Dev Proxy (recommended)
- Snippets: Added `devproxy-action-start` - GitHub Actions step: Start Dev Proxy manually
- Snippets: Added `devproxy-action-stop` - GitHub Actions step: Stop Dev Proxy
- Snippets: Added `devproxy-action-record-start` - GitHub Actions step: Start Dev Proxy recording
- Snippets: Added `devproxy-action-record-stop` - GitHub Actions step: Stop Dev Proxy recording
- Snippets: Added `devproxy-action-chromium-cert` - GitHub Actions step: Install Dev Proxy certificate for Chromium browsers

### Changed:

- Snippets: All snippets that reference schemas updated to use `v1.1.0` schema
Expand Down
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ See [Dev Proxy MCP Server](https://github.com/dev-proxy-tools/mcp) for more info

### Snippets

#### JSON

| Prefix | Description |
| ------ | ----------- |
| `devproxy-config-file` | Dev Proxy config file |
Expand Down Expand Up @@ -179,6 +181,17 @@ See [Dev Proxy MCP Server](https://github.com/dev-proxy-tools/mcp) for more info
| `devproxy-task-start` | Start Dev Proxy VS Code Task |
| `devproxy-task-stop` | Stop Dev Proxy VS Code Task |

#### YAML

| Prefix | Description |
| ------ | ----------- |
| `devproxy-action-setup` | GitHub Actions step: Setup Dev Proxy (recommended) |
| `devproxy-action-start` | GitHub Actions step: Start Dev Proxy manually |
| `devproxy-action-stop` | GitHub Actions step: Stop Dev Proxy |
| `devproxy-action-record-start` | GitHub Actions step: Start Dev Proxy recording |
| `devproxy-action-record-stop` | GitHub Actions step: Stop Dev Proxy recording |
| `devproxy-action-chromium-cert` | GitHub Actions step: Install Dev Proxy certificate for Chromium browsers |

### Status Bar

- Display installed Dev Proxy version
Expand Down
12 changes: 10 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,19 @@
"snippets": [
{
"language": "json",
"path": "./dist/snippets.json"
"path": "./dist/json-snippets.json"
},
{
"language": "jsonc",
"path": "./dist/snippets.json"
"path": "./dist/json-snippets.json"
},
{
"language": "yaml",
"path": "./dist/yaml-snippets.json"
},
{
"language": "yml",
"path": "./dist/yaml-snippets.json"
}
],
"configuration": {
Expand Down
File renamed without changes.
67 changes: 67 additions & 0 deletions src/snippets/yaml-snippets.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"DevProxyActionSetup": {
"prefix": "devproxy-action-setup",
"body": [
"- name: Setup Dev Proxy",
" id: setup-devproxy",
" uses: dev-proxy-tools/actions/setup@v1",
" with:",
" version: ${1:latest} # Optional: specify version, e.g. v1.0.0",
" auto-start: ${2:true} # Optional: automatically start Dev Proxy",
" auto-stop: ${3:true} # Optional: automatically stop Dev Proxy after workflow completes",
" auto-record: ${4:false} # Optional: automatically start Dev Proxy in recording mode",
" config-file: ${5:devproxyrc.json} # Optional: path to Dev Proxy config file",
" log-file: ${6:devproxy.log} # Optional: path to log Dev Proxy output",
" enable-cache: ${7:true} # Optional: enable caching of Dev Proxy installation",
" report-job-summary: ${8:\\$GITHUB_STEP_SUMMARY} # Optional: path to output report content"
],
"description": "GitHub Actions step: Setup Dev Proxy (recommended)"
},
"DevProxyActionStart": {
"prefix": "devproxy-action-start",
"body": [
"- name: Start Dev Proxy",
" id: start-devproxy",
" uses: dev-proxy-tools/actions/start@v1",
" with:",
" auto-stop: ${1:true} # Optional: automatically stop Dev Proxy after workflow completes",
" auto-record: ${2:false} # Optional: automatically start Dev Proxy in recording mode",
" config-file: ${3:devproxyrc.json} # Optional: path to Dev Proxy config file",
" log-file: ${4:devproxy.log} # Optional: path to log Dev Proxy output",
" report-job-summary: ${5:\\$GITHUB_STEP_SUMMARY} # Optional: path to output report content"
],
"description": "GitHub Actions step: Start Dev Proxy manually"
},
"DevProxyActionStop": {
"prefix": "devproxy-action-stop",
"body": [
"- name: Stop Dev Proxy",
" uses: dev-proxy-tools/actions/stop@v1"
],
"description": "GitHub Actions step: Stop Dev Proxy"
},
"DevProxyActionRecordStart": {
"prefix": "devproxy-action-record-start",
"body": [
"- name: Start recording",
" uses: dev-proxy-tools/actions/record-start@v1"
],
"description": "GitHub Actions step: Start Dev Proxy recording"
},
"DevProxyActionRecordStop": {
"prefix": "devproxy-action-record-stop",
"body": [
"- name: Stop recording",
" uses: dev-proxy-tools/actions/record-stop@v1"
],
"description": "GitHub Actions step: Stop Dev Proxy recording"
},
"DevProxyActionChromiumCert": {
"prefix": "devproxy-action-chromium-cert",
"body": [
"- name: Install Dev Proxy certificate for Chromium",
" uses: dev-proxy-tools/actions/chromium-cert@v1"
],
"description": "GitHub Actions step: Install Dev Proxy certificate for Chromium browsers"
}
}
7 changes: 4 additions & 3 deletions webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ const extensionConfig = {
plugins: [
new CopyPlugin({
patterns: [
{ from: 'src/snippets.json', to: '[name][ext]' },
{ from: 'src/icon.png', to: '[name][ext]' },
{ from: 'LICENSE', to: '[name][ext]' },
{from: 'src/snippets/json-snippets.json', to: '[name][ext]'},
{from: 'src/snippets/yaml-snippets.json', to: '[name][ext]'},
{from: 'src/icon.png', to: '[name][ext]'},
{from: 'LICENSE', to: '[name][ext]'},
],
}),
],
Expand Down
Loading