create-dalila
v1.2.19
Published
Create Dalila apps with one command
Downloads
3,323
Maintainers
Readme
create-dalila
Scaffold a new Dalila project with one command.
Usage
npm create dalila@latest my-app
cd my-app
npm install
npm run devOpen http://localhost:4242 to see your app.
Requirements
- Node.js
>=22.6.0
What's Included
- File-based router starter (
src/app) - Dev server + route generation watcher
- TypeScript support out of the box
- Minimal CSS styling
dompurifyinstalled and wired into the runtime bootstrap- Trusted Types enabled in the starter runtime config
Project Structure
my-app/
├── build.mjs # Packages a standalone dist/ preview build
├── dev.mjs # Runs route watcher + dev server
├── index.html # App shell
├── src/
│ ├── app/
│ │ ├── layout.html
│ │ ├── page.html
│ │ └── page.ts
│ ├── main.ts # Router bootstrap + runtime security defaults
│ └── style.css # Styles
├── package.json
└── tsconfig.jsonScripts
npm run dev- Start dev server and route watchernpm run routes- Generate route files oncenpm run routes:watch- Watch route files and regenerate outputsnpm run build- Generate routes, compile TypeScript, and package an optimized standalonedist/npm run preview- Serve the builtdist/output locally
