6 Commits

Author SHA1 Message Date
6ecc03a670 bump vite version (dev dependency)
All checks were successful
Unit tests / Unit tests (latest) (push) Successful in -2m4s
Unit tests / Unit tests (lts/*) (push) Successful in -2m4s
Unit tests / Unit tests (lts/hydrogen) (push) Successful in -2m3s
NPM Audit Check / Check NPM audit (push) Successful in -2m11s
2025-09-09 17:50:56 -05:00
3f0121a9ff mirror actions to tangled
All checks were successful
Unit tests / Unit tests (latest) (push) Successful in -2m3s
Unit tests / Unit tests (lts/*) (push) Successful in -2m4s
Unit tests / Unit tests (lts/hydrogen) (push) Successful in -2m4s
NPM Audit Check / Check NPM audit (push) Successful in -2m17s
2025-09-02 21:06:16 -05:00
021f714b06 add lts/hydrogen to test env
All checks were successful
NPM Audit Check / Check NPM audit (push) Successful in -2m17s
Unit tests / Unit tests (latest) (push) Successful in -2m5s
Unit tests / Unit tests (lts/*) (push) Successful in -2m5s
Unit tests / Unit tests (lts/hydrogen) (push) Successful in -1m59s
2025-09-02 20:59:17 -05:00
b0e4a10b3e node version matrix
All checks were successful
NPM Audit Check / Check NPM audit (push) Successful in -2m17s
Unit tests / Unit tests (latest) (push) Successful in -1m57s
Unit tests / Unit tests (lts/*) (push) Successful in -1m59s
2025-09-02 00:21:14 -05:00
12862b4f85 no output files pls
All checks were successful
NPM Audit Check / Check NPM audit (push) Successful in -2m17s
Unit tests / Unit tests (push) Successful in -2m5s
2025-08-31 12:33:30 -05:00
16d5e834a5 overwrite
All checks were successful
NPM Audit Check / Check NPM audit (push) Successful in -2m18s
Unit tests / Unit tests (push) Successful in -2m6s
2025-08-30 11:28:18 -05:00
8 changed files with 73 additions and 16 deletions

View File

@@ -14,6 +14,13 @@ jobs:
timeout-minutes: 20
strategy:
fail-fast: true
matrix:
nodever:
[
'latest',
'lts/*',
'lts/hydrogen'
]
permissions:
contents: read
@@ -23,6 +30,9 @@ jobs:
- name: Setup nodejs
uses: https://github.com/actions/setup-node@v4
with:
node-version: "${{ matrix.nodever }}"
check-latest: true
- name: Install dependencies
run: npm ci

2
.gitignore vendored
View File

@@ -103,3 +103,5 @@ config/config.json5
distribution/
.env
test/*.js*
output.wav
output.mp3

View File

@@ -0,0 +1,18 @@
when:
- event: ["push"]
branch: ["master"]
engine: "nixery"
dependencies:
nixpkgs:
- nodejs
steps:
- name: "NPM Audit"
command: "npm audit"
clone:
skip: false
depth: 3
submodules: false

View File

@@ -0,0 +1,24 @@
when:
- event: ["push"]
branch: ["master"]
engine: "nixery"
dependencies:
nixpkgs:
- nodejs
steps:
- name: "Install dependencies"
command: "npm ci"
- name: "tsc"
command: "npm run build && echo 'done.'"
- name: "tests"
command: "npm test"
clone:
skip: false
depth: 3
submodules: false

22
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "morning-report",
"version": "0.0.1",
"version": "0.0.2",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "morning-report",
"version": "0.0.1",
"version": "0.0.2",
"license": "MIT",
"dependencies": {
"json5": "2.2.3",
@@ -2011,14 +2011,14 @@
"license": "MIT"
},
"node_modules/tinyglobby": {
"version": "0.2.14",
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.14.tgz",
"integrity": "sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==",
"version": "0.2.15",
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",
"integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==",
"dev": true,
"license": "MIT",
"dependencies": {
"fdir": "^6.4.4",
"picomatch": "^4.0.2"
"fdir": "^6.5.0",
"picomatch": "^4.0.3"
},
"engines": {
"node": ">=12.0.0"
@@ -2079,9 +2079,9 @@
"license": "MIT"
},
"node_modules/vite": {
"version": "7.1.3",
"resolved": "https://registry.npmjs.org/vite/-/vite-7.1.3.tgz",
"integrity": "sha512-OOUi5zjkDxYrKhTV3V7iKsoS37VUM7v40+HuwEmcrsf11Cdx9y3DIr2Px6liIcZFwt3XSRpQvFpL3WVy7ApkGw==",
"version": "7.1.5",
"resolved": "https://registry.npmjs.org/vite/-/vite-7.1.5.tgz",
"integrity": "sha512-4cKBO9wR75r0BeIWWWId9XK9Lj6La5X846Zw9dFfzMRw38IlTk2iCcUt6hsyiDRcPidc55ZParFYDXi0nXOeLQ==",
"dev": true,
"license": "MIT",
"dependencies": {
@@ -2090,7 +2090,7 @@
"picomatch": "^4.0.3",
"postcss": "^8.5.6",
"rollup": "^4.43.0",
"tinyglobby": "^0.2.14"
"tinyglobby": "^0.2.15"
},
"bin": {
"vite": "bin/vite.js"

View File

@@ -1,6 +1,6 @@
{
"name": "morning-report",
"version": "0.0.1",
"version": "0.0.2",
"description": "Procedurally generates a radio weather report",
"keywords": [
"weather",

View File

@@ -26,7 +26,7 @@ async function Stitcher(files: string[]) {
const args: string[] = [];
files.forEach(f => args.push('-i', f));
args.push('-filter_complex', `[0:a][1:a][2:a]concat=n=${files.length}:v=0:a=1[out]`);
args.push('-map', '[out]', '-ar', '44100', '-ac', '2', '-c:a', 'pcm_s16le', 'output.wav');
args.push('-map', '[out]', '-ar', '44100', '-ac', '2', '-c:a', 'pcm_s16le', 'output.wav', '-y');
await ffmpeg(args, files.length);
}

View File

@@ -41,7 +41,8 @@ describe('stitcher', () => {
'2',
'-c:a',
'pcm_s16le',
'output.wav'
'output.wav',
'-y'
]);
});
@@ -62,7 +63,8 @@ describe('stitcher', () => {
'2',
'-c:a',
'pcm_s16le',
'output.wav'
'output.wav',
'-y'
]);
});
@@ -81,7 +83,8 @@ describe('stitcher', () => {
'2',
'-c:a',
'pcm_s16le',
'output.wav'
'output.wav',
'-y'
]);
});
});