summaryrefslogtreecommitdiffstats
path: root/phel-config.php
diff options
context:
space:
mode:
Diffstat (limited to 'phel-config.php')
-rw-r--r--phel-config.php23
1 files changed, 6 insertions, 17 deletions
diff --git a/phel-config.php b/phel-config.php
index 504ab23..e653adf 100644
--- a/phel-config.php
+++ b/phel-config.php
@@ -3,22 +3,11 @@
declare(strict_types=1);
use Phel\Config\PhelConfig;
-use Phel\Config\PhelExportConfig;
-use Phel\Config\PhelBuildConfig;
+use Phel\Config\ProjectLayout;
-return (new PhelConfig())
- ->setSrcDirs(['src'])
- ->setTestDirs(['tests'])
- ->setVendorDir('vendor')
- ->setKeepGeneratedTempFiles(false)
- ->setFormatDirs(['src', 'tests'])
- ->setBuildConfig((new PhelBuildConfig())
- ->setMainPhelNamespace('lezer\app')
- ->setMainPhpPath('out/index.php'))
- ->setExportConfig((new PhelExportConfig())
- ->setFromDirectories(['src/phel'])
- ->setNamespacePrefix('PhelGenerated')
- ->setTargetDirectory('src/PhelGenerated'))
- ->setIgnoreWhenBuilding(['local.phel'])
- ->setNoCacheWhenBuilding(['lezer/app'])
+return PhelConfig::forProject(ProjectLayout::Flat)
+ ->withMainPhelNamespace('lezer.app')
+ ->withIgnoreWhenBuilding(['local.phel'])
+ ->withNoCacheWhenBuilding(['lezer.app'])
+ ->withOptimizationLevel(2)
;