Compare commits
6 Commits
v0.0.1
...
6ecc03a670
Author | SHA1 | Date | |
---|---|---|---|
6ecc03a670 | |||
3f0121a9ff | |||
021f714b06 | |||
b0e4a10b3e | |||
12862b4f85 | |||
16d5e834a5 |
10
.github/workflows/test.yml
vendored
10
.github/workflows/test.yml
vendored
@@ -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
2
.gitignore
vendored
@@ -103,3 +103,5 @@ config/config.json5
|
||||
distribution/
|
||||
.env
|
||||
test/*.js*
|
||||
output.wav
|
||||
output.mp3
|
||||
|
18
.tangled/workflows/audit.yml
Normal file
18
.tangled/workflows/audit.yml
Normal 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
|
24
.tangled/workflows/test.yml
Normal file
24
.tangled/workflows/test.yml
Normal 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
22
package-lock.json
generated
@@ -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"
|
||||
|
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "morning-report",
|
||||
"version": "0.0.1",
|
||||
"version": "0.0.2",
|
||||
"description": "Procedurally generates a radio weather report",
|
||||
"keywords": [
|
||||
"weather",
|
||||
|
@@ -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);
|
||||
}
|
||||
|
||||
|
@@ -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'
|
||||
]);
|
||||
});
|
||||
});
|
Reference in New Issue
Block a user