summaryrefslogtreecommitdiffstats
path: root/phel-config.php
diff options
context:
space:
mode:
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'])
+;