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.
@@ -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,4 @@
1
+ # These are supported funding model platforms
2
+
3
+ github: ['bcomnes']
4
+ custom: ['https://bret.io']
@@ -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
@@ -0,0 +1,8 @@
1
+ # homebridge-yoto Change Log
2
+ All notable changes to this project will be documented in this file.
3
+ This project adheres to [Semantic Versioning](http://semver.org/).
4
+
5
+ ## Unreleased
6
+
7
+ ## 1.0.0 - {{date}}
8
+ * ...
@@ -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
+ [![latest version](https://img.shields.io/npm/v/homebridge-yoto.svg)](https://www.npmjs.com/package/homebridge-yoto)
3
+ [![Actions Status](https://github.com/bcomnes/homebridge-yoto/workflows/tests/badge.svg)](https://github.com/bcomnes/homebridge-yoto/actions)
4
+
5
+ [![downloads](https://img.shields.io/npm/dm/homebridge-yoto.svg)](https://npmtrends.com/homebridge-yoto)
6
+ ![Types in JS](https://img.shields.io/badge/types_in_js-yes-brightgreen)
7
+ [![neostandard javascript style](https://img.shields.io/badge/code_style-neostandard-7fffff?style=flat&labelColor=ff80ff)](https://github.com/neostandard/neostandard)
8
+ [![Socket Badge](https://socket.dev/api/badge/npm/package/homebridge-yoto)](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
@@ -0,0 +1,15 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "compilerOptions": {
4
+ "declaration": true,
5
+ "declarationMap": true,
6
+ "noEmit": false,
7
+ "emitDeclarationOnly": true
8
+ },
9
+ "exclude": [
10
+ "**/*.test.js",
11
+ "node_modules",
12
+ "coverage",
13
+ ".github"
14
+ ]
15
+ }
@@ -0,0 +1,7 @@
1
+ import neostandard, { resolveIgnoresFromGitignore } from 'neostandard'
2
+
3
+ export default neostandard({
4
+ ignores: [
5
+ ...resolveIgnoresFromGitignore(),
6
+ ],
7
+ })
package/index.js ADDED
@@ -0,0 +1,3 @@
1
+ export function hello () {
2
+ return 'world'
3
+ }
package/index.test.js ADDED
@@ -0,0 +1,7 @@
1
+ import test from 'node:test'
2
+ import assert from 'node:assert'
3
+ import { hello } from './index.js'
4
+
5
+ test('index export', async (_t) => {
6
+ assert.strictEqual(hello(), 'world', 'A message')
7
+ })
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
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,14 @@
1
+ {
2
+ "extends": "@voxpelli/tsconfig/node20.json",
3
+ "compilerOptions": {
4
+ "skipLibCheck": true
5
+ },
6
+ "include": [
7
+ "**/*"
8
+ ],
9
+ "exclude": [
10
+ "node_modules",
11
+ "coverage",
12
+ ".github"
13
+ ]
14
+ }