Module: @kosko/template-environment#

@kosko/template-environment#

Create a new environment.

Usage#

npx @kosko/template-environment --name dev

Options#

--name#

Environment name. (Required)

Index#

Variables#

Object literals#

Variables#

INDEX_SCRIPT#

Const INDEX_SCRIPT: \""use strict";

module.exports = {}; \" = `"use strict";module.exports = {};`

Defined in packages/template-environment/src/template.ts:8

Object literals#

template#

Const template: object

Defined in packages/template-environment/src/template.ts:13

Properties:#

NameTypeValue
descriptionstring"Create a new environment"
generatefunction(__namedParameters: { name: string }) => Promise<{ files: { content: string = INDEX_SCRIPT; path: string = join("environments", name, "index.js") }[] = [ { path: join("environments", name, "index.js"), content: INDEX_SCRIPT } ] }>
optionsobject{ name: { description: string = "Environment name"; required: true = true; type: \"string\" = "string" } }