Files
lib/src/cli/templates/config.ts

22 lines
463 B
TypeScript
Raw Normal View History

2021-06-02 22:36:25 -05:00
import {Template} from '../Template'
2021-06-01 20:59:40 -05:00
/**
* A template that generates a new configuration file in the app/configs directory.
*/
2021-06-02 22:36:25 -05:00
const templateConfig: Template = {
2021-06-01 20:59:40 -05:00
name: 'config',
fileSuffix: '.config.ts',
description: 'Create a new config file.',
baseAppPath: ['configs'],
2021-06-02 22:36:25 -05:00
render() {
2021-06-01 20:59:40 -05:00
return `import { env } from '@extollo/lib'
export default {
key: env('VALUE_ENV_VAR', 'default value'),
}
`
2021-06-02 22:36:25 -05:00
},
2021-06-01 20:59:40 -05:00
}
2021-06-02 22:36:25 -05:00
export { templateConfig }