2.0.1 • Published 7 months ago

create-eva v2.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
7 months ago

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", // 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.

2.0.1

7 months ago

2.0.0

7 months ago

1.2.0

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.0

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago