https://github.com/wyze/rio
A utility to compile Node modules.
https://github.com/wyze/rio
Last synced: 3 days ago
JSON representation
A utility to compile Node modules.
- Host: GitHub
- URL: https://github.com/wyze/rio
- Owner: wyze
- License: mit
- Created: 2018-08-27T01:25:03.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T09:33:39.000Z (over 2 years ago)
- Last Synced: 2025-05-07T09:51:46.668Z (about 1 month ago)
- Language: TypeScript
- Homepage: https://yarn.pm/@wyze/rio
- Size: 1.54 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 14
-
Metadata Files:
- Readme: readme.md
- Changelog: changelog.md
- License: license
Awesome Lists containing this project
README
# @wyze/rio · [![Build Status][actions-image]][actions-url] [![npm][npm-image]][npm-url] [![Codecov.io][codecov-image]][codecov-url]
> A utility to compile Node modules.
## Installation
### Yarn
```
$ yarn add --dev @wyze/rio
```### npm
```
$ npm install --save-dev @wyze/rio
```## Usage
```
$ rio --helpUsage
$ rio [options]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 fileExamples
$ 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](changelog.md)
### [v1.4.0](https://github.com/wyze/rio/releases/tag/v1.4.0) (2020-03-30)
* Add binary flag ([@wyze](https://github.com/wyze) in [f295c17](https://github.com/wyze/rio/commit/f295c17))
## License
MIT © [Neil Kistner](//neilkistner.com)
[actions-image]: https://img.shields.io/github/workflow/status/wyze/rio/CI.svg?style=flat-square
[actions-url]: https://github.com/wyze/rio/actions[npm-image]: https://img.shields.io/npm/v/@wyze/rio.svg?style=flat-square
[npm-url]: https://npmjs.com/package/@wyze/rio[codecov-image]: https://img.shields.io/codecov/c/github/wyze/rio.svg?style=flat-square
[codecov-url]: https://codecov.io/github/wyze/rio