4.3.11 • Published 9 months ago

@selfage/generator_cli v4.3.11

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

@seflage/generator_cli

Install

npm install @selfage/generator_cli

Overview

Written in TypeScript and compiled to ES6 with inline source map & source. See @selfage/tsconfig for full compiler options. Provides a CLI to generate TypeScript code based on definitions written in JSON. See commander if you are not sure about CLI syntax.

It can generate messages, web/node service client and hanlder, and GCP Spanner database. Generated code would require corresponding runtime lib to run, which can be installed separately.

CLI

$ geneage -h
Usage: geneage [options] <definitionFile>

Generate various TypeScript codes from the definition file written in JSON.

Options:
  -V, --version                 output the version number
  -i, --index-file <indexFile>  The index yaml file for Google Cloud Datastore composite index. Its file ext can be neglected and is always fixed as .yaml. Requried only if
                                your definition file includes a datastore definition. You can also add '"datastoreIndex": "./your/index_file"' to your package.json file to
                                save typings.
  --dry-run                     Print the generated content instead of writing it to the destination file.
  -h, --help                    display help for command

Examples

All code generation examples can be found under test_data/generator/ directory.

4.3.9

9 months ago

4.3.6

10 months ago

4.3.5

10 months ago

4.3.8

10 months ago

4.3.7

10 months ago

4.3.11

9 months ago

4.3.10

9 months ago

3.2.2

1 year ago

3.2.1

1 year ago

3.2.4

1 year ago

3.2.3

1 year ago

4.0.4

1 year ago

4.0.1

1 year ago

4.0.0

1 year ago

4.2.1

11 months ago

4.0.3

1 year ago

4.2.0

11 months ago

4.0.2

1 year ago

3.3.1

1 year ago

3.3.0

1 year ago

3.3.4

1 year ago

3.3.3

1 year ago

3.3.2

1 year ago

4.3.2

10 months ago

4.3.1

10 months ago

4.3.4

10 months ago

4.3.3

10 months ago

4.1.0

11 months ago

4.3.0

10 months ago

3.1.3

1 year ago

3.1.2

1 year ago

3.2.0

1 year ago

3.1.4

1 year ago

3.1.1

1 year ago

3.1.0

1 year ago

1.5.0

2 years ago

2.2.1

1 year ago

2.1.2

1 year ago

2.2.0

1 year ago

2.1.1

1 year ago

2.2.2

1 year ago

2.1.3

1 year ago

2.1.0

1 year ago

2.0.0

1 year ago

3.0.2

1 year ago

3.0.1

1 year ago

3.0.0

1 year ago

1.4.3

2 years ago

1.4.2

2 years ago

1.4.1

2 years ago

1.4.0

2 years ago

1.3.3

3 years ago

1.3.2

3 years ago

1.3.1

3 years ago

1.3.0

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago