@wyze/rio

1.4.0 • Public • Published

@wyze/rio · Build Status npm Codecov.io

A utility to compile Node modules.

Installation

Yarn

$ yarn add --dev @wyze/rio

npm

$ npm install --save-dev @wyze/rio

Usage

$ rio --help

  Usage
    $ rio [options] <input>

  Options
    --banner,    -b   Add banner to top of output file
    --binary          Pass good defaults for binary files
    --externals, -e   Add external files that shouldn't be bundled
    --format,    -f   Output file format (esm, umd, etc.)
    --output,    -o   Output file

  Examples
    $ rio -o out.js in.ts
    $ rio -o out.js -f esm in.ts
    $ rio -o out.js -e chalk,debug in.ts
    $ rio -o out.js -b '#!/usr/bin/env node' in.ts
    $ rio --binary in.ts

--binary Flag

This will make the following changes:

  • Automatically include all package dependencies as externals
  • Set banner option to: #!/usr/bin/env node
  • Set output option to: bin/index.js

Change Log

Full Change Log

v1.4.0 (2020-03-30)

License

MIT © Neil Kistner

Readme

Keywords

none

Package Sidebar

Install

npm i @wyze/rio

Weekly Downloads

2

Version

1.4.0

License

MIT

Unpacked Size

10.1 kB

Total Files

7

Last publish

Collaborators

  • wyze