mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-04-25 15:40:31 -05:00
`node tools/set-import [version]` can be run to create a `@pokemon-showdown/sets` package containing sets from Smogon, usage stats and third party sources. Some notes: - The build is set up so that `tools/set-import/importer.ts` is compiled to `tools/set-import/importer.js` - creating a `.tools-dist/set-import` directory for the sole artifact was deemed to be overkill - The sets package is generated such that it can be used easily on Node or in a browser (where the large set JSON can be loaded asynchronously) - Supported tiers/formats are mostly arbitrary - those popular enough to have a signficant playerbase or analyses on Smogon have been included, but additional formats can be added based on demand - Some set information is redundant for ease of use by downstream users: certain formes are split out and information that could theoretically be inferred like level/ability/HP IVs are included to simplify parsing logic and make the sets more immediately available. This results in what should mostly be negligible size overhead. - In a similar vein, display versions of effect names instead of IDs are used (name -> ID is trivial, ID -> name requires data lookup) - All sets pass validation, provided certain simple transformations are applied (eg. reverting `battleOnly` formes like Megas) This tool has primarily been tested to run on Linux - running on other platforms is not guaranteed to result in error-free output.
44 lines
1.3 KiB
JSON
44 lines
1.3 KiB
JSON
{
|
|
"compilerOptions": {
|
|
"lib": ["es2015", "es2016.array.include", "es2017.object"],
|
|
"noEmit": true,
|
|
"target": "esnext",
|
|
"module": "commonjs",
|
|
"moduleResolution": "node",
|
|
"strict": true,
|
|
"allowJs": true,
|
|
"checkJs": true
|
|
},
|
|
"types": ["node"],
|
|
"exclude": [
|
|
"./.*-dist/**/*",
|
|
"./server/index.js",
|
|
"./server/chat-commands.js"
|
|
],
|
|
"include": [
|
|
"./config/formats.js",
|
|
"./data/*",
|
|
"./data/mods/*/*",
|
|
"./dev-tools/*.ts",
|
|
"./lib/*",
|
|
"./server/*",
|
|
"./server/tournaments/*",
|
|
"./server/chat-plugins/*.ts",
|
|
"./server/chat-plugins/chat-monitor.js",
|
|
"./server/chat-plugins/daily-spotlight.js",
|
|
"./server/chat-plugins/hangman.js",
|
|
"./server/chat-plugins/helptickets.js",
|
|
"./server/chat-plugins/mafia-data.js",
|
|
"./server/chat-plugins/mafia.js",
|
|
"./server/chat-plugins/othermetas.js",
|
|
"./server/chat-plugins/poll.js",
|
|
"./server/chat-plugins/room-faqs.js",
|
|
"./server/chat-plugins/thecafe.js",
|
|
"./server/chat-plugins/thing-of-the-day.js",
|
|
"./server/chat-plugins/uno.js",
|
|
"./server/chat-plugins/wifi.js",
|
|
"./sim/**/*",
|
|
"./tools/set-import/*.ts"
|
|
]
|
|
}
|