-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(templatesList): add templates list for stable and experimental f…
…or interactive choices - add template types and enum - add conditional template selection - fix src/new/cli.ts bad eol
- Loading branch information
Showing
6 changed files
with
69 additions
and
37 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 +1,2 @@ | ||
export * from "./config"; | ||
export * from "./template"; |
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,10 @@ | ||
export enum TemplateEnum { | ||
OPINIONATED = "opinionated", | ||
NON_OPINIONATED = "non-opinionated" | ||
} | ||
|
||
export interface Template { | ||
name: TemplateEnum; | ||
description: string; | ||
path: string; | ||
} |
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
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,30 @@ | ||
import { TemplateEnum, Template } from "./@types"; | ||
|
||
const stable: Template[] = [ | ||
{ | ||
name: TemplateEnum.OPINIONATED, | ||
description: "Non-Opinionated :: A simple ExpressoTS project.", | ||
path: "expressots/expressots/templates/non_opinionated", | ||
}, | ||
{ | ||
name: TemplateEnum.NON_OPINIONATED, | ||
description: "Opinionated :: A complete ExpressoTS project with an opinionated structure and features.", | ||
path: "expressots/expressots/templates/opinionated", | ||
}, | ||
]; | ||
|
||
const experimental: Template[] = [ | ||
{ | ||
name: TemplateEnum.OPINIONATED, | ||
description: "Non-Opinionated :: EXPERIMENTAL BUILD - A simple ExpressoTS project.", | ||
path: "expressots/expressots/templates/experimental/non_opinionated", | ||
}, | ||
{ | ||
name: TemplateEnum.NON_OPINIONATED, | ||
description: | ||
"Opinionated :: EXPERIMENTAL BUILD - A complete ExpressoTS project with an opinionated structure and features.", | ||
path: "expressots/expressots/templates/experimental/opinionated", | ||
}, | ||
]; | ||
|
||
export default { stable, experimental }; |