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
|
timeout-minutes: 20
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: true
|
fail-fast: true
|
||||||
|
matrix:
|
||||||
|
nodever:
|
||||||
|
[
|
||||||
|
'latest',
|
||||||
|
'lts/*',
|
||||||
|
'lts/hydrogen'
|
||||||
|
]
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
@@ -23,6 +30,9 @@ jobs:
|
|||||||
|
|
||||||
- name: Setup nodejs
|
- name: Setup nodejs
|
||||||
uses: https://github.com/actions/setup-node@v4
|
uses: https://github.com/actions/setup-node@v4
|
||||||
|
with:
|
||||||
|
node-version: "${{ matrix.nodever }}"
|
||||||
|
check-latest: true
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
2
.gitignore
vendored
2
.gitignore
vendored
@@ -103,3 +103,5 @@ config/config.json5
|
|||||||
distribution/
|
distribution/
|
||||||
.env
|
.env
|
||||||
test/*.js*
|
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",
|
"name": "morning-report",
|
||||||
"version": "0.0.1",
|
"version": "0.0.2",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "morning-report",
|
"name": "morning-report",
|
||||||
"version": "0.0.1",
|
"version": "0.0.2",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"json5": "2.2.3",
|
"json5": "2.2.3",
|
||||||
@@ -2011,14 +2011,14 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/tinyglobby": {
|
"node_modules/tinyglobby": {
|
||||||
"version": "0.2.14",
|
"version": "0.2.15",
|
||||||
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.14.tgz",
|
"resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.15.tgz",
|
||||||
"integrity": "sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==",
|
"integrity": "sha512-j2Zq4NyQYG5XMST4cbs02Ak8iJUdxRM0XI5QyxXuZOzKOINmWurp3smXu3y5wDcJrptwpSjgXHzIQxR0omXljQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"fdir": "^6.4.4",
|
"fdir": "^6.5.0",
|
||||||
"picomatch": "^4.0.2"
|
"picomatch": "^4.0.3"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=12.0.0"
|
"node": ">=12.0.0"
|
||||||
@@ -2079,9 +2079,9 @@
|
|||||||
"license": "MIT"
|
"license": "MIT"
|
||||||
},
|
},
|
||||||
"node_modules/vite": {
|
"node_modules/vite": {
|
||||||
"version": "7.1.3",
|
"version": "7.1.5",
|
||||||
"resolved": "https://registry.npmjs.org/vite/-/vite-7.1.3.tgz",
|
"resolved": "https://registry.npmjs.org/vite/-/vite-7.1.5.tgz",
|
||||||
"integrity": "sha512-OOUi5zjkDxYrKhTV3V7iKsoS37VUM7v40+HuwEmcrsf11Cdx9y3DIr2Px6liIcZFwt3XSRpQvFpL3WVy7ApkGw==",
|
"integrity": "sha512-4cKBO9wR75r0BeIWWWId9XK9Lj6La5X846Zw9dFfzMRw38IlTk2iCcUt6hsyiDRcPidc55ZParFYDXi0nXOeLQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
@@ -2090,7 +2090,7 @@
|
|||||||
"picomatch": "^4.0.3",
|
"picomatch": "^4.0.3",
|
||||||
"postcss": "^8.5.6",
|
"postcss": "^8.5.6",
|
||||||
"rollup": "^4.43.0",
|
"rollup": "^4.43.0",
|
||||||
"tinyglobby": "^0.2.14"
|
"tinyglobby": "^0.2.15"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"vite": "bin/vite.js"
|
"vite": "bin/vite.js"
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "morning-report",
|
"name": "morning-report",
|
||||||
"version": "0.0.1",
|
"version": "0.0.2",
|
||||||
"description": "Procedurally generates a radio weather report",
|
"description": "Procedurally generates a radio weather report",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"weather",
|
"weather",
|
||||||
|
@@ -26,7 +26,7 @@ async function Stitcher(files: string[]) {
|
|||||||
const args: string[] = [];
|
const args: string[] = [];
|
||||||
files.forEach(f => args.push('-i', f));
|
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('-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);
|
await ffmpeg(args, files.length);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -41,7 +41,8 @@ describe('stitcher', () => {
|
|||||||
'2',
|
'2',
|
||||||
'-c:a',
|
'-c:a',
|
||||||
'pcm_s16le',
|
'pcm_s16le',
|
||||||
'output.wav'
|
'output.wav',
|
||||||
|
'-y'
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -62,7 +63,8 @@ describe('stitcher', () => {
|
|||||||
'2',
|
'2',
|
||||||
'-c:a',
|
'-c:a',
|
||||||
'pcm_s16le',
|
'pcm_s16le',
|
||||||
'output.wav'
|
'output.wav',
|
||||||
|
'-y'
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -81,7 +83,8 @@ describe('stitcher', () => {
|
|||||||
'2',
|
'2',
|
||||||
'-c:a',
|
'-c:a',
|
||||||
'pcm_s16le',
|
'pcm_s16le',
|
||||||
'output.wav'
|
'output.wav',
|
||||||
|
'-y'
|
||||||
]);
|
]);
|
||||||
});
|
});
|
||||||
});
|
});
|
Reference in New Issue
Block a user