Skip to content

Commit

Permalink
Project clean-up
Browse files Browse the repository at this point in the history
  • Loading branch information
thoukydides committed Nov 30, 2024
1 parent 469437d commit 28d8b7e
Show file tree
Hide file tree
Showing 12 changed files with 333 additions and 322 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ jobs:

strategy:
matrix:
# the Node.js versions to build on
node-version: [18.x, 20.x, 22.x]

steps:
Expand All @@ -22,8 +21,8 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Lint the project
run: npm run lint

- name: Build the project
run: npm run build
run: npm run build

- name: Lint the project
run: npm run lint
7 changes: 5 additions & 2 deletions .github/workflows/npm-publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,10 @@ jobs:
node-version: '18'
registry-url: 'https://registry.npmjs.org'

- run: npm ci
- run: npm publish
- name: Install dependencies
run: npm ci

- name: Publish the module
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5 changes: 0 additions & 5 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
# This workflow warns and then closes issues and PRs that have had no activity for a specified amount of time.
#
# You can adjust the behavior by modifying this file.
# For more information, see:
# https://github.com/actions/stale
name: Close Stale Issues and PRs

on:
Expand Down
5 changes: 5 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@
"Fanv",
"fieldset",
"helpvalue",
"homebridge",
"legaldocument",
"legaldocuments",
"Liter",
"nbsp",
"nodenext",
"NOTCONNECTED",
"notitle",
"Passw",
Expand All @@ -56,5 +58,8 @@
"Wyne",
"Zanussi"
],
"files.exclude": {
"node_modules/": true
},
"typescript.tsdk": "node_modules/typescript/lib"
}
6 changes: 3 additions & 3 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// @ts-check
/* eslint-disable max-len */
import globals from 'globals';
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
Expand All @@ -11,14 +12,13 @@ export default tseslint.config(
...tseslint.configs.strictTypeChecked,
...tseslint.configs.stylisticTypeChecked,
{
files: ['**/*.ts'],
files: ['**/*.ts', 'eslint.config.mjs'],
languageOptions: {
globals: globals.node,
ecmaVersion: 'latest',
sourceType: 'module',
parserOptions: {
projectService: { allowDefaultProject: ['*.mjs', '*.ts'] },
allowDefaultProject: true
projectService: true
}
},
rules: {
Expand Down
2 changes: 1 addition & 1 deletion nodemon.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
],
"ext": "ts",
"ignore": [],
"exec": "npm run checkers && tsc && homebridge -D -I -P .. --strict-plugin-resolution",
"exec": "npm run build && homebridge -D -I -P .. --strict-plugin-resolution",
"signal": "SIGTERM",
"env": {
"NODE_OPTIONS": "--trace-warnings"
Expand Down
Loading

0 comments on commit 28d8b7e

Please sign in to comment.