Skip to content

Commit

Permalink
Publishing prep
Browse files Browse the repository at this point in the history
  • Loading branch information
PrivateButts committed Dec 29, 2021
1 parent 0662240 commit 4e808ea
Show file tree
Hide file tree
Showing 5 changed files with 40 additions and 8 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publish-extension.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
on:
push:
tags:
- "*"

name: Publish Extension
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
- run: npm ci
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ This extension is to assist in the generation of the boilerplate code used for t

All keys live under `django-model-tool`

Key | Type | Description
-|-|-
PreferModelsInSameFolder | boolean | When a model picker will be displayed, setting this option to true will cause models in the same folder as the active document to be pushed to the top of the list.
FieldListNewLines | boolean | When using the basic model field list generator, render each item on a new line
FieldListSingleQuote | boolean | When using the basic model field list generator, render each item surrounded in single quotes instead of double
templates.modelAdmin | Multiline String | The template rendered for Model Admin generation. [Refer to this doc page for more information.](https://github.com/PrivateButts/Django-Model-Tool/blob/main/docs/templates.md#model-admin)
Key | Type | Description
-------------------------|------------------|------------
PreferModelsInSameFolder | Boolean | When a model picker will be displayed, setting this option to true will cause models in the same folder as the active document to be pushed to the top of the list.
FieldListNewLines | Boolean | When using the basic model field list generator, render each item on a new line
FieldListSingleQuote | Boolean | When using the basic model field list generator, render each item surrounded in single quotes instead of double
templates.modelAdmin | Multiline String | The template rendered for Model Admin generation. [Refer to this doc page for more information.](https://github.com/PrivateButts/Django-Model-Tool/blob/main/docs/templates.md#model-admin)

## Goals

Expand Down
Binary file added img/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added img/logo128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 14 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@
"displayName": "Django Model Tool",
"description": "This extension is to assist in the generation of the boilerplate code used for tools like the Django Admin",
"version": "0.0.1",
"preview": true,
"icon": "img/logo128.png",
"galleryBanner":{
"color": "#2D8507",
"theme": "dark"
},
"engines": {
"vscode": "^1.63.0"
},
Expand Down Expand Up @@ -44,15 +50,21 @@
"dependencies": {
"handlebars": "^4.7.7"
},
"repository": {
"type": "git",
"url": "https://github.com/PrivateButts/Django-Model-Tool"
},
"contributes": {
"commands": [
{
"command": "django-model-tool.generate-model-admin",
"title": "Generate model admin"
"title": "Generate model admin",
"category": "Django Model Tool"
},
{
"command": "django-model-tool.generate-field-list",
"title": "Generate field list from model"
"title": "Generate field list from model",
"category": "Django Model Tool"
}
],
"configuration": {
Expand Down

0 comments on commit 4e808ea

Please sign in to comment.