@wyze/rio
A utility to compile Node modules.
Last updated 2 months ago by wyze .
MIT · Repository · Original npm · Tarball · package.json
$ cnpm install @wyze/rio 
SYNC missed versions from official npm registry.

@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

Current Tags

  • 1.4.0                                ...           latest (2 months ago)

5 Versions

  • 1.4.0                                ...           2 months ago
  • 1.3.0                                ...           2 months ago
  • 1.2.0                                ...           2 years ago
  • 1.1.0                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Maintainers (1)
Downloads
Today 10
This Week 11
This Month 17
Last Day 0
Last Week 0
Last Month 7
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |