Understand the generator pipeline
masterThe generator/ directory contains maintainer-only code used to produce the public artifacts of pokedex-promise-v2 from upstream PokeAPI JSON Schemas. The pipeline consists of four main stages executed via npm run generate:all:
apidata: Clones, syncs, or replaces the raw API data in./api-data/.generate:types(TypesGenerator.ts): Generates the TypeScript definitions intypes/index.d.tsand the API map indist/generator/apiMap.json.generate:main(Main.ts): Generates the corePokedexclass insrc/index.tsand appends it to the type definitions.generate:jsdocs(AddJSDocs.ts): Enriches the generated types with official PokeAPI documentation descriptions.
Note: The stages hand off data using the on-disk dist/generator/apiMap.json and the in-progress types/index.d.ts file.
npm run generate:all