• Happy Holidays Guest!

    We want to announce that we will be working at reduced staffing for the holidays. Specifically Monday the 23rd until Jan 2nd.

    This will affect approval queue times and responses to support tickets. Please adjust your plans accordingly and enjoy yourselves this holiday season!

  • Hi Guest!

    Please be aware that we have released a critical security patch for VaM. We strongly recommend updating to version 1.22.0.7 using the VaM_Updater found in your installation folder.

    Details about the security patch can be found here.
Resource icon

Plugins Plugin Template with GitHub Actions var generation

Plugin Template for vscode

What you will need

Get this template

First of all, decide what your author name will be, and what your plugin name will be. From now on, replace Author and MyPlugin by your selected name. I suggest your keep those simple without any special characters.

  • If you have a GitHub account (recommended), click on Use this template on the vam-plugin-template. It will create your own copy. You can also download this repository.
  • Clone (or unzip) this repo under (VaM install path)\Custom\Scripts\Author\MyPlugin, replacing Author and MyPlugin by yours, so that the MyPlugin.cs is directly under the MyPlugin folder.

You should now be able to open the project in vscode by using File, Open Folder and select the MyPlugin folder.

Adapt the template

  • Rename the MyPlugin.cs and MyPlugin.csproj to match your plugin name.
  • Replace in files (ctrl + shift + h) all occurences of Author and MyPlugin by yours.
  • In meta.json, fill in the description (keep v0.0.0 if you plan on using GitHub Actions), credits, instructions and promotionalLink. You might also want to chage the licenseType, if you wish.
  • Replace the content of README.md by your own content.
  • Replace the author name in LICENSE.md file to put your own name (it's all right, you have my blessing!)

Validate locally

You can run dotnet build in the plugin folder, and it'll show you any compilation errors. This is faster than going in VaM to do so!

Package var using GitHub Actions

If you use GitHub, you can push a tag with the naming convention v0.0.0, and it will automatically create a release draft. You can then edit it (e.g. add a description) and publish it.

Learning about Git

There are tons of references out there, you might want to look at GitHub Learning Lab. Learning Git is really worth your time.
Author
Acid Bubbles
Downloads
1,825
Views
3,318
Version
2021-04-16
First release
Last update
Rating
5.00 star(s) 1 ratings

More resources from Acid Bubbles

Latest reviews

As the least downloaded free plugin on VAM Hub, this is seriously under rated!
Acid Bubbles
Acid Bubbles
HA, I forgot about this test from the early hub beta :D I at least changed it to reference the actual plugin template :D
Upvote 0
Back
Top Bottom