1.0.2 • Published 9 years ago

generator-riot-element v1.0.2

Weekly downloads
35
License
MIT
Repository
github
Last release
9 years ago

generator-riot-element

Generator for riot elements. Creates a folder /tags/elements/{elementname}. With a .tag-file and a .css-file.

This is intended for use with this webpack-riotjs setup => generator-webpack-riotjs

Usage

Create a new element. yo riot-element element-name --path put/it/under/this/path

Create a new page element yo riot-element:page element-name --path put/it/under/this/path This will create a page element, it will register for listening to the dispatcher. It creates boilerplate for setting up the events to listen to.

Create a new store element yo riot-element:store element-name --path put/it/under/this/path This will create a store with boilerplate to register with the dispatcher (if there is one).

Create a new functional element yo riot-element:functional element-name --path put/it/under/this/path

--path is a optional and creates subdirectories under which the tag is stored.

Elements, page elements and functional elements dont differ in much except the folders they are created in, and that functional elements dont include a css-file.

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago