Skip to content

Simwarden/cards

 
 

Repository files navigation

Leder Cards

This repository obtains and reformats cards for the Leder Spotlight application.

Requirements

  • Node 18.15.0+

Get Started

  1. Clone this repository
  2. npm install

Useful Commands

  • npm run build - build everything
  • npm run build:card-data - build the card data only
  • npm run build:card-symbols - move the card symbol icons
  • npm run build:card-images - move the card images
  • npm run build:i18n - build the i18n files and ensure that they're formatted correctly
  • npm run validate - validate everything
  • npm run validate:card-data - validate the card data is formatted correctly

Adding New Content

Products

  1. Create a new file matching the game name in content/meta-data
  2. Create a new folder in content/card-data (the name should match the gameName in the meta-data file)
  3. Create a new folder in content/card-images (the name should match the gameName in the meta-data file)
  4. Create a new folder in content/card-symbols (the name should match the gameName in the meta-data file)
  5. Add a new 512x512 PNG in content/card-symbols/products (the name should match the gameName in the meta-data file)

Follow the guide for adding a new locale

Locale

  1. Create a new folder in content/card-data/{game} for the locale (probably en-US)
    1. Add a {game}.yml file here (or, as many separate files as desired - they all get concatenated together) and fill it with card data.
  2. Create a new folder in content/card-images/{game} for the locale (probably en-US)
    1. Fill this folder with the images for the cards for the game.

Adding New Filters

When adding new filters in a meta data file that previously did not exist, you must also:

  1. Navigate to each locale file (in the i18n folder)
  2. Go to Pages.AdvancedSearch
  3. Add a similar entry as seen there for your new filter.

Publishing New Content

This is done automatically when a PR is merged to master, and isn't intended to be done manually.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%