-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(string casing): add ablility to utilitze different string casing…
… in files
- Loading branch information
1 parent
9f33314
commit 6b03cbe
Showing
3 changed files
with
117 additions
and
29 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
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,29 @@ | ||
export type StringCase = | ||
| 'snake' | ||
| 'pascal' | ||
| 'camel' | ||
| 'lower' | ||
| 'dot' | ||
| 'kebab' | ||
| 'sentence' | ||
| 'title' | ||
| 'path'; | ||
|
||
export type Variable = { | ||
prompt: string; | ||
defaultCase?: StringCase; | ||
}; | ||
|
||
export type Template = { | ||
name: string; | ||
directory: string; | ||
variables: { | ||
[variable: string]: Variable; | ||
}; | ||
}; | ||
|
||
export type Config = { | ||
templates: { | ||
[key: string]: Template; | ||
}; | ||
}; |