@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 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
+ - 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
- Built with Python 3.11.5. Imports:
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/dist/data.json'`
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/src`
28
- - `chmod 700 convert.py`
29
- - `./convert.py`
30
- - `cat ../dist/data.json`
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 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
+ release_slug: string;
19
+ project_slug: string;
20
+ id: string;
21
+ }[];