0.2.4 • Published 7 months ago

material-components-web-types v0.2.4

Weekly downloads
-
License
BSD-3-Clause
Repository
github
Last release
7 months ago

Web-Types for Material Web 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

material-components-web-types

material-components-web-types contains Web-Types definition of Material Web components like @material/mwc-button, @material/mwc-textfield and so on.

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 material-components-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 material-components-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 material-components-web-types package:

Clone/Pull material-web

To generate Material Web components web-types you need to clone the project:

npm run clone

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-gen

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
0.2.3

7 months ago

0.2.4

7 months ago

0.2.1

2 years ago

0.2.2

2 years ago

0.2.0

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago