diff --git a/src/commands/create.ts b/src/commands/create.ts index a9f6d5d..af63087 100644 --- a/src/commands/create.ts +++ b/src/commands/create.ts @@ -228,6 +228,7 @@ async function renderTemplate(destination: string, pluginInfo: PluginInfo): Prom await Promise.allSettled([ template.copy(".vscode"), template.copy(`${TEMPLATE_PLUGIN_UUID}.sdPlugin/imgs`, `${pluginInfo.uuid}.sdPlugin/imgs`), + template.copy(`${TEMPLATE_PLUGIN_UUID}.sdPlugin/ui`, `${pluginInfo.uuid}.sdPlugin/ui`), template.copy(`${TEMPLATE_PLUGIN_UUID}.sdPlugin/manifest.json.ejs`, `${pluginInfo.uuid}.sdPlugin/manifest.json`), template.copy("src"), template.copy("_.gitignore", ".gitignore"), diff --git a/template/.vscode/settings.json b/template/.vscode/settings.json index 4f809ca..ef8832f 100644 --- a/template/.vscode/settings.json +++ b/template/.vscode/settings.json @@ -1,14 +1,17 @@ { - /* Prefer tabs over spaces for accessibility */ - "editor.insertSpaces": false, - "editor.detectIndentation": false, - /* Explorer */ - "explorer.fileNesting.enabled": true, - "explorer.fileNesting.patterns": { - "*.js": "${capture}.js.map, ${capture}.min.js, ${capture}.d.ts", - "package.json": "package-lock.json, yarn.lock, pnpm-lock.yaml, rollup.config.mjs, tsconfig.json" - }, - "files.exclude": { - "node_modules": true - } + /* JSON schemas */ + "json.schemas": [ + { + "fileMatch": [ + "**/manifest.json" + ], + "url": "https://schemas.elgato.com/streamdeck/plugins/manifest.json" + }, + { + "fileMatch": [ + "**/layouts/*.json" + ], + "url": "https://schemas.elgato.com/streamdeck/plugins/layout.json" + } + ] } \ No newline at end of file diff --git a/template/com.elgato.template.sdPlugin/manifest.json.ejs b/template/com.elgato.template.sdPlugin/manifest.json.ejs index fac4a53..61206a8 100644 --- a/template/com.elgato.template.sdPlugin/manifest.json.ejs +++ b/template/com.elgato.template.sdPlugin/manifest.json.ejs @@ -8,6 +8,7 @@ "UUID": "<%- uuid %>.increment", "Icon": "imgs/actions/counter/icon", "Tooltip": "Displays a count, which increments by one on press.", + "PropertyInspectorPath": "ui/increment-counter.html", "Controllers": [ "Keypad" ], diff --git a/template/com.elgato.template.sdPlugin/ui/increment-counter.html b/template/com.elgato.template.sdPlugin/ui/increment-counter.html new file mode 100644 index 0000000..e0d65ee --- /dev/null +++ b/template/com.elgato.template.sdPlugin/ui/increment-counter.html @@ -0,0 +1,19 @@ + + + +
+