Command line interface for building packages to deploy.
The CLI tool is used to configure and manage the build process for your project. It accepts various command line arguments to customize the behavior of the tool.
$ do-functions [options] [srcDir] [outDir]
options
: Optional flags and settings to customize the build process.srcDir
: Optional source directory for input files. If not provided, the default value is ./packages
.outDir
: Optional output directory for built files. If not provided, the default value is ./build
.--srcDir <path>
srcDir
provided as a positional
argument.--outDir <path>
outDir
provided as a positional
argument.--project-yml <path>
srcDir
.--env <path>
srcDir
.--bundler <bundlerName>
$ do-functions
$ do-functions --srcDir path/to/source --outDir path/to/output
$ do-functions --project-yml path/to/project.yml
$ do-functions --env path/to/.env
$ do-functions --bundler rollup
If an option is provided both as a command line argument and a positional argument, the command line argument takes precedence.
The bundler specified via the --bundler
option must be either ‘esbuild’ or ‘rollup’. If an unsupported value is
provided, ‘esbuild’ is used by default.
Paths provided as arguments or options can be either absolute or relative to the current working directory.
This is based on the example project in the GitHub repo.
Rollup | esbuild | |
---|---|---|
Build Time | 2.438s | 41.984ms |
Output Size | 29251 bytes | 32477 bytes |
To summarise these results: