paper-elements-web-types

0.2.1 • Public • Published

Web-Types for PolymerElements components

Web-Types is a framework-agnostic format aimed at providing IDEs and other tools with the metadata information about the contents of a component library. Its powerful name patterns allow encoding information about web framework syntax or customizing code completion suggestions for large icon libraries in the IDEs that support Web-Types.

See web-types project

paper-elements-web-types

paper-elements-web-types contains Web-Types definition of Polymer Elements components.

Getting started with lit

To use it when working with lit you need lit-web-types extra dependency to enable autocompletion on your project.

npm i lit-web-types paper-elements-web-types -D

If using IntelliJ or WebStorm, IDE restart might be needed after install to enable autocomplete.

Getting started with polymer

To use it when working with polymer you need polymer-web-types extra dependency to enable autocompletion on your project.

npm i polymer-web-types paper-elements-web-types -D

If using IntelliJ or WebStorm, IDE restart might be needed after install to enable autocomplete.

Contributing

Steps to update web-types definitions of paper-elements-web-types package:

Update sources

src/gen folder contains generated sources by web-component-analyser, should not be updated by hand, only via generator:

npm run web-types

Other sources in src can be updated by hand.

Build template to web-types

npm run build

Release

npm version patch && npm publish && git push && git push --tags

Package Sidebar

Install

npm i paper-elements-web-types

Weekly Downloads

1

Version

0.2.1

License

BSD-3-Clause

Unpacked Size

1.39 MB

Total Files

7

Last publish

Collaborators

  • jpradelle