Configuration
Configuration
Configure Velyx for your Laravel project, adjust project settings, and align the component workflow with your application structure.
velyx.json
After running init, Velyx creates a configuration file in your project root.
{
"version": "x.y.z",
"theme": "neutral",
"packageManager": "npm",
"css": {
"entry": "resources/css/app.css",
"velyx": "resources/css/velyx.css"
},
"js": {
"entry": "resources/js/app.js"
},
"components": {
"path": "resources/views/components/ui"
}
}
Options
This is the complete configuration shape used by the Velyx CLI. The CLI reads these keys from `velyx.json` through its config manager.
How the CLI uses it
Custom Paths
Edit paths manually if your Laravel app uses a custom structure.
{
"css": {
"entry": "public/css/style.css",
"velyx": "resources/css/design-tokens.css"
},
"js": {
"entry": "resources/js/main.js"
},
"components": {
"path": "resources/views/ui/components"
}
}