Files
lib/src/cli/templates/config.ts
garrettmills 1d5056b753
All checks were successful
continuous-integration/drone/push Build is passing
Setup eslint and enforce rules
2021-06-02 22:36:25 -05:00

22 lines
463 B
TypeScript

import {Template} from '../Template'
/**
* A template that generates a new configuration file in the app/configs directory.
*/
const templateConfig: Template = {
name: 'config',
fileSuffix: '.config.ts',
description: 'Create a new config file.',
baseAppPath: ['configs'],
render() {
return `import { env } from '@extollo/lib'
export default {
key: env('VALUE_ENV_VAR', 'default value'),
}
`
},
}
export { templateConfig }