rmp

riot-mixin-pack

Useful mixin pack for Riot.js

Showing:

Popularity

Downloads/wk

2

GitHub Stars

12

Maintenance

Last Commit

5yrs ago

Contributors

1

Package

Dependencies

0

License

MIT

Type Definitions

Tree-Shakeable

Yes?

Categories

Readme

Build Status NPM version NPM downloads MIT License

Riot Mixin Pack

This is a series of mixins which make Riot.js more convenient.

Installation

$ npm install --save-dev riot-mixin-pack

Usage

import { domEvent } from 'riot-mixin-pack'

Or, respectively:

import domEvent from 'riot-mixin-pack/dom-event'

For ES5:

var domEvent = require('riot-mixin-pack').domEvent

Then, 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 mixin
  • README: description about it
  • spec.js: test script
  • spec.tag: tag(s) for testing

Some note:

  • index.js should be written in ES6.
  • spec.js and spec.tag should be written in ES5.
  • In spec.tag, all tags has the prefix. For example: <sync-event-app> <sync-event-child> for syncEvent mixin.

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial