0.4.0 • Published 4 years ago

entry-builder v0.4.0

Weekly downloads
10
License
MIT
Repository
github
Last release
4 years ago

entry-builder

Entry-builder is a tool can automatic generate es module or commonjs's entry file.

Only support js file now.

Installation

npm install entry-builder

Usage

build command

Generate entry file based on configuration file(.entry-builder-config.js).

entry-builder

run build with command line flags

-i, --input     Input directory
-o, --output    Single output file
-f, --format    Module Type of output (es, cjs)
entry-builder -i src -o index.js -f es

if .entry-builder-config.js is exist, command line flags will cover config file argument value.

create command

Create config files manually.

entry-builder create

entry-builder-config

argumentdescriptiontypedefault
entryresource entrystringobject''
entry.pathresource entry directory pathstring''(e.g. './src')
outputoutput filestringobject''
output.pathoutput file pathstring''(e.g. './')
output.filenameoutput file namestring'index'
moduleTypees-module or node-modulestring'es' (or 'node')
ignorePathignore some directory or file in entry pathstring? / array?[]
ignoreFileignore some directory or file in entry pathstring? / array?[]