Reference
Type Aliases
CustomizableInitOptions
type CustomizableInitOptions = object;Defined in: index.ts:25
Type declaration
| Name | Type |
|---|---|
author | string |
name | string |
GitignoreFileInfo
type GitignoreFileInfo = IgnoreFileInfo;Defined in: index.ts:48
IgnoreFileInfo
type IgnoreFileInfo = object;Defined in: index.ts:44
Type declaration
| Name | Type |
|---|---|
path | string |
InitFileResults
type InitFileResults = object;Defined in: index.ts:50
Type declaration
| Name | Type |
|---|---|
gitignore? | IgnoreFileInfo |
manifest? | JSONFileInfo<NormalizedManifest> |
npmignore? | IgnoreFileInfo |
InitOptions
type InitOptions = object;Defined in: index.ts:19
Type declaration
| Name | Type |
|---|---|
author? | string |
cwd? | string |
logger? | (...a) => void |
JSONFileInfo<T>
type JSONFileInfo<T> = object;Defined in: index.ts:39
Type Parameters
Type declaration
| Name | Type |
|---|---|
data | T |
path | string |
Functions
ensureGitignore()
function ensureGitignore(cwd): undefined | IgnoreFileInfoDefined in: index.ts:64
Create or update a .gitignore file ensuring node_modules is listed.
Returns { path } of the file that was written, or undefined if the
file already contained the entry and no changes were needed.
Parameters
| Parameter | Type |
|---|---|
cwd | string |
Returns
undefined | IgnoreFileInfo
ensureNpmignore()
function ensureNpmignore(cwd): undefined | IgnoreFileInfoDefined in: index.ts:92
Create or update a .npmignore file ensuring vlt.json is listed.
Returns { path } of the file that was written, or undefined if the
file already contained the entry and no changes were needed.
Parameters
| Parameter | Type |
|---|---|
cwd | string |
Returns
undefined | IgnoreFileInfo
getAuthorFromGitUser()
function getAuthorFromGitUser(user?): stringDefined in: get-author-from-git-user.ts:3
Parameters
| Parameter | Type |
|---|---|
user? | GitUser |
Returns
string
init()
function init(__namedParameters): Promise<InitFileResults>Defined in: index.ts:114
Parameters
| Parameter | Type |
|---|---|
__namedParameters | InitOptions |
Returns
Promise<InitFileResults>