Refactor metamigo-common
This commit is contained in:
parent
cae0071851
commit
b3d8c3918e
32 changed files with 5 additions and 14 deletions
31
packages/metamigo-common/src/config/app-meta.ts
Normal file
31
packages/metamigo-common/src/config/app-meta.ts
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import { ConvictSchema } from "./types";
|
||||
|
||||
export interface IAppMetaConfig {
|
||||
name: string;
|
||||
version: string;
|
||||
figletFont: string;
|
||||
}
|
||||
|
||||
export const AppMetaConfig: ConvictSchema<IAppMetaConfig> = {
|
||||
version: {
|
||||
doc: "The current application version",
|
||||
format: String,
|
||||
env: "npm_package_version",
|
||||
default: null,
|
||||
skipGenerate: true,
|
||||
},
|
||||
name: {
|
||||
doc: "Application name",
|
||||
format: String,
|
||||
env: "npm_package_name",
|
||||
default: null,
|
||||
skipGenerate: true,
|
||||
},
|
||||
figletFont: {
|
||||
doc: "The figlet font name used to print the site name on boot",
|
||||
format: String,
|
||||
env: "FIGLET_FONT",
|
||||
default: "Sub-Zero",
|
||||
skipGenerate: true,
|
||||
},
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue