Feature Flags
Curvea combines explicit project feature flags with detected project dependencies/assets.
Explicit flags
SEO and sitemap are stored in package.json:
{
"curvea": {
"features": {
"seo": true,
"sitemap": true
}
}
}
Enable them with:
npx curvea add seo
npx curvea add sitemap
Detected features
The Engine exposes these feature states internally:
- Tailwind:
src/assets/css/app.cssexists; the Tailwind CLI is used when its local binary is present. - Lucide:
lucideis present in dependencies or devDependencies. - Sitemap:
curvea.features.sitemapis truthy. - SEO:
curvea.features.seois truthy.
npx curvea add tailwind and npx curvea add lucide install/configure their corresponding dependencies and starter files.