arab

A zero-config library transarab based on baarab (Transpile only & No Bundle)

Usage no npm install needed!

<script type="module">
  import arab from 'https://cdn.skypack.dev/arab';
</script>

README

arab

NPM version NPM downloads Node.js CI codecov

Install

tnpm install arab --save-dev

Usage

arab # Build for client library.
arab --preset=cli # Build Node CLI.
arab --monorepo # Enable monorepo build.

Options

preset

  • Type: 'app' | 'cli'
  • Description: build preset.

The internal presets have following meanings:

  • 'app': transpiled to ES Modules, and using the appropriate babel config for mobile application, tagets: { ios: 8, android: 4 };
  • 'cli': transpiled to CommonJS Modules, and set targets to { node: 8 };

monorepo

  • Type: boolean
  • Description: whether to enable build for monorepo.

Contributing

  1. Fork it!
  2. Create your feature branch: git checkout -b my-new-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

arab © ULIVZ under Richlab Team, Released under the MIT License.