Socket
Book a DemoInstallSign in
Socket

generator-polymer-init-element-scaffold

Package Overview
Dependencies
Maintainers
3
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

generator-polymer-init-element-scaffold

webcomponent element generator

0.10.1
latest
Source
npmnpm
Version published
Maintainers
3
Created
Source

generator-polymer-init-element-scaffold

Available Templates

The Goal of this generator is to be your one stop shop for any type of element that you are interested in making. It focuses on best practices, setting you up with a basic test suite, documentation, demos, and github pages deployment.

Template Support Matrix

VersionsTypeSupported
Polymer 1.XComponent:white_check_mark:
Polymer 1.XStyle:white_check_mark:
Polymer 1.XBehavior:white_check_mark:
Polymer 2.0Component:white_check_mark:
Polymer 2.0Style:clock10:
Polymer 2.0Behavior:white_check_mark:
Vanilla Web ComponentsComponent:wavy_dash: :thought_balloon:
Vanilla Web ComponentsStyle:interrobang:
Vanilla Web ComponentsBehavior:interrobang:
  • Polymer 1.7 elements (Allows hybrid elements)
  • Polymer 2.x elements (Still in prerelease)
    • Classbased Behavior mixins
  • Vanilla v1webcomponents

These templates all have two versions - bower and internal

  • The bower version is meant to stand alone as a project and includes all of the features listed below.
  • The internal version is meant to be created within a project that already uses web components. Its can be used to create something purely presentational or as an adpater or extenstion for an existing component, It includes just the 3 main files.

Features Support

  • Gulp based build system.

  • Browser Sync for enjoyable development.

  • Auto generated docs

  • 1.x Component

  • 1.x Style Library

  • Basic travis testing support

    • 1.7 Component
    • 1.x Style Library
  • Extended support for Sauce labs

    • 1.7 Component
    • 1.x Style Library
  • Github pages deployment

    • 1.7 Component
    • 1.x Style Library

Usage

npm install -g yo
npm install -g polymer-cli
npm install -g generator-polymer-init-element-scaffold
  • Create folder mkdir new-ele and move cd new-ele into it.
  • Run polymer init to start it.
  • Select element-scaffold and follow the instructions

Development

  • Clone the repo

  • run npm link in the project directory.

    • this will allow you to use the project as though you've installed it globally with npm.
  • Updating on npm

    • npm version #.#.#
    • push changes and tags
    • npm publish

Development Help

Watch Polycasts Ep. 53 to learn the basics of how this was built. Yeoman docs

License

MIT

Keywords

polymer

FAQs

Package last updated on 25 Sep 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.