@tyleretters/discography 3.0.10 → 4.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -3
- package/dist/discography.d.ts +24 -24
- package/dist/discography.toml +5947 -0
- package/dist/index.es.js +62 -2
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +2 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +3 -3
- package/dist/discography.yml +0 -4176
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
- This repo builds a canonical discography of the music of Tyler Etters.
|
|
8
8
|
- This discography is incomplete.
|
|
9
|
+
- The source of truth is `src/discography.toml`.
|
|
9
10
|
- Release dates are in a modified "Long Now" format, prefixed with `0`. This also solves for some date/object/string/parsing/conversion issues.
|
|
10
11
|
- EPs are defined as being less than or equal to 29 minutes 59 seconds.
|
|
11
12
|
|
|
@@ -30,15 +31,18 @@ python3 src/scrape_bandcamp.py <bandcamp_url> \
|
|
|
30
31
|
--add
|
|
31
32
|
```
|
|
32
33
|
|
|
33
|
-
Review the prepended entry in `src/discography.
|
|
34
|
+
Review the prepended entry in `src/discography.toml`, then build and publish as normal.
|
|
34
35
|
|
|
35
36
|
## Build
|
|
36
37
|
|
|
37
38
|
```zsh
|
|
39
|
+
source venv/bin/activate
|
|
38
40
|
npm run build
|
|
39
41
|
```
|
|
40
42
|
|
|
41
|
-
This runs the full pipeline: Python converter (
|
|
43
|
+
This runs the full pipeline: Python converter (TOML to TS), Vite bundler (ESM + UMD), TypeScript compiler (type declarations), and copies the source TOML to `dist/`.
|
|
44
|
+
|
|
45
|
+
Activate the venv first. `npm run convert` calls `python3`, so the build fails without it.
|
|
42
46
|
|
|
43
47
|
`dist/` is gitignored — built artifacts are not committed. The `"files"` field in `package.json` ensures `dist/` is always included in the npm tarball.
|
|
44
48
|
|
|
@@ -57,7 +61,7 @@ npm run lint
|
|
|
57
61
|
|
|
58
62
|
## Publishing
|
|
59
63
|
|
|
60
|
-
After updating `src/discography.
|
|
64
|
+
After updating `src/discography.toml`:
|
|
61
65
|
|
|
62
66
|
```zsh
|
|
63
67
|
git add . && git commit -m "++" && git push origin main
|
|
@@ -77,3 +81,9 @@ npm i @tyleretters/discography
|
|
|
77
81
|
```typescript
|
|
78
82
|
import discography from "@tyleretters/discography";
|
|
79
83
|
```
|
|
84
|
+
|
|
85
|
+
The default export and its types did not change in 4.0.0.
|
|
86
|
+
|
|
87
|
+
The tarball also carries the raw data file. In 4.0.0 it changed from
|
|
88
|
+
`dist/discography.yml` to `dist/discography.toml`. Update any code that reads
|
|
89
|
+
that path.
|
package/dist/discography.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export declare const discography: ({
|
|
2
2
|
title: string;
|
|
3
|
-
slug: string;
|
|
4
3
|
project: string;
|
|
5
4
|
released: string;
|
|
6
5
|
type: string;
|
|
@@ -13,7 +12,6 @@ export declare const discography: ({
|
|
|
13
12
|
tracks: {
|
|
14
13
|
number: number;
|
|
15
14
|
title: string;
|
|
16
|
-
slug: string;
|
|
17
15
|
length: string;
|
|
18
16
|
mp3_url: string;
|
|
19
17
|
wav_url: string;
|
|
@@ -33,9 +31,11 @@ export declare const discography: ({
|
|
|
33
31
|
wav_url: string;
|
|
34
32
|
id: string;
|
|
35
33
|
runtime: string;
|
|
34
|
+
slug?: undefined;
|
|
36
35
|
monospaceNotes?: undefined;
|
|
37
36
|
} | {
|
|
38
37
|
title: string;
|
|
38
|
+
slug: string;
|
|
39
39
|
project: string;
|
|
40
40
|
released: string;
|
|
41
41
|
type: string;
|
|
@@ -44,11 +44,19 @@ export declare const discography: ({
|
|
|
44
44
|
label: string;
|
|
45
45
|
mp3: boolean;
|
|
46
46
|
wav: boolean;
|
|
47
|
+
trackIds: string[];
|
|
47
48
|
tracks: {
|
|
48
49
|
number: number;
|
|
49
50
|
title: string;
|
|
51
|
+
slug: string;
|
|
50
52
|
length: string;
|
|
51
53
|
mp3_url: string;
|
|
54
|
+
wav_url: string;
|
|
55
|
+
id: string;
|
|
56
|
+
}[];
|
|
57
|
+
streams: {
|
|
58
|
+
platform: string;
|
|
59
|
+
url: string;
|
|
52
60
|
id: string;
|
|
53
61
|
}[];
|
|
54
62
|
notes: string;
|
|
@@ -57,12 +65,9 @@ export declare const discography: ({
|
|
|
57
65
|
release_slug: string;
|
|
58
66
|
cover_url: string;
|
|
59
67
|
mp3_url: string;
|
|
68
|
+
wav_url: string;
|
|
60
69
|
id: string;
|
|
61
70
|
runtime: string;
|
|
62
|
-
slug?: undefined;
|
|
63
|
-
trackIds?: undefined;
|
|
64
|
-
streams?: undefined;
|
|
65
|
-
wav_url?: undefined;
|
|
66
71
|
monospaceNotes?: undefined;
|
|
67
72
|
} | {
|
|
68
73
|
title: string;
|
|
@@ -74,18 +79,11 @@ export declare const discography: ({
|
|
|
74
79
|
label: string;
|
|
75
80
|
mp3: boolean;
|
|
76
81
|
wav: boolean;
|
|
77
|
-
trackIds: string[];
|
|
78
82
|
tracks: {
|
|
79
83
|
number: number;
|
|
80
84
|
title: string;
|
|
81
85
|
length: string;
|
|
82
86
|
mp3_url: string;
|
|
83
|
-
wav_url: string;
|
|
84
|
-
id: string;
|
|
85
|
-
}[];
|
|
86
|
-
streams: {
|
|
87
|
-
platform: string;
|
|
88
|
-
url: string;
|
|
89
87
|
id: string;
|
|
90
88
|
}[];
|
|
91
89
|
notes: string;
|
|
@@ -94,9 +92,11 @@ export declare const discography: ({
|
|
|
94
92
|
release_slug: string;
|
|
95
93
|
cover_url: string;
|
|
96
94
|
mp3_url: string;
|
|
97
|
-
wav_url: string;
|
|
98
95
|
id: string;
|
|
99
96
|
runtime: string;
|
|
97
|
+
trackIds?: undefined;
|
|
98
|
+
streams?: undefined;
|
|
99
|
+
wav_url?: undefined;
|
|
100
100
|
slug?: undefined;
|
|
101
101
|
monospaceNotes?: undefined;
|
|
102
102
|
} | {
|
|
@@ -131,8 +131,8 @@ export declare const discography: ({
|
|
|
131
131
|
wav_url: string;
|
|
132
132
|
id: string;
|
|
133
133
|
runtime: string;
|
|
134
|
-
slug?: undefined;
|
|
135
134
|
trackIds?: undefined;
|
|
135
|
+
slug?: undefined;
|
|
136
136
|
monospaceNotes?: undefined;
|
|
137
137
|
} | {
|
|
138
138
|
title: string;
|
|
@@ -200,8 +200,8 @@ export declare const discography: ({
|
|
|
200
200
|
mp3_url: string;
|
|
201
201
|
id: string;
|
|
202
202
|
runtime: string;
|
|
203
|
-
slug?: undefined;
|
|
204
203
|
wav_url?: undefined;
|
|
204
|
+
slug?: undefined;
|
|
205
205
|
monospaceNotes?: undefined;
|
|
206
206
|
} | {
|
|
207
207
|
title: string;
|
|
@@ -231,10 +231,10 @@ export declare const discography: ({
|
|
|
231
231
|
cover_url: string;
|
|
232
232
|
id: string;
|
|
233
233
|
runtime: string;
|
|
234
|
-
slug?: undefined;
|
|
235
234
|
trackIds?: undefined;
|
|
236
235
|
mp3_url?: undefined;
|
|
237
236
|
wav_url?: undefined;
|
|
237
|
+
slug?: undefined;
|
|
238
238
|
monospaceNotes?: undefined;
|
|
239
239
|
} | {
|
|
240
240
|
title: string;
|
|
@@ -270,8 +270,8 @@ export declare const discography: ({
|
|
|
270
270
|
wav_url: string;
|
|
271
271
|
id: string;
|
|
272
272
|
runtime: string;
|
|
273
|
-
slug?: undefined;
|
|
274
273
|
trackIds?: undefined;
|
|
274
|
+
slug?: undefined;
|
|
275
275
|
monospaceNotes?: undefined;
|
|
276
276
|
} | {
|
|
277
277
|
title: string;
|
|
@@ -303,9 +303,9 @@ export declare const discography: ({
|
|
|
303
303
|
mp3_url: string;
|
|
304
304
|
id: string;
|
|
305
305
|
runtime: string;
|
|
306
|
-
slug?: undefined;
|
|
307
306
|
trackIds?: undefined;
|
|
308
307
|
wav_url?: undefined;
|
|
308
|
+
slug?: undefined;
|
|
309
309
|
monospaceNotes?: undefined;
|
|
310
310
|
} | {
|
|
311
311
|
title: string;
|
|
@@ -330,11 +330,11 @@ export declare const discography: ({
|
|
|
330
330
|
cover_url: string;
|
|
331
331
|
id: string;
|
|
332
332
|
runtime: string;
|
|
333
|
-
slug?: undefined;
|
|
334
333
|
trackIds?: undefined;
|
|
335
334
|
streams?: undefined;
|
|
336
335
|
mp3_url?: undefined;
|
|
337
336
|
wav_url?: undefined;
|
|
337
|
+
slug?: undefined;
|
|
338
338
|
monospaceNotes?: undefined;
|
|
339
339
|
} | {
|
|
340
340
|
title: string;
|
|
@@ -363,9 +363,9 @@ export declare const discography: ({
|
|
|
363
363
|
wav_url: string;
|
|
364
364
|
id: string;
|
|
365
365
|
runtime: string;
|
|
366
|
-
slug?: undefined;
|
|
367
366
|
trackIds?: undefined;
|
|
368
367
|
streams?: undefined;
|
|
368
|
+
slug?: undefined;
|
|
369
369
|
monospaceNotes?: undefined;
|
|
370
370
|
} | {
|
|
371
371
|
title: string;
|
|
@@ -400,8 +400,8 @@ export declare const discography: ({
|
|
|
400
400
|
wav_url: string;
|
|
401
401
|
id: string;
|
|
402
402
|
runtime: string;
|
|
403
|
-
slug?: undefined;
|
|
404
403
|
trackIds?: undefined;
|
|
404
|
+
slug?: undefined;
|
|
405
405
|
} | {
|
|
406
406
|
title: string;
|
|
407
407
|
project: string;
|
|
@@ -426,7 +426,7 @@ export declare const discography: ({
|
|
|
426
426
|
url: string;
|
|
427
427
|
id: string;
|
|
428
428
|
}[];
|
|
429
|
-
notes:
|
|
429
|
+
notes: string;
|
|
430
430
|
credits: string;
|
|
431
431
|
project_slug: string;
|
|
432
432
|
release_slug: string;
|
|
@@ -435,7 +435,7 @@ export declare const discography: ({
|
|
|
435
435
|
wav_url: string;
|
|
436
436
|
id: string;
|
|
437
437
|
runtime: string;
|
|
438
|
-
slug?: undefined;
|
|
439
438
|
trackIds?: undefined;
|
|
439
|
+
slug?: undefined;
|
|
440
440
|
monospaceNotes?: undefined;
|
|
441
441
|
})[];
|