@3liv/rijs.export
v0.0.9-1
Published
[![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)
Downloads
2
Readme
Ripple | Export
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 require
ing 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.