-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
30 lines (27 loc) · 1.07 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import components from 'rijs.components'
import singleton from 'rijs.singleton'
import versioned from 'rijs.versioned'
import features from 'rijs.features'
import helpers from 'rijs.helpers'
import precss from 'rijs.precss'
import needs from 'rijs.needs'
import core from 'rijs.core'
import data from 'rijs.data'
import css from 'rijs.css'
import fn from 'rijs.fn'
!window.ripple && create()
export default function create(opts){
var ripple = core() // empty base collection of resources
// enrich..
singleton(ripple) // exposes a single instance
data(ripple) // register data types
css(ripple) // register css types
fn(ripple) // register fn types
helpers(ripple) // expose helper functions and constants
components(ripple) // invoke web components, fn.call(<el>, data)
features(ripple) // extend components with features
needs(ripple) // define default attrs for components
precss(ripple) // preapplies scoped css
versioned(ripple) // versioning info and time travel
return ripple
}