Installation
Create a New Project
Section titled “Create a New Project”The fastest way to get started is with create-dispersa. It scaffolds a project with tokens, a build script, and a ready-to-run configuration.
pnpm create dispersanpm create dispersa@latestyarn create dispersabun create dispersaYou will be prompted to choose:
- Project directory — where to scaffold the project
- Template — TypeScript (programmatic build script with CSS output) or CLI (config-file workflow using the
dispersaCLI) - Install dependencies — optionally run the package manager for you
Add to an Existing Project
Section titled “Add to an Existing Project”If you already have a project and want to add Dispersa to it:
pnpm add dispersanpm install dispersayarn add dispersaGlobal Installation
Section titled “Global Installation”If you use the Dispersa CLI across multiple projects, installing it globally gives you direct access to the dispersa command without npx:
pnpm add -g dispersanpm install -g dispersayarn global add dispersaOnce installed globally, the dispersa command is available everywhere:
dispersa build Your First Build Run your scaffolded project and explore the generated output.