@esmbly/cli
v0.0.6
Published
Command-line interface (CLI) for Esmbly, a composable transpiler infrastructure for working with statically typed JavaScript and WebAssembly
Downloads
2
Maintainers
Readme
@esmbly/cli
The command-line interface for Esmbly.
Installation
# Using Yarn:
yarn add @esmbly/cli
# Or, using NPM:
npm install @esmbly/cli --save
Getting Started
Check out "Using the CLI" for a step-by-step guide on how to get started with the @esmbly/cli
.
Usage
From a terminal
# Using Yarn:
yarn run esmbly run
# Using NPM:
./node_modules/.bin/esmbly run
# Or, using NPX:
npx esmbly run
From package.json
{
"scripts": {
"transform": "esmbly run",
},
}
Commands
run
Runs Esmbly. By default, the configuration file will be assumed to be called esmbly.config.js
located in the root of the project.
esmbly run
Run Esmbly
Options:
--config, -c Configuration file path [string]
--silent Silence output to the console [boolean] [default: false]
--input, -i The files you want to transform [array]
--transformers, -t The transformer you want to use [array]
--output, -o The output formats you want to use [array]
--dry-run Run transformations without outputting any files [boolean]
--print-config Print configuration and then abort [boolean]
--help Show help [boolean]
init
Creates a new Esmbly configuration file and (optionally) installs the specified transformers.
esmbly init
Create an Esmbly configuration file
Options:
--default Use default configuration [boolean] [default: false]
--force Overwrite any existing config file [boolean] [default: false]
--help Show help [boolean]
Contributing
All types of contributions are very much welcome. Check out our Contributing Guide for instructions on how to get started.