generator-ui-component

2.1.0 • Public • Published

generator-ui-component

NPM version Build Status Dependency Status

Scaffolds a UI Component with ES6/7, tests, nsp checks, and webpack+babel build. Initializes a git repository. Creates a minimal build process that you can get started with immediately, including browsersync for quick feedback. Includes the CSS and Sass loaders so you can write your styles cleanly and import them just like node modules. Includes the jade-loader so you can write HTML painlessly. And finally includes a demo "base component" to extend from, a demo "event emitter" class to extend from, and webpack support for ES7 features so you can have fun writing JavaScript :).

Installation

First, install Yeoman and generator-ui-component using npm (we assume you have pre-installed node.js).

npm install -g yo
npm install -g generator-ui-component

Then generate your new project:

mkdir my-fancy-component && cd $_
yo ui-component

Make sure to run the sample test suite to make sure things are working as expected:

npm test

Then get started working. A basic index.html file is provided for you to prove out your UI component as quickly as possible.

open index.html
npm start

License

All content copyright © Jacopo Tarantino. This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/deed.en_US.

TODO

Package Sidebar

Install

npm i generator-ui-component

Weekly Downloads

1

Version

2.1.0

License

UNLICENSED

Last publish

Collaborators

  • jacopotarantino