Skip to content

Repository files navigation

Discography of Tyler Etters

https://www.npmjs.com/package/@tyleretters/discography

npm version

  • 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
python3 -m venv venv
source venv/bin/activate
pip install -r src/requirements.txt

Adding a Compilation

source venv/bin/activate
python3 src/scrape_bandcamp.py <bandcamp_url> \
  --my-artist "Your Artist Name" \
  --project "Your Project Name" \
  --role Artist \
  --add

Review the prepended entry in src/discography.yml, then build and publish as normal.

Build

npm run build

This 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 venv/bin/activate
pytest tests/

Lint

npm run lint

Publishing

After updating src/discography.yml:

git add . && git commit -m "++" && git push origin main
npm login
npm version patch
npm publish

npm 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/discography
import discography from "@tyleretters/discography";

About

Canonical Discography of Tyler Etters

Resources

Stars

Watchers

Forks

Used by

Contributors

Languages