Skip to content

Commit

Permalink
VSC: Add icons and README to the VSC extension vsix output
Browse files Browse the repository at this point in the history
  • Loading branch information
kosude committed May 27, 2024
1 parent f553dc3 commit 6b0b3b8
Show file tree
Hide file tree
Showing 6 changed files with 73 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ dist/

node_modules/

# this file is generated on make because vsce requires a LICENSE file (misspelt), and is just a copy of LICENCE.
# LICENSE is generated on make because vsce requires a LICENSE file (misspelt), and is just a copy of LICENCE.
integration/vscode-ext/LICENSE
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,10 @@ vscode_ext: | validate_npm $(VSCODE_EXT_PREFIX)/node_modules

ifneq "$(DEBUG)" "1"
cp $(SRC_DIR)/LICENCE $(VSCODE_EXT_PREFIX)/LICENSE
cp $(SRC_DIR)/resources/icon.png $(VSCODE_EXT_DIST_DIR)/icon.png

cd $(VSCODE_EXT_PREFIX) && \
$(VSCE) package --out=$(VSCODE_EXT_DIST_DIR) --readme-path=$(SRC_DIR)/README.md
$(VSCE) package --out=$(VSCODE_EXT_DIST_DIR)
endif


Expand Down
9 changes: 9 additions & 0 deletions integration/vscode-ext/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# VS Code integration for Devinit

This extension provides an interface to integrate [devinit](https://github.com/kosude/devinit) into VS Code.

Devinit is a command-line utility written in Rust that provides the ability to write templates for files and projects and interactively apply them to
make boilerplate less annoying.

For more information, see the documentation located in the main repository's README
[here](https://github.com/kosude/devinit?tab=readme-ov-file#readme).
1 change: 1 addition & 0 deletions integration/vscode-ext/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"name": "devinit-vsc",
"version": "0.3.1",
"preview": true,
"icon": "dist/icon.png",
"displayName": "Devinit for VS Code",
"description": "Quickly initialise files and folders with preconfigured boilerplate templates",
"repository": {
Expand Down
Binary file added resources/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
60 changes: 60 additions & 0 deletions resources/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6b0b3b8

Please sign in to comment.