mirror of
https://github.com/smogon/pokemon-showdown-client.git
synced 2026-04-25 07:57:01 -05:00
This is the first step of moving the entire client over to TypeScript + Preact!!!! The main change here is that battledata.js has been split into three files: - `src/battle-dex.ts` - `src/battle-dex-data.ts` - `src/battle-dex-misc.js` These are concatenated back into `battledata.js` in the client, so third parties (and specifically, old replay files) should be unaffected. Also, this makes sure that we don't have more than two dependencies right now. The compilation is done with Babel 7 beta, because no stable version of Babel supports TypeScript. We're not using `tsc` because it can't compile to ES3 and it doesn't support preserving line numbers. `toRoomid` has been moved from client.js to battle-dex.ts.
14 lines
273 B
JSON
14 lines
273 B
JSON
{
|
|
"compilerOptions": {
|
|
"lib": ["dom", "es6", "es2016.array.include", "es2017.object"],
|
|
"noEmit": true,
|
|
"target": "esnext",
|
|
"module": "None",
|
|
"strict": true
|
|
},
|
|
"types": ["node"],
|
|
"include": [
|
|
"./src/*"
|
|
]
|
|
}
|