Awesome
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.