@tyleretters/discography 0.0.5 → 0.0.7

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 CHANGED
@@ -1,34 +1,32 @@
1
1
  # Discography
2
2
 
3
- - This repo builds a canonical discography of the music of Tyler Etters in JSON.
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
+ - Release dates are in a modified "Long Now" format, prefixed with `0`. This also solves for some date/object/string/parsing/conversion issues.
7
6
 
8
7
  ## Requirements
9
8
 
10
- Built with Python 3.11.5. Imports:
11
-
12
- - yaml
13
- - json
14
- - re
15
- - hashlib
16
- - datetime
9
+ JSON script built with Python 3.11.5. See `src/convert.py` for required imports.
17
10
 
18
11
  ## Usage Instructions
19
12
 
20
13
  - `npm i @tyleretters/discography`
21
- - `import discography from '@tyleretters/discography/dist/data.json'`
22
- - `console.log(discography)`
14
+ - `import discography from '@tyleretters/discography'`
23
15
 
24
16
  ## Development Instructions
25
17
 
26
18
  - clone discography
27
- - `cd discography/src`
28
- - `chmod 700 convert.py`
29
- - `./convert.py`
30
- - `cat ../dist/data.json`
19
+ - `cd discography`
20
+ - `chmod 700 src/convert.py`
21
+ - `npm run dev`
22
+
23
+ ## Convert YML
24
+
25
+ Whenever you update the `discography.yml` file, be sure to convert it to `discography.ts` with:
26
+
27
+ - `npm run convert`
31
28
 
32
29
  ## Publishing
33
30
 
34
- - `npm publish --access public`
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
+ project_slug: string;
19
+ release_slug: string;
20
+ id: string;
21
+ }[];