0.2.0 • Published 6 years ago

generator-svelte-workbench v0.2.0

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

generator-svelte-workbench NPM version Dependency Status

A structured workspace for creating and packaging svelte components.

This workspace created by this generator comes with a few key features that helps you to start writing components sooner, maintain them, and distribute.

It comes with Rollup for module bundling and Bublé to allow for ES2015/16 JavaScript code to be used in your components without needing to worry about browser/environment support.

The other main feature is the file structure that is supported. Rather than putting the css, html and js for a component in a single file, they are all split up and a gulp task takes care of the rest.

Installation

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

npm install -g yo
npm install -g generator-svelte-workbench

Then generate your new project:

yo svelte-workbench

Ongoing Usage

Once your project is configured, you can continue to use this project to help create boiler plate files and code.

To create stubs for a new component run:

yo svelte-workbench:component componentName

For example, if you want to add a new component named button:

yo svelte-workbench:component button

This will add a new component named button being created.

License

MIT © Zachariah Brown

0.2.0

6 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago