Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@uxland/generator-lit-component

Package Overview
Dependencies
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@uxland/generator-lit-component

A lit component generator for uxland projects

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
2
Created
Source

Lit Component Generator npm version

Build StatusStatementsBranchesFunctionsLines
Build StatusStatementsBranchesFunctionsLines

Create a Typescript Lit Components on the fly

Prerequisites

Installing Uxland generator lit element previously requires the installation of Yeoman. Yeoman can be installed globally or locally. You can doit with the following command:

npm i yo

Installation

The Uxland generator lit element can be installed globally on your machine or locally in a project. To install it you can use the following command.

npm i @uxland/generator-lit-element

Usage

To create a lit component you just need to use the following command and follow the next steps

yo @uxland/lit-component

You can choose a name & destination directory of the new component.

What do you get?

A complete functional typescript lit component with:

  • my-component-name.ts
  • template.ts
  • styles.scss
  • styles.scss.d.ts

Usage generator locally in a project

If you need use the generator locally in a project you only need install Yeoman & @uxland/generator-lit-component as a dev dependency and add Yeoman in scripts in your package.json like in the example:

{
    devDependencies: {
        "@uxland/generator-lit-component": "^1.x.x",
        "yo": "^3.x.x"
        ...
    },
    scripts: {
        "yo": "yo",
        "create:component": "yo @uxland/lit-component"
        ...
    }

}

Then you can simply use npm run create:component to use the generator.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Keywords

FAQs

Package last updated on 26 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc