@tyleretters/discography 0.0.5 → 0.0.6
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 +15 -17
- package/dist/discography.d.ts +21 -0
- package/dist/discography.js +2468 -0
- package/dist/discography.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2472 -0
- package/dist/index.js.map +1 -0
- package/dist/types.d.ts +22 -0
- package/dist/types.js +2 -0
- package/dist/types.js.map +1 -0
- package/package.json +15 -3
- package/rollup.config.js +18 -0
- package/src/convert.py +22 -8
- package/{dist/data.json → src/discography.ts} +7 -7
- package/src/{data.yml → discography.yml} +1 -1
- package/src/index.ts +5 -0
- package/src/types.ts +23 -0
- package/tsconfig.json +15 -0
package/README.md
CHANGED
|
@@ -1,34 +1,32 @@
|
|
|
1
1
|
# Discography
|
|
2
2
|
|
|
3
|
-
- This repo builds a canonical discography of the music of Tyler Etters
|
|
4
|
-
- Edit the `src/data.yml` file then run `convert.py` to generate JSON.
|
|
5
|
-
- Release dates are in a modified "Long Now" format, prefixed with `0`. This also solves for some date/object/string/parsing/conversion issues.
|
|
3
|
+
- This repo builds a canonical discography of the music of Tyler Etters.
|
|
6
4
|
- This discography is incomplete.
|
|
5
|
+
- Edit the `src/data.yml` file then run `npm run build` to generate JSON.
|
|
6
|
+
- `src/data.json` is a symlink to `dist/data.json` for now.
|
|
7
|
+
- Release dates are in a modified "Long Now" format, prefixed with `0`. This also solves for some date/object/string/parsing/conversion issues.
|
|
7
8
|
|
|
8
9
|
## Requirements
|
|
9
10
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
- yaml
|
|
13
|
-
- json
|
|
14
|
-
- re
|
|
15
|
-
- hashlib
|
|
16
|
-
- datetime
|
|
11
|
+
JSON script built with Python 3.11.5. See `src/convert.py` for required imports.
|
|
17
12
|
|
|
18
13
|
## Usage Instructions
|
|
19
14
|
|
|
20
15
|
- `npm i @tyleretters/discography`
|
|
21
|
-
- `import discography from '@tyleretters/discography
|
|
22
|
-
- `console.log(discography)`
|
|
16
|
+
- `import discography from '@tyleretters/discography'`
|
|
23
17
|
|
|
24
18
|
## Development Instructions
|
|
25
19
|
|
|
26
20
|
- clone discography
|
|
27
|
-
- `cd discography
|
|
28
|
-
- `chmod 700 convert.py`
|
|
29
|
-
-
|
|
30
|
-
|
|
21
|
+
- `cd discography`
|
|
22
|
+
- `chmod 700 src/convert.py`
|
|
23
|
+
- `npm run dev`
|
|
24
|
+
|
|
25
|
+
## Convert YML
|
|
26
|
+
|
|
27
|
+
- `npm run convert`
|
|
31
28
|
|
|
32
29
|
## Publishing
|
|
33
30
|
|
|
34
|
-
- `npm
|
|
31
|
+
- `npm run build`
|
|
32
|
+
- `npm publish`
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const discography: {
|
|
2
|
+
title: string;
|
|
3
|
+
project: string;
|
|
4
|
+
released: string;
|
|
5
|
+
type: string;
|
|
6
|
+
format: string;
|
|
7
|
+
role: string;
|
|
8
|
+
label: string;
|
|
9
|
+
tracks: {
|
|
10
|
+
number: number;
|
|
11
|
+
title: string;
|
|
12
|
+
length: string;
|
|
13
|
+
track_slug: string;
|
|
14
|
+
id: string;
|
|
15
|
+
}[];
|
|
16
|
+
notes: string;
|
|
17
|
+
credits: string;
|
|
18
|
+
release_slug: string;
|
|
19
|
+
project_slug: string;
|
|
20
|
+
id: string;
|
|
21
|
+
}[];
|