Generator for developing with latest LitElement
MIT License
Write your next custom element with latest lit-element in TypeScript.
Please make sure that you have the following dependencies installed and setup correctly:-
First, install generator-lit-element-next
using NPM (we assume you have pre-installed Node.js).
# Install globally with NPM
$ npm install -g yo generator-lit-element-next
Then generate your new project:
# Create a new directory if you haven't already.
# Then change to that new directory.
$ mkdir my-app && cd my-app
# Init
$ yo lit-element-next
NPX comes in a package as of Node.js v8.9.0
. This means that you can run any CLI written in Node.js without globally installing it.
# Create a new directory if you haven't already.
# Then change to that new directory.
$ mkdir my-app && cd my-app
# Install packages with NPX and execute the CLI with this one-liner
$ npx -p yo -p generator-lit-element-next -- yo lit-element-next
No option on which testing library/ framework to use to test Web Components and you are feel free to bring your own testing library or framework. But, here are a few to recommend if you haven't already had one:
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
MIT License © Rong Sen Ng