create-eva
A CLI tool to generate TypeScript definitions for EVA Services.
Usage
Basic usage:
npx create-eva typegen
Command Line Options
-
-i <environment>
: Specify the input environment to generate typings for
npx create-eva typegen -i https://api.on-eva.io
-
-o <directory>
: Specify the output directory (defaults to "./eva-types")
npx create-eva typegen -o ./types
-
--use-string-ids
: Use string IDs instead of numeric IDs
npx create-eva typegen --use-string-ids
You can combine these options:
npx create-eva typegen -i https://api.on-eva.io -o ./types --use-string-ids
Configuration
You can create an eva.config.ts
file in your project root to set default options:
export default {
output: "./types",
input: "https://api.on-eva.io",
useStringIds: true,
};
Command line arguments will override these configuration options.
Contributing
Please see CONTRIBUTING.md for development setup and guidelines.