|
| 1 | +# create-van-app |
| 2 | + |
| 3 | +## 0.1.0 |
| 4 | + |
| 5 | +### Minor Changes |
| 6 | + |
| 7 | +- 60f27ba: Project scaffolder for VanJS apps with support for JavaScript, TypeScript, and Tailwind CSS. |
| 8 | + |
| 9 | + ## Features |
| 10 | + |
| 11 | + - Interactive CLI — prompts for project name, framework variant, and styling approach |
| 12 | + - Non-interactive mode — fully scriptable via flags for CI and AI agent environments |
| 13 | + - Detects AI agent environments and suggests one-shot usage automatically |
| 14 | + - Auto-detects package manager (npm, pnpm, yarn, bun, deno) from the environment |
| 15 | + - Optional immediate install and dev server start with `--immediate` |
| 16 | + - Handles existing directories — offers to overwrite, ignore, or cancel |
| 17 | + |
| 18 | + ## Templates |
| 19 | + |
| 20 | + | Template | Language | Styling | |
| 21 | + | ------------- | ---------- | --------------- | |
| 22 | + | `ts-tailwind` | TypeScript | Tailwind CSS v3 | |
| 23 | + | `ts-css` | TypeScript | Plain CSS | |
| 24 | + | `js-tailwind` | JavaScript | Tailwind CSS v3 | |
| 25 | + | `js-css` | JavaScript | Plain CSS | |
| 26 | + |
| 27 | + ## TypeScript + Tailwind template includes |
| 28 | + |
| 29 | + - `@michthemaker/vanjs` + `@michthemaker/vite-plugin-vanjs` with HMR |
| 30 | + - Tailwind CSS v3 with PostCSS and Autoprefixer |
| 31 | + - `clsx` + `tailwind-merge` via a `cn()` utility |
| 32 | + - `darkMode: "media"` — dark mode via `prefers-color-scheme` |
| 33 | + - `experimental.classRegex` configured for Tailwind IntelliSense in plain `.ts` files (works in VS Code and Zed) |
| 34 | + - `@src` path alias preconfigured in Vite and TypeScript |
| 35 | + - Starter `App.ts` with a working counter example |
| 36 | + |
| 37 | + ## Usage |
| 38 | + |
| 39 | + ```bash |
| 40 | + # npm |
| 41 | + npm create van-app@latest |
| 42 | + |
| 43 | + # pnpm |
| 44 | + pnpm create van-app |
| 45 | + |
| 46 | + # yarn |
| 47 | + yarn create van-app |
| 48 | + |
| 49 | + # bun |
| 50 | + bun create van-app |
| 51 | + |
| 52 | + # non-interactive |
| 53 | + pnpm create van-app my-app --template ts-tailwind --no-interactive |
| 54 | + ``` |
| 55 | + |
| 56 | +### Patch Changes |
| 57 | + |
| 58 | +- 28b734b: Added necessary files to `files` field in package `package.json` |
0 commit comments