@trixty/csa
v1.0.24
Published
Create a new Solaris application in seconds
Readme
@trixty/csa — Create Solaris App
Scaffold a production-ready Solaris application in seconds.
Quick Start
Run @trixty/csa using your preferred package runner:
pnpx / pnpm dlx
pnpx @trixty/csa my-solaris-appnpx
npx @trixty/csa my-solaris-apppnpm create
pnpm create @trixty/csa my-solaris-appbunx
bunx @trixty/csa my-solaris-appInteractive Mode
If you don't specify a project directory name, csa will prompt you interactively:
npx @trixty/csaFeatures
- ⚡ Interactive CLI: Fast prompts powered by
@clack/prompts. - 🔀 Release Channel:
Latest(stable),RC, orCanary. - 📦 Bundler: Vite (official supported bundler).
- 📝 Language: choose TypeScript (
.tsx) or Solaris (.sl) for the app entry. - 🛠️ Pre-configured tooling: HMR, TypeScript, ready-to-run landing page.
- 🐙 Git ready: initializes a repository with an initial commit when possible.
Prompts
- Project name
- Channel — Latest / Canary / RC
- Bundler — Vite
- Language —
.tsxor.sl
| Language | Entry file | Notes |
| :--------- | :------------- | :----------------------------------- |
| TypeScript | src/main.tsx | Native IDE typecheck |
| Solaris | src/main.sl | TS + JSX via the Vite Solaris plugin |
Template layout (repo)
packages/csa/templates/
└── vite/ # bundler
├── tsx/ # language: TypeScript
│ └── src/main.tsx
└── sl/ # language: Solaris
└── src/main.slCLI copies templates/{bundler}/{language}/ into the new project.
Project Structure
my-solaris-app/
├── src/
│ ├── main.tsx # or main.sl (language choice)
│ ├── styles.css
│ └── icon.png
├── package.json
├── vite.config.ts
├── tsconfig.json
├── index.html
└── .gitignoreDevelopment
cd my-solaris-app
pnpm install
pnpm devApp runs at http://localhost:5173/ by default.
Commands
| Command | Description |
| :------------- | :-------------------------- |
| pnpm dev | Development server with HMR |
| pnpm build | Production build |
| pnpm preview | Preview production build |
