Install
Use npm, pnpm, or yarn. E.g.
pnpm install -D @zeroasic/zaui
Redistributing zaui as a dependency for redistribution in another npm package is not currently supported - but could be in the future ;-)
package.json
For non-global installs, zaui commands should be added to your package.json scripts E.g.
{
"name": "my-site",
"private": true,
"scripts": {
"dev": "zaui dev",
"build": "zaui build"
},
"devDependencies": {
"@zeroasic/zaui": "^0.5.1"
}
}
Custom components
There is no need to install or configure SvelteKit, since that is included with zaui.
VS Code
The following VS Code extensions are recommended if you are developing custom components.
You can also run Error Lens for faster error reporting, even though it can be a bit niggly.
Tailwind
To use Tailwind VS Code Intellisense while developing custom components, you need Tailwind dependencies in your project, and your own tailwind.config.js
in the src directory.
pnpm install -D tailwindcss postcss autoprefixer @tailwindcss/typography
See Custom Tailwind for more details.