Skip to content

nullplatform/plugin-templates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Nullplatform

Plugin Templates by nullplatform

Template registry for np plugin init. Each template is a complete plugin scaffold rendered with Go text/template.

Layout

plugin-templates/
├── manifest.yaml              # registry: categories, SDKs, templates + variables
└── templates/
    └── <sdk>/
        └── <category>/
            └── ...            # template files, rendered with {{ .Var }}

Available templates

Category SDK Description
scope bun Deployment target plugin (Kubernetes, Lambda, ECS, ...)
simple bun Custom command handler (health checks, migrations, ...)
service bun Application dependency plugin (databases, caches, ...)

Adding a template

  1. Create a directory under templates/<sdk>/<category>/ with the source files
  2. Use {{ .Name }}, {{ .Slug }}, {{ .Category }}, {{ .Provider }} in file contents and names
  3. Register it in manifest.yaml under templates: with the matching type and sdk
  4. Add any new variables to the category definition in manifest.yaml

About

Scaffolding templates for nullplatform plugins (used by np plugin init)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors