generator-polymer-starter
v0.1.4
Published
Yeoman generator
Downloads
4
Maintainers
Readme
Yeoman Generator for Polymer projects
Introduction
Polymer is a library of polyfills enabling the use of Web Components in modern web browsers.
generator-polymer-starter
provider Polymer scaffolding using Yeoman (a scaffolding tool for
the web), letting you easily create and customize Polymer (custom) elements via the command-line and import them using
HTML Imports. This saves you time writing boilerplate code so you can start writing up the logic to your components
straight away.
Features
- A Polymer app scaffold built with Polymer Starter Kit Plus
Issues
This generator clones Polymer Starter Kit Plus. If you're having issues with the template files generated for those projects, please raise them on those repos as they are the canonical source.
Installation
Install the generator
npm install -g generator-polymer-starter
Make a new directory and cd into it
mkdir -p my-project && cd $_
Scaffold a new Polymer project:
yo polymer-starter
Generators
Available generators:
Note: Generators are to be run from the root of your app
App
Sets up a new Polymer app, generating all the boilerplate you need to get started.
Example:
yo polymer-starter
App
Sets up a new Polymer Element, generating all the boilerplate you need for your element.
Note: Element name must contain a dash -
in between
Example:
yo polymer-starter:el
Enter name of your element: foo-bar
Would you like to import it into `elements.html`? (y/N) y
Done!!!
Contribute
See the contributing docs
When submitting an issue, please follow the guidelines. Especially important is to make sure Yeoman is up-to-date, and providing the command or commands that cause the issue.