CLI / Templates

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.

Creating 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
GitHub logo
JavaScript library for component-based websites and applications.