0.2.0 • Published 9 years ago
riot-mixin-pack v0.2.0
Riot Mixin Pack
This is a series of mixins which make Riot.js more convenient.
Installation
$ npm install --save-dev riot-mixin-packUsage
import { domEvent } from 'riot-mixin-pack'Or, respectively:
import domEvent from 'riot-mixin-pack/dom-event'For ES5:
var domEvent = require('riot-mixin-pack').domEventThen, apply the mixin to the tag: this.mixin(domEvent)
Mixins
See more detail for each mixin:
Development
Each directory has these files:
index.js: source code of mixinREADME: description about itspec.js: test scriptspec.tag: tag(s) for testing
Some note:
index.jsshould be written in ES6.spec.jsandspec.tagshould be written in ES5.- In
spec.tag, all tags has the prefix. For example:<sync-event-app><sync-event-child>for syncEvent mixin.