Commands
Everything below rebuilds ArekUI itself from its source files — installing the toolchain, splitting the stylesheet, minifying into dist/. The tabs switch between pnpm, npm, yarn and bun — same scripts, any manager. If you're just using the framework in a project, none of that applies to you: the package ships prebuilt, so skip to section 7 and install it.
pnpm installPulls the build toolchain (esbuild, typescript) and the runtime dependency lightningcss, which moved out of devDependencies in 2.0.0. The shipped CSS and JS need nothing at runtime.
pnpm buildSplits arekui.css into src/, then minifies into dist/css/ (arekui.base.min.css no themes, arekui.default.min.css light+dark, arekui.min.css base + light+dark, arekui.full.min.css all 5 themes, plus the self-contained arekui.neo.min.css / arekui.pixel.min.css / arekui.brutalist.min.css theme add-ons and the arekui.broadsheet.min.css print-sheet add-on) and dist/js/arekui.min.js.
pnpm devSplits arekui.css into src/ and rewrites dist/ on every change; it does not touch site/, so the bundles are copied over by hand. Stop with Ctrl+C.
pnpm split # arekui.css → src/**/*.css
pnpm build # everything above + minify
pnpm build:css # minify CSS only
pnpm build:js # minify JS only
pnpm build:sourcemap # same, with .map files
pnpm dev # watch mode (CSS + JS)
pnpm clean # delete dist/
pnpm typecheck # tsc arekui.d.ts --noEmitarekui.css ──split──► src/**/*.css ──build:css──► dist/css/*.min.css
arekui.js ──build:js──────────────────────────► dist/js/arekui.min.jsRoot arekui.css is the single source of truth. src/ is generated — never hand-edit it, your changes get overwritten on the next build.
pnpm dlx arekui-build # reads arekui.config.js
pnpm dlx arekui-build -i ./src -o ./assets
pnpm dlx arekui-build -n app # output filename (default arekui)
pnpm dlx arekui-build --full # ignore the scan, include everything
pnpm dlx arekui-build --sourcemapScans your markup and writes <output>/arekui.min.css containing only the ar-* classes you actually use. The config file (arekui.config.js or .json) takes input, output, name, sourcemap and full — flags win over config. yarn 1: use npx.
pnpm add arekuiNone of the above applies. arekui.css, arekui.js and dist/ are published prebuilt — link them and ship.