Skip to content

Latest commit

History

History
186 lines (113 loc) 路 3.95 KB

options.md

File metadata and controls

186 lines (113 loc) 路 3.95 KB
title
Options

offlineFallback

  • Type: boolean

Fallback to local cache assets when you are offline.

default cli
true `--offline-fallback=true

updateNotify

  • Type: boolean

Notifies the latest upgrade information like npm By update-notifier

default cli
true `--update-notify=true

cacheDir

  • Type: string|boolean

Appoints to the cache where to store. It should be a directory path.

default cli
an computed value --cache-dir=<string>

includes

  • Type: string|string[]|Function|RegExp

Which files are included (including all files by default)

It's useful that overwriting some files. (e.g. README.md)

default cli
() => true --includes=<string>,<string>

excludes

  • Type: string|string[]|Function|RegExp

Which files are excluded.

default cli
() => false --excludes=<string>,<string>

extends

  • Type: Array<string | { source: string, pick?: string[], omit?: string[] }>

Extends external edam configuration files.

default cli
[] --extends=<string,string>

plugins

  • Type: string[]|[[Function, object]]|Function[]

The plugins you requires.

default cli
[] --plugins=<string,string>

debug

  • Type: boolean

Enable debug mode for verbose log (Don't works when silent is true).

default cli
false `-d, --debug=true

pull.npmClient

  • Type: npm|yarn

Appoints to the command when installing package form npmjs.com.

default cli
npm --pull.npm-client=<string>

pull.npmClientArgs

  • Type: npm|yarn

Appoints to the command's arguments when installing package. eg. --pull.npm-client-args="--registry=http://example.com"

default cli
string[] --pull.npm-client-args=<string>

pull.git

  • Type: clone|download

Uses which way to pull git repo.

default cli
clone --pull.git=<string>

userc

  • Type: boolean

Edam can deduce the configuration file from current work directory like .babelrc.

default cli
true `--userc=true

yes

  • Type: boolean

Uses stored prompt's values instead of typing arduously.

default cli
false -y, --yes

storePrompts

  • Type: boolean

Disables storing latest prompt's values.

default cli
true `--store-prompts=true

output

  • Type: string

The output directory.

default cli
process.cwd() -o <string>, --output=<string>

silent

  • Type: boolean

Just shut up.

default cli
false -s, --silent

overwrite

  • Type: boolean

Whether overwrite the previous output.

default cli
false -w, --overwrite

clean

  • Type: boolean

Clean output path before generate

default cli
false --clean