Skip to content

Commit d9cf7a5

Browse files
committed
📦 Set up VSCode extension packaging and publishing workflow
Configure complete build and publish pipeline for VSCode extension - Add .vscodeignore file to exclude development files from package - Update package.json version from 1.0.0 to 1.0.1 - Mark package as private to prevent accidental npm publishing - Add comprehensive npm scripts for packaging and publishing - Include scripts for VSCE and Open VSX marketplace publishing - Add development dependencies: @vscode/vsce, ovsx, prettier - Remove old VSIX package file (1.0.0) - Add new Makefile targets for packaging and publishing workflows - Include separate targets for each marketplace and convenience aggregator
1 parent 9718aad commit d9cf7a5

File tree

5 files changed

+77
-6
lines changed

5 files changed

+77
-6
lines changed

Makefile

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.PHONY: help setup test lint format clean install-hooks compile vscode
1+
.PHONY: help setup test lint format clean install-hooks compile vscode vscode-package vscode-publish-vsce vscode-publish-ovsx vscode-publish
22

33
# Colors matching SilkCircuit theme
44
PURPLE := \033[38;2;199;146;234m
@@ -32,6 +32,8 @@ help:
3232
@echo " $(PURPLE)$(STAR) install-hooks$(RESET) $(GRAY)$(RESET) Install git pre-commit hooks"
3333
@echo " $(PURPLE)$(STAR) compile$(RESET) $(GRAY)$(RESET) Compile theme for performance"
3434
@echo " $(PURPLE)$(STAR) vscode$(RESET) $(GRAY)$(RESET) Build VSCode theme package"
35+
@echo " $(PURPLE)$(STAR) vscode-package$(RESET) $(GRAY)$(RESET) Package VSCode extension (VSIX)"
36+
@echo " $(PURPLE)$(STAR) vscode-publish$(RESET) $(GRAY)$(RESET) Publish to VSCode + Open VSX (requires tokens)"
3537
@echo ""
3638

3739
# Install development dependencies
@@ -165,6 +167,36 @@ vscode:
165167
@echo " $(GRAY)Extensions → ... → Install from VSIX$(RESET)"
166168
@echo ""
167169

170+
# Explicit packaging target
171+
vscode-package:
172+
@echo ""
173+
@echo "$(PURPLE)$(ARROW)$(RESET) $(PINK)$(BOLD)Packaging VSCode Extension (VSIX)$(RESET)"
174+
@echo ""
175+
@cd extras/vscode && npx @vscode/vsce package --no-dependencies | cat
176+
@echo " $(GREEN)$(CHECK)$(RESET) VSIX created in extras/vscode/"
177+
178+
# Publish to VS Code Marketplace (requires VSCE_PAT)
179+
vscode-publish-vsce:
180+
@echo ""
181+
@echo "$(PURPLE)$(ARROW)$(RESET) $(PINK)$(BOLD)Publishing to VS Code Marketplace$(RESET)"
182+
@echo ""
183+
@cd extras/vscode && npx @vscode/vsce publish --no-dependencies | cat
184+
@echo " $(GREEN)$(CHECK)$(RESET) Published to VS Code Marketplace"
185+
186+
# Publish to Open VSX (requires OVSX_PAT)
187+
vscode-publish-ovsx:
188+
@echo ""
189+
@echo "$(PURPLE)$(ARROW)$(RESET) $(PINK)$(BOLD)Publishing to Open VSX$(RESET)"
190+
@echo ""
191+
@cd extras/vscode && npx ovsx publish | cat
192+
@echo " $(GREEN)$(CHECK)$(RESET) Published to Open VSX"
193+
194+
# Convenience aggregator target
195+
vscode-publish: vscode-publish-vsce vscode-publish-ovsx
196+
@echo ""
197+
@echo "$(GREEN)$(STAR) VSCode extension published to both marketplaces$(RESET)"
198+
@echo ""
199+
168200
# CI target
169201
ci: lint test
170202
@echo ""

extras/vscode/.vscodeignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Only ship what's needed for the theme
2+
**/.git*
3+
**/.DS_Store
4+
**/.vscode/**
5+
**/node_modules/**
6+
**/tmp/**
7+
**/scripts/**
8+
**/tests/**
9+
**/*.psd
10+
**/*.ai
11+
**/*.zip
12+
**/*.tar
13+
**/*.tar.gz
14+
**/*.tgz
15+
**/*.sh
16+
**/*.py
17+
**/*.toml
18+
**/*.lock
19+
**/*.md
20+
!README.md
21+
!package.json
22+
!icon.png
23+
!silkcircuit-*.json

extras/vscode/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,24 +66,24 @@ Enhanced version with special brightness effects
6666
<table>
6767
<tr>
6868
<td align="center" width="50%">
69-
<img src="./assets/silkcircuit-vscode-neon.png" alt="SilkCircuit Neon in VSCode" width="100%" />
69+
<img src="https://github.com/hyperb1iss/silkcircuit-nvim/raw/HEAD/extras/vscode/assets/silkcircuit-vscode-neon.png" alt="SilkCircuit Neon in VSCode" width="100%" />
7070
<br/>
7171
<sub><b>Neon</b> — maximum intensity</sub>
7272
</td>
7373
<td align="center" width="50%">
74-
<img src="./assets/silkcircuit-vscode-vibrant.png" alt="SilkCircuit Vibrant in VSCode" width="100%" />
74+
<img src="https://github.com/hyperb1iss/silkcircuit-nvim/raw/HEAD/extras/vscode/assets/silkcircuit-vscode-vibrant.png" alt="SilkCircuit Vibrant in VSCode" width="100%" />
7575
<br/>
7676
<sub><b>Vibrant</b> — 85% intensity</sub>
7777
</td>
7878
</tr>
7979
<tr>
8080
<td align="center" width="50%">
81-
<img src="./assets/silkcircuit-vscode-soft.png" alt="SilkCircuit Soft in VSCode" width="100%" />
81+
<img src="https://github.com/hyperb1iss/silkcircuit-nvim/raw/HEAD/extras/vscode/assets/silkcircuit-vscode-soft.png" alt="SilkCircuit Soft in VSCode" width="100%" />
8282
<br/>
8383
<sub><b>Soft</b> — gentle 70%</sub>
8484
</td>
8585
<td align="center" width="50%">
86-
<img src="./assets/silkcircuit-vscode-glow.png" alt="SilkCircuit Glow in VSCode" width="100%" />
86+
<img src="https://github.com/hyperb1iss/silkcircuit-nvim/raw/HEAD/extras/vscode/assets/silkcircuit-vscode-glow.png" alt="SilkCircuit Glow in VSCode" width="100%" />
8787
<br/>
8888
<sub><b>Glow</b> — ultra‑dark with enhanced brightness</sub>
8989
</td>

extras/vscode/package.json

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license": "MIT",
55
"displayName": "SilkCircuit Theme",
66
"description": "Electric dreams for VS Code - Neon purples, blazing pinks, and glowing cyan accents",
7-
"version": "1.0.0",
7+
"version": "1.0.2",
88
"publisher": "hyperb1iss",
99
"icon": "icon.png",
1010
"galleryBanner": {
@@ -19,6 +19,7 @@
1919
"url": "https://github.com/hyperb1iss/silkcircuit-nvim/issues"
2020
},
2121
"homepage": "https://github.com/hyperb1iss/silkcircuit-nvim#readme",
22+
"private": true,
2223
"engines": {
2324
"vscode": "^1.60.0"
2425
},
@@ -59,5 +60,20 @@
5960
"path": "./silkcircuit-glow.json"
6061
}
6162
]
63+
},
64+
"scripts": {
65+
"clean": "rm -f silkcircuit-*.vsix",
66+
"package": "vsce package --no-dependencies",
67+
"publish:vsce": "vsce publish --no-dependencies",
68+
"publish:ovsx": "ovsx publish",
69+
"publish": "npm run package && npm run publish:vsce && npm run publish:ovsx",
70+
"version:patch": "vsce publish patch",
71+
"version:minor": "vsce publish minor",
72+
"version:major": "vsce publish major"
73+
},
74+
"devDependencies": {
75+
"@vscode/vsce": "^3.0.0",
76+
"ovsx": "^0.9.2",
77+
"prettier": "^3.3.3"
6278
}
6379
}
-22 KB
Binary file not shown.

0 commit comments

Comments
 (0)