summaryrefslogtreecommitdiffstats
path: root/phel-config.php
blob: 779f65ccab4a926b2f67601660b221d68a1c597d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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'])
;