2.0.1 • Published 1 year ago
create-eva v2.0.1
create-eva
A CLI tool to generate TypeScript definitions for EVA Services.
Usage
Basic usage:
npx create-eva typegenCommand Line Options
-i <environment>: Specify the input environment to generate typings fornpx 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 IDsnpx 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-idsConfiguration
You can create an eva.config.ts file in your project root to set default options:
export default {
output: "./types", // Default output directory
input: "https://api.on-eva.io", // Default environment
useStringIds: true, // Use string IDs by default
};Command line arguments will override these configuration options.
Contributing
Please see CONTRIBUTING.md for development setup and guidelines.