Skip to content

Commit

Permalink
add more development types
Browse files Browse the repository at this point in the history
  • Loading branch information
TimurRin committed Sep 2, 2024
1 parent a96d560 commit 1cf5b34
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/actions/anca.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ export async function fixAncaConfig(development: AncaDevelopment) {
if (contents.type == null || AncaConfigType[contents.type] == null) {
contents.type = (
await promptOptions("\nChoose project type:", [
{ label: "API", name: "api" },
{ label: "App", name: "app" },
{ label: "Library", name: "library" },
{ label: "Project (other)", name: "project" },
{ label: "Web", name: "web" },
])
).name as AncaConfigType;
}
Expand Down
5 changes: 3 additions & 2 deletions src/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,14 +74,15 @@ export interface AncaWorkfolder {

export enum AncaConfigStack {
nodejs = "nodejs",
python = "python",
unsupported = "unsupported",
}

export enum AncaConfigType {
api = "api",
app = "app",
library = "library",
project = "project",
web = "web",
}

export interface AncaConfigAuthor {
Expand Down Expand Up @@ -316,7 +317,7 @@ export const ANCA_CONFIG_SCHEMA = {
type: "string",
},
type: {
enum: ["app", "library", "project"],
enum: ["api", "app", "library", "project", "web"],
type: "string",
},
},
Expand Down

0 comments on commit 1cf5b34

Please sign in to comment.