CLI / Templates

🧰 zuix-cli is a tool for the command line for creating new projects, adding pages or components, bundling and compressing into a single HTML file all resources used in a page, either local or remote ones. Project starter templates are using Eleventy as site generator, which works very nicely together with zuix.js.

Features in brief

Prerequisites

npx zuix

Creating a new project

# Create a new website project named 'my-new-webapp'
npx zuix new my-new-webapp

A new folder named my-new-webapp will be created containing all files required to run the web-starter project.

Different starter project templates are available and can be specified using the -t option. See zuix.js Web Starter documentation for a list of available templates and a complete overview of commands and features.

You can also try the web-starter template live on StackBlitz.

Adding a new component

npx zuix generate component "<component_name>"

npx zuix g component cards/my-new-card

will generate three files for the component MyNewCard:

To generate only the view template ArticleHeader:

npx zuix g template article-header

will generate:

To generate the controller MyServiceApi:

npx zuix g controller my-service-api
Controller
Playground
GitHub logo
JavaScript library for component-based websites and applications.