@esmbly/cli
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

@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.

Package Sidebar

Install

npm i @esmbly/cli

Weekly Downloads

11

Version

0.0.6

License

MIT

Unpacked Size

53 kB

Total Files

23

Last publish

Collaborators

  • ollelauribostrom