@3liv/rijs.export

[![Coverage Status](https://coveralls.io/repos/rijs/export/badge.svg?branch=master&service=github)](https://coveralls.io/github/rijs/export?branch=master) [![Build Status](https://travis-ci.org/rijs/export.svg)](https://travis-ci.org/rijs/export)

Usage no npm install needed!

<script type="module">
  import 3livRijsExport from 'https://cdn.skypack.dev/@3liv/rijs.export';
</script>

README

Ripple | Export

Coverage Status Build Status

Combines all resources under the resources directory into a single index.js file. This is so you can export and import a bundle of resources from separate repos by simplying requireing them. Note that this is not the same bundling, since function resources are linked with requires, such that you could subsequently browserify the output (index.js) to produce a client bundle.

import buttons from 'ux-button'
import inputs from 'ux-input'
import rijs from 'rijs'

ripple = rijs({ .. })
  .resource(buttons)
  .resource(inputs)

Running rijs.export (defaults to rijs.export dist/resources), likely as part of a npm run build would place the index.js file under dist/resources/index.js. You then just need to point the main field in your package.json to point this file so it can be required.