create-element-cli
v0.3.1
Published
This is a simple CLI tool that can quickly create Javascript templates for v1-spec custom elements.
Downloads
3
Maintainers
Readme
Custom Element CLI
This is a simple CLI tool that can quickly create Javascript templates for v1-spec custom elements.
Installation
To install, simply run:
npm i -g create-element-cli
Creating an Element
To create an element, run the following:
create-element [element-name]
This will create [element-name].js
in the folder where the command was run,
where [element-name]
is the name of the literal element that you want to
create.
Create a Module
To create an element as it's own project/module, run the following:
create-element --module [element-name]
This will create:
- [element-name].js
- readme.md
- demo.html
- .gitignore
in your current working directory.