Skip to content

Latest commit

 

History

History
77 lines (51 loc) · 1.05 KB

File metadata and controls

77 lines (51 loc) · 1.05 KB

@dile/cli

CLI to generate Dile component scaffolds (Web Components) from Handlebars templates.

  • Binary: dile
  • Templates: templates/*.hbs
  • Default outputs:
    • Components: src/components
    • Resources/configs: src/resources

Note: this CLI writes .js files and creates folders if they do not exist.


Installation

Global use

npm i -g @dile/cli
# or
pnpm add -g @dile/cli

Use without installing (npx)

npx --package @dile/cli dile --help

Local development (repo)

npm install
npm link
# now you can use:
dile --help

Quick start

Show help:

dile --help

Create a new app:

dile create-app

Generate a component:

dile g-component ui/my-widget

Documentation

All detailed docs live in docs/:


License

MIT