Commands
ArekUI v1 is plain CSS and JavaScript - you only need a command when rebuilding the framework itself, or when you want the smart builder to trim it down.
Framework scripts (package.json)
pnpm build # build:css + build:js
pnpm build:css
pnpm build:js
pnpm build:sourcemap
pnpm dev # watch both
pnpm clean
pnpm typecheck # tsc arekui.d.tsSmart build - only what you use
pnpm dlx arekui-build -i ./src -o ./assetsScans HTML, JSX, Vue, Svelte, TSX, TS and JS files for ar-* classes and writes a stylesheet with just those - your page uses ar-btn and ar-card, the output contains exactly that.
Config file (optional)
// arekui.config.js
module.exports = {
input: "./src",
output: "./assets",
name: "app"
};
npx arekui-build # reads the configCLI flags
| Flag | What it does |
|---|---|
-i | Directory to scan |
-o | Output directory |
-n | Output filename |
--sourcemap | Generate a sourcemap |
--full | Include everything, no scan |
Config file variants: arekui.config.js or arekui.config.json.