Import other modules into monorepo
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
26
src/cli/templates/routes.ts
Normal file
26
src/cli/templates/routes.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import {Template} from "../Template"
|
||||
import {UniversalPath} from "../../util"
|
||||
|
||||
/**
|
||||
* Template that generates a new route definition file in app/http/routes.
|
||||
*/
|
||||
const routes_template: Template = {
|
||||
name: 'routes',
|
||||
fileSuffix: '.routes.ts',
|
||||
description: 'Create a file for route definitions.',
|
||||
baseAppPath: ['http', 'routes'],
|
||||
render(name: string, fullCanonicalName: string, targetFilePath: UniversalPath) {
|
||||
return `import {Route} from "@extollo/lib"
|
||||
|
||||
/*
|
||||
* ${name} Routes
|
||||
* -------------------------------
|
||||
* Put some description here.
|
||||
*/
|
||||
|
||||
|
||||
`
|
||||
}
|
||||
}
|
||||
|
||||
export { routes_template }
|
||||
Reference in New Issue
Block a user