generator-polymer-3-ts-element

0.1.3 • Public • Published

generator-polymer-3-ts-element

Jump-start a new Polymer 3 custom element using Typescript.

Installation

You'll need a yeoman installation first.

npm install -g yo

Then install the generator.

npm install -g generator-polymer-3-ts-element

Usage

You do not need to create a new directory first. To generate your new project:

yo polymer-3-ts-element

You'll be prompted for the name of your new component on running the generator.

Project Structure

The generatror creates a project which allows you to import your html template and css from separate files.

Includes scripts start and build for testing and distribution respectivley.

element-name
├── README.md
├── examples
│   └── index.html
├── index.html
├── package.json
├── src
│   ├── index.ts
│   ├── styles.css
│   ├── template.html
│   └── typings.d.ts
├── tsconfig.json
├── tslint.json
├── webpack.dvl.conf.js
└── webpack.prd.conf.js

License

Apache-2.0 © Ben Goodman

Package Sidebar

Install

npm i generator-polymer-3-ts-element

Weekly Downloads

1

Version

0.1.3

License

Apache-2.0

Unpacked Size

3.18 kB

Total Files

3

Last publish

Collaborators

  • bgoodman