Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,5 +84,6 @@ Get an overview of how to contribute to the project






1 change: 1 addition & 0 deletions docs/contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -168,5 +168,6 @@ Prefix that follows specification is not enough though. Remember that the title






1 change: 1 addition & 0 deletions docs/migrations/v0.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,3 +69,4 @@ const subscriber = await jetStreamPullSubscribeToReceiveUserSignedup({




6 changes: 3 additions & 3 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ $ npm install -g @the-codegen-project/cli
$ codegen COMMAND
running command...
$ codegen (--version)
@the-codegen-project/cli/0.53.0 linux-x64 node-v18.20.8
@the-codegen-project/cli/0.54.0 linux-x64 node-v18.20.8
$ codegen --help [COMMAND]
USAGE
$ codegen COMMAND
Expand Down Expand Up @@ -84,7 +84,7 @@ DESCRIPTION
Generate code based on your configuration, use `init` to get started.
```

_See code: [src/commands/generate.ts](https://github.com/the-codegen-project/cli/blob/v0.53.0/src/commands/generate.ts)_
_See code: [src/commands/generate.ts](https://github.com/the-codegen-project/cli/blob/v0.54.0/src/commands/generate.ts)_

## `codegen help [COMMAND]`

Expand Down Expand Up @@ -142,7 +142,7 @@ DESCRIPTION
Initialize The Codegen Project in your project
```

_See code: [src/commands/init.ts](https://github.com/the-codegen-project/cli/blob/v0.53.0/src/commands/init.ts)_
_See code: [src/commands/init.ts](https://github.com/the-codegen-project/cli/blob/v0.54.0/src/commands/init.ts)_

## `codegen version`

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@the-codegen-project/cli",
"description": "CLI to work with code generation in any environment",
"version": "0.53.0",
"version": "0.54.0",
"bin": {
"codegen": "./bin/run.mjs"
},
Expand Down
113 changes: 113 additions & 0 deletions schemas/configuration-schema-0.json
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,119 @@
"description": "Array of Modelina TypeScript presets passed to TypeScriptFileGenerator - middleware for customizing code generation",
"default": []
},
"options": {
"type": "object",
"properties": {
"indentation": {
"type": "object",
"properties": {
"type": {
"type": "string",
"enum": [
"spaces",
"tabs"
],
"description": "Indentation type - spaces or tabs"
},
"size": {
"type": "number",
"minimum": 1,
"maximum": 8,
"default": 2,
"description": "Indentation size (1-8 characters)"
}
},
"required": [
"type"
],
"additionalProperties": false,
"description": "Code indentation configuration"
},
"dependencyManager": {
"type": "object",
"properties": {
"dependencies": {
"type": "array",
"items": {
"type": "string"
},
"description": "Array of dependency names"
}
},
"additionalProperties": false,
"description": "Dependency management configuration"
},
"renderTypes": {
"type": "boolean",
"default": true,
"description": "Whether to render type definitions"
},
"modelType": {
"type": "string",
"enum": [
"class",
"interface"
],
"default": "class",
"description": "Generate classes or interfaces"
},
"enumType": {
"type": "string",
"enum": [
"enum",
"union"
],
"default": "enum",
"description": "Generate TypeScript enums or union types"
},
"mapType": {
"type": "string",
"enum": [
"indexedObject",
"map",
"record"
],
"default": "record",
"description": "How to represent map/dictionary types"
},
"moduleSystem": {
"type": "string",
"enum": [
"ESM",
"CJS"
],
"description": "Module system to use",
"default": "ESM"
},
"useJavascriptReservedKeywords": {
"type": "boolean",
"default": false,
"description": "Allow JavaScript reserved keywords"
},
"rawPropertyNames": {
"type": "boolean",
"default": false,
"description": "Use raw property names without constraints"
},
"typeMapping": {
"description": "Custom type mappings (complex Modelina type)"
},
"constraints": {
"description": "Naming and validation constraints (complex Modelina type)"
},
"presets": {
"default": []
},
"defaultPreset": {
"description": "Default preset configuration"
},
"processorOptions": {
"description": "Schema processing options (complex Modelina type)"
}
},
"additionalProperties": false,
"description": "Modelina TypeScriptOptions interface - configures TypeScript code generation including model types, enums, modules, and constraints. See: https://github.com/asyncapi/modelina/blob/master/src/generators/typescript/TypeScriptGenerator.ts"
},
"outputPath": {
"type": "string",
"default": "src/__gen__/models"
Expand Down
Loading