Skip to content
MTGJSONv4 website scripts for Magic: the Gathering
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
utils
.editorconfig
.gitignore
.prettierrc
CHANGELOG.md
LICENSE
README.md
compress_json.py
package.json
static.json
yarn.lock

README.md

MTGJSON Website

Built using VuePress with Vue, JS/TS and Markdown on Node

Dependencies

  • Node
  • Yarn

Installation

Install project dependencies. You'll notice all of them are non-dev, this is because on Heroku you can run in to errors. Heroku prunes what is needed on its own.

One thing to know is that the only production dependency is vuepress

yarn install

Development Server

yarn dev

Every now and then when making major changes be sure to kill your server and rebuild to verify everything is still working. The following code will kill all node instances on linux-based systems. When adding new components or modules the server watch may not pick up on changes.

killall node

Building for Distribution

yarn build

Misc

Notes

We use the .schema format for docuemntation on structures. In some IDE's this will lead to linting errors. Do ignore them.

Landcycle

Landcycle is a JS class that allows JSON to take mustache variables such as {{example-variable}} and then intercepts the JSON in Vue to hydrate the data in to data of your choosing. On the website we use this to change data structures in to anchor tags that link to other documentation.

You can’t perform that action at this time.