Skip to main content
Module

x/typeorm/src/commands/InitCommand.ts>InitCommand

Forked from https://github.com/typeorm/typeorm
Latest
class InitCommand
implements [yargs.CommandModule]
import { InitCommand } from "https://deno.land/x/typeorm@v0.2.23-rc10/src/commands/InitCommand.ts";

Generates a new project with TypeORM.

Properties

command: string
describe

Methods

builder(args: yargs.Argv)
handler(args: yargs.Arguments)

Static Methods

protected
getAppIndexTemplate(): string

Gets contents of the main (index) application file.

protected
getDockerComposeTemplate(database: string): string

Gets contents of the new docker-compose.yml file.

protected
getGitIgnoreFile(): string

Gets contents of the .gitignore file.

protected
getOrmConfigTemplate(database: string): string

Gets contents of the ormconfig file.

protected
getReadmeTemplate(options: { docker: boolean; }): string

Gets contents of the new readme.md file.

protected
getTsConfigTemplate(): string

Gets contents of the ormconfig file.

protected
getUserEntityTemplate(database: string): string

Gets contents of the user entity.