@elgato/cli 0.3.2 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -304
- package/bin/streamdeck.mjs +1 -1
- package/package.json +4 -4
- package/template/com.elgato.template.sdPlugin/manifest.json.ejs +1 -1
- package/template/com.elgato.template.sdPlugin/ui/increment-counter.html +1 -1
- package/template/package.json.ejs +21 -21
- package/template/src/actions/increment-counter.ts.ejs +2 -2
- package/template/tsconfig.json.ejs +2 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elgato/cli",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "CLI tool for building with Stream Deck.",
|
|
3
|
+
"version": "1.0.1",
|
|
4
|
+
"description": "Stream Deck CLI tool for building with Stream Deck.",
|
|
5
5
|
"bin": {
|
|
6
6
|
"streamdeck": "bin/streamdeck.mjs",
|
|
7
7
|
"sd": "bin/streamdeck.mjs"
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"./template"
|
|
16
16
|
],
|
|
17
17
|
"engines": {
|
|
18
|
-
"node": "
|
|
18
|
+
"node": ">=20.1.0"
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
21
|
"build": "npm run build:bin && npm run build:exports",
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
},
|
|
53
53
|
"homepage": "https://github.com/elgatosf/cli#readme",
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@elgato/schemas": "^0.
|
|
55
|
+
"@elgato/schemas": "^0.4.0",
|
|
56
56
|
"@humanwhocodes/momoa": "^3.0.0",
|
|
57
57
|
"@zip.js/zip.js": "^2.7.34",
|
|
58
58
|
"ajv": "^8.12.0",
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<head lang="en">
|
|
5
5
|
<title>Increment Counter Settings</title>
|
|
6
6
|
<meta charset="utf-8" />
|
|
7
|
-
<script src="https://
|
|
7
|
+
<script src="https://sdpi-components.dev/releases/v3/sdpi-components.js"></script>
|
|
8
8
|
</head>
|
|
9
9
|
|
|
10
10
|
<body>
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
2
|
+
"scripts": {
|
|
3
|
+
"build": "rollup -c",
|
|
4
|
+
"watch": "rollup -c -w --watch.onEnd=\"streamdeck restart <%- uuid %>\""
|
|
5
|
+
},
|
|
6
|
+
"type": "module",
|
|
7
|
+
"devDependencies": {
|
|
8
|
+
"@elgato/cli": <%- JSON.stringify(npm.cli) %>,
|
|
9
|
+
"@rollup/plugin-commonjs": "^28.0.0",
|
|
10
|
+
"@rollup/plugin-node-resolve": "^15.2.2",
|
|
11
|
+
"@rollup/plugin-terser": "^0.4.4",
|
|
12
|
+
"@rollup/plugin-typescript": "^12.1.0",
|
|
13
|
+
"@tsconfig/node20": "^20.1.2",
|
|
14
|
+
"@types/node": "~20.15.0",
|
|
15
|
+
"rollup": "^4.0.2",
|
|
16
|
+
"tslib": "^2.6.2",
|
|
17
|
+
"typescript": "^5.2.2"
|
|
18
|
+
},
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"@elgato/streamdeck": <%- JSON.stringify(npm.streamDeck) %>
|
|
21
|
+
}
|
|
22
|
+
}
|
|
@@ -10,7 +10,7 @@ export class IncrementCounter extends SingletonAction<CounterSettings> {
|
|
|
10
10
|
* starting up, or the user navigating between pages / folders etc.. There is also an inverse of this event in the form of {@link streamDeck.client.onWillDisappear}. In this example,
|
|
11
11
|
* we're setting the title to the "count" that is incremented in {@link IncrementCounter.onKeyDown}.
|
|
12
12
|
*/
|
|
13
|
-
onWillAppear(ev: WillAppearEvent<CounterSettings>): void | Promise<void> {
|
|
13
|
+
override onWillAppear(ev: WillAppearEvent<CounterSettings>): void | Promise<void> {
|
|
14
14
|
return ev.action.setTitle(`${ev.payload.settings.count ?? 0}`);
|
|
15
15
|
}
|
|
16
16
|
|
|
@@ -20,7 +20,7 @@ export class IncrementCounter extends SingletonAction<CounterSettings> {
|
|
|
20
20
|
* and action information where applicable. In this example, our action will display a counter that increments by one each press. We track the current count on the action's persisted
|
|
21
21
|
* settings using `setSettings` and `getSettings`.
|
|
22
22
|
*/
|
|
23
|
-
async onKeyDown(ev: KeyDownEvent<CounterSettings>): Promise<void> {
|
|
23
|
+
override async onKeyDown(ev: KeyDownEvent<CounterSettings>): Promise<void> {
|
|
24
24
|
// Update the count from the settings.
|
|
25
25
|
const { settings } = ev.payload;
|
|
26
26
|
settings.incrementBy ??= 1;
|