@tyleretters/discography
v3.0.1
Published
A canonical discography of the music of Tyler Etters.
Maintainers
Readme
Discography of Tyler Etters
https://www.npmjs.com/package/@tyleretters/discography
- This repo builds a canonical discography of the music of Tyler Etters.
- This discography is incomplete.
- Release dates are in a modified "Long Now" format, prefixed with
0. This also solves for some date/object/string/parsing/conversion issues. - EPs are defined as being less than or equal to 29 minutes 59 seconds.
Setup
cd discography
npm i
cd src
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtAdding a Compilation
cd src && source venv/bin/activate
python3 scrape_bandcamp.py <bandcamp_url> \
--my-artist "Your Artist Name" \
--project "Your Project Name" \
--role Artist \
--addReview the prepended entry in src/discography.yml, then build and publish as normal.
Build
npm run buildThis runs the full pipeline: Python converter (YAML to TS), Vite bundler (ESM + UMD), TypeScript compiler (type declarations), and copies the source YAML to dist/.
dist/ is gitignored — built artifacts are not committed. The "files" field in package.json ensures dist/ is always included in the npm tarball.
Test
source src/venv/bin/activate
pytest tests/Lint
npm run lintPublishing
After updating src/discography.yml:
git add . && git commit -m "++" && git push origin main
npm login
npm version patch
npm publishnpm publish automatically runs npm run build via the prepublishOnly hook, so there's no need to build manually before publishing.
Downstream Implementations
npm i @tyleretters/discographyimport discography from "@tyleretters/discography";