create-element-cli

0.3.1 • Public • Published

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.

Package Sidebar

Install

npm i create-element-cli

Weekly Downloads

3

Version

0.3.1

License

ISC

Last publish

Collaborators

  • imattie