nrkn / pvpoke-node

MIT License
6 stars 6 forks source link

Slice upstream gamemaster.json to smaller files #4

Closed aakropotkin closed 4 years ago

aakropotkin commented 4 years ago

Added script to pull PvPoke's gamemaster.json and slice it by key into smaller JSON files under dist/data/. This eliminates the need to constantly sync PvPoke's newest gamemaster.json manually ( although I have removed the contents of src/data at this point ). New keys can easily be added, and the opportunity for post-processing could be added. Currently the keys [ "moves", "pokemon" ] are targeted.

Usage:

npm run build;
node ./dist/sandbox/slice-upstream-gm;
ls ./dist/data/;
# ==> moves.json pokemon.json