Skip to content

Commit c3ef117

Browse files
committed
feat: add support for bloop box v5
1 parent b94fc34 commit c3ef117

27 files changed

+5969
-20110
lines changed

.eslintignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/commitlint.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -14,36 +14,27 @@ jobs:
1414
release-exists: ${{ steps.check-files.outputs.files_exists }}
1515

1616
steps:
17-
- uses: actions/checkout@v3
17+
- uses: actions/checkout@v4
1818

19-
- name: Use Node.js 16.x
20-
uses: actions/setup-node@v3
21-
with:
22-
node-version: 16.x
19+
- name: Use pnpm
20+
uses: pnpm/action-setup@v4
2321

24-
- name: Cache node modules
25-
uses: actions/cache@v3
26-
env:
27-
cache-name: cache-node-modules
22+
- name: Use Node.js 22.x
23+
uses: actions/setup-node@v4
2824
with:
29-
path: ~/.npm
30-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
31-
restore-keys: |
32-
${{ runner.os }}-build-${{ env.cache-name }}-
33-
${{ runner.os }}-build-
34-
${{ runner.os }}-
25+
node-version: 22
26+
cache: 'pnpm'
3527

3628
- name: Install Dependencies
37-
run: npm ci
29+
run: pnpm install
3830

39-
- name: Lint
40-
run: npm run lint
31+
- name: Biome CI
32+
run: pnpm biome ci .
4133

4234
- name: Semantic Release
4335
uses: cycjimmy/semantic-release-action@v3
4436
env:
4537
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
HUSKY: 0
4738
id: semantic
4839
with:
4940
semantic_version: 19.0.5

.husky/commit-msg

Lines changed: 0 additions & 4 deletions
This file was deleted.

.husky/pre-commit

Lines changed: 0 additions & 4 deletions
This file was deleted.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) 2022, Ben Scholzen 'DASPRiD'
1+
Copyright (c) 2022-present, Ben Scholzen 'DASPRiD'
22
All rights reserved.
33

44
Redistribution and use in source and binary forms, with or without

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ Tells the Bloop Box client to reconfigure the Raspberry WiFi to a new SSID and p
3030

3131
Reconfigures the Bloop Server address and credentials.
3232

33-
### Set Max Volume
33+
### Set Volume Range
3434

35-
Sets the maximum volume (in percent) the Bloop Box client can be set to via the volume buttons.
35+
Sets the minimum and maximum volume (in percent) the Bloop Box client can be set to via the volume buttons.
3636

3737
### Add Config Tag
3838

biome.json

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
{
2+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
3+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
4+
"files": {
5+
"includes": ["./biome.json", "./commitlint.config.cjs", "./vite.config.ts", "./src/**/*"]
6+
},
7+
"linter": {
8+
"enabled": true,
9+
"rules": {
10+
"recommended": true,
11+
"complexity": {
12+
"noExcessiveCognitiveComplexity": "warn",
13+
"useSimplifiedLogicExpression": "error"
14+
},
15+
"correctness": {
16+
"noUnusedImports": "error",
17+
"noUnusedPrivateClassMembers": "error",
18+
"useHookAtTopLevel": "error",
19+
"noInvalidBuiltinInstantiation": "error",
20+
"noSwitchDeclarations": "error"
21+
},
22+
"style": {
23+
"useBlockStatements": "error",
24+
"useCollapsedElseIf": "error",
25+
"useForOf": "error",
26+
"useFragmentSyntax": "error",
27+
"useShorthandAssign": "error",
28+
"noParameterAssign": "error",
29+
"useAsConstAssertion": "error",
30+
"useDefaultParameterLast": "error",
31+
"useEnumInitializers": "error",
32+
"useSelfClosingElements": "error",
33+
"useSingleVarDeclarator": "error",
34+
"noUnusedTemplateLiteral": "error",
35+
"useNumberNamespace": "error",
36+
"noInferrableTypes": "error",
37+
"noUselessElse": "error",
38+
"useConsistentArrayType": { "level": "error", "options": { "syntax": "shorthand" } }
39+
},
40+
"suspicious": {
41+
"noApproximativeNumericConstant": "warn",
42+
"noEmptyBlockStatements": "error",
43+
"noConsole": {
44+
"level": "error",
45+
"options": { "allow": ["assert", "error", "info", "warn"] }
46+
}
47+
}
48+
}
49+
},
50+
"formatter": {
51+
"indentStyle": "space",
52+
"indentWidth": 4,
53+
"lineWidth": 100
54+
}
55+
}

0 commit comments

Comments
 (0)