This repository obtains and reformats cards for the Leder Spotlight application.
- Node 18.15.0+
- Clone this repository
npm install
npm run build- build everythingnpm run build:card-data- build the card data onlynpm run build:card-symbols- move the card symbol iconsnpm run build:card-images- move the card imagesnpm run build:i18n- build the i18n files and ensure that they're formatted correctlynpm run validate- validate everythingnpm run validate:card-data- validate the card data is formatted correctly
- Create a new file matching the game name in
content/meta-data - Create a new folder in
content/card-data(the name should match thegameNamein themeta-datafile) - Create a new folder in
content/card-images(the name should match thegameNamein themeta-datafile) - Create a new folder in
content/card-symbols(the name should match thegameNamein themeta-datafile) - Add a new 512x512 PNG in
content/card-symbols/products(the name should match thegameNamein themeta-datafile)
Follow the guide for adding a new locale
- Create a new folder in
content/card-data/{game}for the locale (probablyen-US)- Add a
{game}.ymlfile here (or, as many separate files as desired - they all get concatenated together) and fill it with card data.
- Add a
- Create a new folder in
content/card-images/{game}for the locale (probablyen-US)- Fill this folder with the images for the cards for the game.
When adding new filters in a meta data file that previously did not exist, you must also:
- Navigate to each locale file (in the
i18nfolder) - Go to
Pages.AdvancedSearch - Add a similar entry as seen there for your new filter.
This is done automatically when a PR is merged to master, and isn't intended to be done manually.