0.0.5 • Published 1 year ago

@es-exec/cli v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

@es-exec/cli

A project to build and run your programs using esbuild.

Installation

npm

npm install @es-exec/cli -D

yarn

yarn add @es-exec/cli -D

Usage

es-exec src/index.ts

Options

Options

All fields are optional, but either buildOptions or esbuildConfig should be set with at least one entrypoint file in order to properly build the project.

NameTypeDescription
buildOptionsBuildOptionsEsbuild options to use when building the project. Will overwrite all values in the specified esbuildConfig.
cleanbooleanCleans the outdir folder.
configstringConfiguration file to load the options from. Any specified flag will overwrite the options.
entryPointsstring[]The list of entrypoints to use for esbuild. If a directory is specified, all included files will be used as entrypoints.
envNodeJS.ProcessEnvEnvironment variables to pass onto the child process that starts the project.
esbuildConfigstringThe esbuild configuration file to use to build the project.
lintbooleanIf true, lints the project files using @es-exec/esbuild-plugin-eslint. Defaults to true.
lintFixbooleanIf true, will fix lint problems found in the project.
mainstringThe file to run in a child process using @es-exec/esbuild-plugin-serve. If no main is set, will serve the outfile from the esbuild options.
outDirstringThe output directory for the built project.
singleLintbooleanIf true, runs @es-exec/esbuild-plugin-eslint in single mode.
scriptstringCLI script to run after the package is build. If set, will use `@es-exec/esbuild-plugin-start to run the script.
useExternalbooleanIf true, uses dependencies and peer dependencies in node_modules as external.
verbosebooleanUseful for debugging.
watchbooleanDefaults to true. If false, will not run esbuild in watch mode. If true or not set, will run esbuild in watch mode.