Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ngneat/lit-file-generator
🎁 A lit generator for a component, directive, and controller.
https://github.com/ngneat/lit-file-generator
generator lit lit-html webcomponents
Last synced: 4 days ago
JSON representation
🎁 A lit generator for a component, directive, and controller.
- Host: GitHub
- URL: https://github.com/ngneat/lit-file-generator
- Owner: ngneat
- License: mit
- Created: 2022-02-12T20:57:35.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-02-13T07:55:04.000Z (almost 3 years ago)
- Last Synced: 2024-10-29T21:27:46.574Z (16 days ago)
- Topics: generator, lit, lit-html, webcomponents
- Language: JavaScript
- Homepage: https://www.netbasal.com
- Size: 124 KB
- Stars: 18
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 🦄 Lit File Generator
A lit generator for a component, directive, and controller.
Install the library:
```
npm i @ngneat/lit-file-generator -glitgen
```Or via `npx`:
```
npx @ngneat/lit-file-generator litgen
npx @ngneat/lit-file-generator litgen component name
npx @ngneat/lit-file-generator litgen directive name
npx @ngneat/lit-file-generator litgen controller name
```### Base Path:
By default, the directory prompt is set to the current directory.
To change it, add to the root `package.json` the following config:
```json
{
"lit": {
"basePath": "./src/app/"
}
}
```The path should be relative to the `package.json`.
### Component Prefix:
The default component selector prefix is `app`. You can change it by setting the `prefix` option:```json
{
"lit": {
"prefix": "lit"
}
}
```