summaryrefslogtreecommitdiffstats
path: root/phel-config.php
diff options
context:
space:
mode:
authorGravatar Tom Willemse2025-11-04 23:31:01 -0800
committerGravatar Tom Willemse2025-11-04 23:31:01 -0800
commit96a007eecea9b67ba06d01c8fcdd9c09fc4b43e9 (patch)
tree5f691a3f3ec2faa0fb92b3394108cb4c63fccac5 /phel-config.php
downloadlezer-96a007eecea9b67ba06d01c8fcdd9c09fc4b43e9.tar.gz
lezer-96a007eecea9b67ba06d01c8fcdd9c09fc4b43e9.zip
Initial commit
Diffstat (limited to 'phel-config.php')
-rw-r--r--phel-config.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/phel-config.php b/phel-config.php
new file mode 100644
index 0000000..779f65c
--- /dev/null
+++ b/phel-config.php
@@ -0,0 +1,24 @@
+<?php
+
+declare(strict_types=1);
+
+use Phel\Config\PhelConfig;
+use Phel\Config\PhelExportConfig;
+use Phel\Config\PhelBuildConfig;
+
+return (new PhelConfig())
+ ->setSrcDirs(['src'])
+ ->setTestDirs(['tests'])
+ ->setVendorDir('vendor')
+ ->setKeepGeneratedTempFiles(false)
+ ->setFormatDirs(['src', 'tests'])
+ ->setBuildConfig((new PhelBuildConfig())
+ ->setMainPhelNamespace('web-skeleton\app')
+ ->setMainPhpPath('out/index.php'))
+ ->setExportConfig((new PhelExportConfig())
+ ->setFromDirectories(['src/phel'])
+ ->setNamespacePrefix('PhelGenerated')
+ ->setTargetDirectory('src/PhelGenerated'))
+ ->setIgnoreWhenBuilding(['local.phel'])
+ ->setNoCacheWhenBuilding(['web_skeleton/app'])
+;