You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
575 B
23 lines
575 B
import {Template} from "../Template"
|
|
import {UniversalPath} from "../../util"
|
|
|
|
/**
|
|
* A template that generates a new configuration file in the app/configs directory.
|
|
*/
|
|
const config_template: Template = {
|
|
name: 'config',
|
|
fileSuffix: '.config.ts',
|
|
description: 'Create a new config file.',
|
|
baseAppPath: ['configs'],
|
|
render(name: string, fullCanonicalName: string, targetFilePath: UniversalPath) {
|
|
return `import { env } from '@extollo/lib'
|
|
|
|
export default {
|
|
key: env('VALUE_ENV_VAR', 'default value'),
|
|
}
|
|
`
|
|
}
|
|
}
|
|
|
|
export { config_template }
|