mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-03-21 17:50:29 -05:00
Build JSON versions of the pokedex and moves tables
These are to ease third-party development done in languages other than JS. Their URLs are in WEB-API.md
This commit is contained in:
parent
8e56a4dfcc
commit
0f3ec58174
|
|
@ -66,3 +66,11 @@ News
|
|||
https://pokemonshowdown.com/news.json
|
||||
|
||||
https://pokemonshowdown.com/news/270.json
|
||||
|
||||
|
||||
Dex resources
|
||||
-------------
|
||||
|
||||
https://play.pokemonshowdown.com/data/pokedex.json
|
||||
|
||||
https://play.pokemonshowdown.com/data/moves.json
|
||||
|
|
|
|||
|
|
@ -1076,6 +1076,7 @@ process.stdout.write("Building `data/pokedex.js`... ");
|
|||
}
|
||||
const buf = 'exports.BattlePokedex = ' + es3stringify(Pokedex) + ';';
|
||||
fs.writeFileSync('data/pokedex.js', buf);
|
||||
fs.writeFileSync('data/pokedex.json', JSON.stringify(Pokedex));
|
||||
}
|
||||
|
||||
console.log("DONE");
|
||||
|
|
@ -1095,6 +1096,7 @@ process.stdout.write("Building `data/moves,items,abilities,typechart,learnsets.j
|
|||
}
|
||||
const buf = 'exports.BattleMovedex = ' + es3stringify(Moves) + ';';
|
||||
fs.writeFileSync('data/moves.js', buf);
|
||||
fs.writeFileSync('data/moves.json', JSON.stringify(Moves));
|
||||
}
|
||||
|
||||
/*********************************************************
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user