Files
lib/src/cli/templates/config.ts
garrettmills 9be9c44a32
Some checks failed
continuous-integration/drone/push Build is failing
Import other modules into monorepo
2021-06-01 20:59:40 -05:00

23 lines
575 B
TypeScript

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 }