Edam

  • About
  • Usage
  • Feature
  • Advanced
  • English
  • GitHub

>Usage

Advanced

  • Principle
  • Write a template
  • Write a Loader
  • Write a plugin ⚠WIP
  • 独立cli

awesome

  • 安装

Usage

  • Installation
  • Options
Edit

Options

offlineFallback

  • Type: boolean

Fallback to local cache assets when you are offline.

defaultcli
true--offline-fallback=true|false

updateNotify

  • Type: boolean

Notifies the latest upgrade information like npm By update-notifier

defaultcli
true--update-notify=true|false

cacheDir

  • Type: string|boolean

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

defaultcli
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)

defaultcli
() => true--includes=<string>,<string>

excludes

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

Which files are excluded.

defaultcli
() => false--excludes=<string>,<string>

extends

  • Type: string[]

Extends external edam configuration files.

defaultcli
[]--extends=<string,string>

plugins

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

The plugins you requires.

defaultcli
[]--plugins=<string,string>

debug

  • Type: boolean

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

defaultcli
false-d, --debug=true|false

pull.npmClient

  • Type: npm|yarn

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

defaultcli
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"

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

pull.git

  • Type: clone|download

Uses which way to pull git repo.

defaultcli
clone--pull.git=<string>

userc

  • Type: boolean

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

defaultcli
true--userc=true|false

yes

  • Type: boolean

Uses stored prompt's values instead of typing arduously.

defaultcli
false-y, --yes

storePrompts

  • Type: boolean

Disables storing latest prompt's values.

defaultcli
true--store-prompts=true|false

output

  • Type: string

The output directory.

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

silent

  • Type: boolean

Just shut up.

defaultcli
false-s, --silent

overwrite

  • Type: boolean

Whether overwrite the previous output.

defaultcli
false-w, --overwrite

clean

  • Type: boolean

Clean output path before generate

defaultcli
false--clean
← Installation

Powered by 🍔 Haier.