homebridge-yoto 0.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/.github/dependabot.yml +18 -0
- package/.github/funding.yml +4 -0
- package/.github/workflows/release.yml +41 -0
- package/.github/workflows/tests.yml +37 -0
- package/CHANGELOG.md +8 -0
- package/CONTRIBUTING.md +34 -0
- package/LICENSE +21 -0
- package/README.md +24 -0
- package/declaration.tsconfig.json +15 -0
- package/eslint.config.js +7 -0
- package/index.js +3 -0
- package/index.test.js +7 -0
- package/lib/.keep +0 -0
- package/package.json +61 -0
- package/tsconfig.json +14 -0
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
|
|
2
|
+
version: 2
|
|
3
|
+
updates:
|
|
4
|
+
- package-ecosystem: "npm"
|
|
5
|
+
directory: "/"
|
|
6
|
+
# Check the npm registry for updates every day (weekdays)
|
|
7
|
+
schedule:
|
|
8
|
+
interval: "daily"
|
|
9
|
+
groups:
|
|
10
|
+
typescript:
|
|
11
|
+
patterns:
|
|
12
|
+
- "typescript"
|
|
13
|
+
- "@types/node"
|
|
14
|
+
- "@voxpelli/tsconfig"
|
|
15
|
+
- package-ecosystem: "github-actions"
|
|
16
|
+
directory: "/"
|
|
17
|
+
schedule:
|
|
18
|
+
interval: "daily"
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
name: npm bump
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
newversion:
|
|
7
|
+
description: 'npm version {major,minor,patch}'
|
|
8
|
+
required: true
|
|
9
|
+
|
|
10
|
+
env:
|
|
11
|
+
FORCE_COLOR: 1
|
|
12
|
+
|
|
13
|
+
concurrency: # prevent concurrent releases
|
|
14
|
+
group: npm-bump
|
|
15
|
+
cancel-in-progress: true
|
|
16
|
+
|
|
17
|
+
jobs:
|
|
18
|
+
version_and_release:
|
|
19
|
+
runs-on: ubuntu-latest
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@v6
|
|
22
|
+
with:
|
|
23
|
+
# fetch full history so things like auto-changelog work properly
|
|
24
|
+
fetch-depth: 0
|
|
25
|
+
- name: Use Node.js ${{ env.node }}
|
|
26
|
+
uses: actions/setup-node@v6
|
|
27
|
+
with:
|
|
28
|
+
node-version-file: package.json
|
|
29
|
+
# setting a registry enables the NODE_AUTH_TOKEN env variable where we can set an npm token. REQUIRED
|
|
30
|
+
registry-url: 'https://registry.npmjs.org'
|
|
31
|
+
- run: npm i
|
|
32
|
+
- run: npm test
|
|
33
|
+
- name: npm version && npm publish
|
|
34
|
+
uses: bcomnes/npm-bump@v2
|
|
35
|
+
with:
|
|
36
|
+
git_email: bcomnes@gmail.com
|
|
37
|
+
git_username: ${{ github.actor }}
|
|
38
|
+
newversion: ${{ github.event.inputs.newversion }}
|
|
39
|
+
github_token: ${{ secrets.GITHUB_TOKEN }} # built in actions token. Passed tp gh-release if in use.
|
|
40
|
+
npm_token: ${{ secrets.NPM_TOKEN }} # user set secret token generated at npm
|
|
41
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: tests
|
|
2
|
+
|
|
3
|
+
on: [pull_request, push]
|
|
4
|
+
|
|
5
|
+
env:
|
|
6
|
+
FORCE_COLOR: 1
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
test:
|
|
10
|
+
runs-on: ${{ matrix.os }}
|
|
11
|
+
|
|
12
|
+
strategy:
|
|
13
|
+
fail-fast: false
|
|
14
|
+
matrix:
|
|
15
|
+
os: [ubuntu-latest]
|
|
16
|
+
node: ['lts/*']
|
|
17
|
+
|
|
18
|
+
steps:
|
|
19
|
+
- uses: actions/checkout@v6
|
|
20
|
+
- name: Use Node.js ${{ matrix.node }}
|
|
21
|
+
uses: actions/setup-node@v6
|
|
22
|
+
with:
|
|
23
|
+
node-version: ${{ matrix.node }}
|
|
24
|
+
- run: npm i
|
|
25
|
+
- run: npm test --color=always
|
|
26
|
+
|
|
27
|
+
automerge:
|
|
28
|
+
needs: test
|
|
29
|
+
runs-on: ubuntu-latest
|
|
30
|
+
permissions:
|
|
31
|
+
pull-requests: write
|
|
32
|
+
contents: write
|
|
33
|
+
steps:
|
|
34
|
+
- uses: fastify/github-action-merge-dependabot@v3
|
|
35
|
+
if: ${{ github.actor == 'dependabot[bot]' && github.event_name == 'pull_request' && contains(github.head_ref, 'dependabot/github_actions') }}
|
|
36
|
+
with:
|
|
37
|
+
github-token: ${{secrets.github_token}}
|
package/CHANGELOG.md
ADDED
package/CONTRIBUTING.md
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
## Releasing
|
|
4
|
+
|
|
5
|
+
Changelog and releasing are automated with npm scripts and actions. To create a release:
|
|
6
|
+
|
|
7
|
+
- Navigate to the Actions tab.
|
|
8
|
+
- Select the `npm bump` action.
|
|
9
|
+
- Trigger the action, specifying the semantic version bump that is needed.
|
|
10
|
+
- Changelog, GitHub release, and npm publish are handled by the action.
|
|
11
|
+
- An in-depth review of this system is documented here: [bret.io/projects/package-automation](https://bret.io/projects/package-automation/).
|
|
12
|
+
|
|
13
|
+
If for some reason this isn't working or a local release is preferred, follow these steps:
|
|
14
|
+
|
|
15
|
+
- Ensure a clean working git workspace.
|
|
16
|
+
- Run `npm version {patch, minor, major}`.
|
|
17
|
+
- This will update the version number and generate the changelog.
|
|
18
|
+
- Run `npm publish`.
|
|
19
|
+
- This will push your local git branch and tags to the default remote, perform a [gh-release](https://ghub.io/gh-release), and create an npm publication.
|
|
20
|
+
|
|
21
|
+
## Guidelines
|
|
22
|
+
|
|
23
|
+
- Patches, ideas, and changes are welcome.
|
|
24
|
+
- Fixes are almost always welcome.
|
|
25
|
+
- Features are sometimes welcome.
|
|
26
|
+
- Please open an issue to discuss the idea prior to spending lots of time on the problem.
|
|
27
|
+
- It may be rejected.
|
|
28
|
+
- If you don't want to wait for the discussion to commence and you really want to jump into the implementation work, be prepared to fork the project if the idea is respectfully declined.
|
|
29
|
+
- Try to stay within the style of the existing code.
|
|
30
|
+
- All tests must pass.
|
|
31
|
+
- Additional features or code paths must be tested.
|
|
32
|
+
- Aim for 100% test coverage.
|
|
33
|
+
- Questions are welcome. However, unless there is an official support contract established between the maintainers and the requester, support is not guaranteed.
|
|
34
|
+
- Contributors reserve the right to walk away from this project at any moment, with or without notice.
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Bret Comnes
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# homebridge-yoto
|
|
2
|
+
[](https://www.npmjs.com/package/homebridge-yoto)
|
|
3
|
+
[](https://github.com/bcomnes/homebridge-yoto/actions)
|
|
4
|
+
|
|
5
|
+
[](https://npmtrends.com/homebridge-yoto)
|
|
6
|
+

|
|
7
|
+
[](https://github.com/neostandard/neostandard)
|
|
8
|
+
[](https://socket.dev/npm/package/homebridge-yoto)
|
|
9
|
+
|
|
10
|
+
WIP - nothing to see here
|
|
11
|
+
|
|
12
|
+
```
|
|
13
|
+
npm install homebridge-yoto
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
## Usage
|
|
17
|
+
|
|
18
|
+
``` js
|
|
19
|
+
import homebridge-yoto from 'homebridge-yoto'
|
|
20
|
+
```
|
|
21
|
+
|
|
22
|
+
## License
|
|
23
|
+
|
|
24
|
+
MIT
|
package/eslint.config.js
ADDED
package/index.js
ADDED
package/index.test.js
ADDED
package/lib/.keep
ADDED
|
File without changes
|
package/package.json
ADDED
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "homebridge-yoto",
|
|
3
|
+
"description": "WIP - nothing to see here",
|
|
4
|
+
"version": "0.0.1",
|
|
5
|
+
"author": "Bret Comnes <bcomnes@gmail.com> (https://bret.io)",
|
|
6
|
+
"bugs": {
|
|
7
|
+
"url": "https://github.com/bcomnes/homebridge-yoto/issues"
|
|
8
|
+
},
|
|
9
|
+
"dependencies": {},
|
|
10
|
+
"devDependencies": {
|
|
11
|
+
"@voxpelli/tsconfig": "^16.1.0",
|
|
12
|
+
"@types/node": "^25.0.0",
|
|
13
|
+
"neostandard": "^0.12.0",
|
|
14
|
+
"npm-run-all2": "^8.0.1",
|
|
15
|
+
"auto-changelog": "^2.0.0",
|
|
16
|
+
"gh-release": "^7.0.0",
|
|
17
|
+
"c8": "^10.0.0",
|
|
18
|
+
"typescript": "~5.9.3"
|
|
19
|
+
},
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=20",
|
|
22
|
+
"npm": ">=10"
|
|
23
|
+
},
|
|
24
|
+
"homepage": "https://github.com/bcomnes/homebridge-yoto",
|
|
25
|
+
"keywords": [],
|
|
26
|
+
"license": "MIT",
|
|
27
|
+
"type": "module",
|
|
28
|
+
"module": "index.js",
|
|
29
|
+
"main": "index.js",
|
|
30
|
+
"types": "index.d.ts",
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "https://github.com/bcomnes/homebridge-yoto.git"
|
|
34
|
+
},
|
|
35
|
+
"scripts": {
|
|
36
|
+
"prepublishOnly": "npm run build && git push --follow-tags && gh-release -y",
|
|
37
|
+
"postpublish": "npm run clean",
|
|
38
|
+
"test": "run-s test:*",
|
|
39
|
+
"test:lint": "eslint",
|
|
40
|
+
"test:tsc": "tsc",
|
|
41
|
+
"test:node-test": "c8 node --test --test-reporter spec",
|
|
42
|
+
"version": "run-s version:*",
|
|
43
|
+
"version:changelog": "auto-changelog -p --template keepachangelog auto-changelog --breaking-pattern 'BREAKING CHANGE:'",
|
|
44
|
+
"version:git": "git add CHANGELOG.md",
|
|
45
|
+
"build": "npm run clean && run-p build:*",
|
|
46
|
+
"build:declaration": "tsc -p declaration.tsconfig.json",
|
|
47
|
+
"clean": "run-p clean:*",
|
|
48
|
+
"clean:declarations-top": "rm -rf $(find . -maxdepth 1 -type f -name '*.d.ts*')",
|
|
49
|
+
"clean:declarations-lib": "rm -rf $(find lib -type f -name '*.d.ts*' ! -name '*-types.d.ts')"
|
|
50
|
+
},
|
|
51
|
+
"funding": {
|
|
52
|
+
"type": "individual",
|
|
53
|
+
"url": "https://github.com/sponsors/bcomnes"
|
|
54
|
+
},
|
|
55
|
+
"c8": {
|
|
56
|
+
"reporter": [
|
|
57
|
+
"lcov",
|
|
58
|
+
"text"
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
}
|