matterbridge-example-accessory-platform 1.0.6 → 1.0.8

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 CHANGED
@@ -12,4 +12,6 @@
12
12
 
13
13
  Matterbridge accessory platform example plugin is a template to develop your own plugin using the accessory platform.
14
14
 
15
+ It exposes a cover device that continuously moves position and shows how to use the command handlers (you can control the device).
16
+
15
17
  See the guidelines on [Matterbridge](https://github.com/Luligu/matterbridge/blob/main/README.md) for more information.
@@ -1,4 +1,3 @@
1
- // link-script.js
2
1
  import { exec } from 'child_process';
3
2
 
4
3
  const command = process.platform === 'win32' ? 'npm link matterbridge' : 'sudo npm link matterbridge';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "matterbridge-example-accessory-platform",
3
- "version": "1.0.6",
3
+ "version": "1.0.8",
4
4
  "description": "Matterbridge accessory platform plugin example",
5
5
  "author": "https://github.com/Luligu",
6
6
  "license": "MIT",
@@ -14,11 +14,17 @@
14
14
  "bugs": {
15
15
  "url": "https://github.com/Luligu/matterbridge-example-accessory-platform/issues"
16
16
  },
17
+ "funding": {
18
+ "type": "buymeacoffee",
19
+ "url": "https://www.buymeacoffee.com/luligugithub"
20
+ },
17
21
  "keywords": [
18
22
  "matterbridge",
19
23
  "homebridge",
20
24
  "matter",
21
- "matter.js"
25
+ "matter.js",
26
+ "example",
27
+ "plugin"
22
28
  ],
23
29
  "engines": {
24
30
  "node": "^18.19.0 || ^20.11.0"
@@ -48,21 +54,21 @@
48
54
  "matterbridge:list": "matterbridge -list",
49
55
  "dev:link": "npm link --save-dev matterbridge",
50
56
  "dev:install": "npm install --save-dev matterbridge",
51
- "dev:unlink": "npm uninstall matterbridge && npm unlink matterbridge",
52
- "install": "npm run dev:unlink && node link-matterbridge-script.js && npm run build"
57
+ "dev:uninstall": "npm uninstall matterbridge && npm unlink matterbridge",
58
+ "install": "node link-matterbridge-script.js"
53
59
  },
54
60
  "devDependencies": {
55
61
  "@stylistic/eslint-plugin": "^1.7.0",
56
- "@tsconfig/node-lts": "^20.1.1",
57
- "@types/node": "^20.11.30",
58
- "@typescript-eslint/eslint-plugin": "^7.3.1",
59
- "@typescript-eslint/parser": "^7.3.1",
62
+ "@tsconfig/node-lts": "^20.1.3",
63
+ "@types/node": "^20.12.2",
64
+ "@typescript-eslint/eslint-plugin": "^7.4.0",
65
+ "@typescript-eslint/parser": "^7.4.0",
60
66
  "eslint-config-prettier": "^9.1.0",
61
67
  "eslint-plugin-prettier": "^5.1.3",
62
68
  "prettier": "^3.2.5",
63
69
  "typescript": "^5.4.3"
64
70
  },
65
71
  "dependencies": {
66
- "node-ansi-logger": "^1.9.2"
72
+ "node-ansi-logger": "^1.9.3"
67
73
  }
68
74
  }
package/.eslintrc.json DELETED
@@ -1,46 +0,0 @@
1
- {
2
- "ignorePatterns":["dist/", "node_modules/"],
3
- "plugins": [
4
- "@typescript-eslint",
5
- "@stylistic",
6
- "prettier"
7
- ],
8
- "parser": "@typescript-eslint/parser",
9
- "parserOptions": {
10
- "ecmaVersion": "latest",
11
- "sourceType": "module"
12
- },
13
- "env": {
14
- "browser": true,
15
- "es2021": true,
16
- "node": true
17
- },
18
- "extends": [
19
- "eslint:recommended",
20
- "plugin:@typescript-eslint/eslint-recommended",
21
- "plugin:@typescript-eslint/recommended",
22
- "prettier"
23
- ],
24
- "rules": {
25
- "prettier/prettier": ["error"],
26
- "indent": ["error", 2, { "SwitchCase": 1 }],
27
- "max-len": ["warn", 200],
28
- "no-console": ["warn"],
29
- "quotes": ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": false }],
30
- "comma-spacing": ["error", { "before": false, "after": true }],
31
- "space-before-function-paren": ["error", { "anonymous": "always", "named": "never", "asyncArrow": "always" }],
32
- "keyword-spacing": ["error", { "before": true, "after": true }],
33
- "no-multi-spaces": "error",
34
- "object-curly-spacing": ["error", "always"],
35
- "@typescript-eslint/type-annotation-spacing": ["error", {
36
- "before": false,
37
- "after": true,
38
- "overrides": {
39
- "arrow": {
40
- "before": true,
41
- "after": true
42
- }
43
- }
44
- }]
45
- }
46
- }
package/.gitattributes DELETED
@@ -1,2 +0,0 @@
1
- # Auto detect text files and perform LF normalization
2
- * text=auto
package/.prettierignore DELETED
@@ -1,2 +0,0 @@
1
- node_modules
2
- dist
package/.prettierrc.json DELETED
@@ -1,12 +0,0 @@
1
- {
2
- "printWidth": 200,
3
- "semi": true,
4
- "tabWidth": 2,
5
- "useTabs": false,
6
- "trailingComma": "all",
7
- "singleQuote": true,
8
- "endOfLine": "lf",
9
- "bracketSpacing": true,
10
- "arrowParens": "always",
11
- "quoteProps": "as-needed"
12
- }