Skip to content

Node CLI Tool to help create Custom Elements (framework agnostic)

License

Notifications You must be signed in to change notification settings

OwlTechnology/create-element-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.