forked from moonrepo/moon
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
new: Add generator/template types to types package. (moonrepo#305)
* Add template config. * Update deps. * Add version. * Decline other packages. * Fix typo.
- Loading branch information
Showing
8 changed files
with
837 additions
and
794 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,14 @@ | ||
releases: | ||
"@moonrepo/cli": minor | ||
"@moonrepo/core-linux-arm64-gnu": minor | ||
"@moonrepo/core-linux-arm64-musl": minor | ||
"@moonrepo/core-linux-x64-gnu": minor | ||
"@moonrepo/core-linux-x64-musl": minor | ||
"@moonrepo/core-macos-arm64": minor | ||
"@moonrepo/core-macos-x64": minor | ||
"@moonrepo/core-windows-x64-msvc": minor | ||
'@moonrepo/cli': minor | ||
'@moonrepo/core-linux-arm64-gnu': minor | ||
'@moonrepo/core-linux-arm64-musl': minor | ||
'@moonrepo/core-linux-x64-gnu': minor | ||
'@moonrepo/core-linux-x64-musl': minor | ||
'@moonrepo/core-macos-arm64': minor | ||
'@moonrepo/core-macos-x64': minor | ||
'@moonrepo/core-windows-x64-msvc': minor | ||
'@moonrepo/types': patch | ||
|
||
declined: | ||
- '@moonrepo/runtime' | ||
- 'website' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
export * from './common'; | ||
export * from './config'; | ||
export * from './project'; | ||
export * from './project-config'; | ||
export * from './runner'; | ||
export * from './template-config'; | ||
export * from './workspace-config'; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// template.yml | ||
|
||
export interface TemplateBooleanVariableConfig { | ||
default: boolean; | ||
prompt: string | null; | ||
required: boolean | null; | ||
type: 'boolean'; | ||
} | ||
|
||
export interface TemplateEnumVariableConfig { | ||
default: string; | ||
multiple: boolean | null; | ||
prompt: string; | ||
type: 'enum'; | ||
values: string[]; | ||
} | ||
|
||
export interface TemplateNumberVariableConfig { | ||
default: number; | ||
prompt: string | null; | ||
required: boolean | null; | ||
type: 'number'; | ||
} | ||
|
||
export interface TemplateStringVariableConfig { | ||
default: string; | ||
prompt: string | null; | ||
required: boolean | null; | ||
type: 'string'; | ||
} | ||
|
||
export type TemplateVariable = | ||
| TemplateBooleanVariableConfig | ||
| TemplateEnumVariableConfig | ||
| TemplateNumberVariableConfig | ||
| TemplateStringVariableConfig; | ||
|
||
export interface TemplateConfig { | ||
description: string; | ||
tite: string; | ||
variables: Record<string, TemplateVariable>; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.