Skip to content

Commit 563049a

Browse files
[build] Move generated output defaults from public to .dev-tools (#107) (#108)
* [build] Move generated output defaults from public to build (#107) * Update wiki submodule pointer for PR #108 * [build] Move generated output defaults from public to .dev-tools (#107) * [docs] Document metrics artifacts in tooling defaults (#107) * [build] Normalize .gitignore ordering for .dev-tools (#107) --------- Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
1 parent e7e1b6d commit 563049a

26 files changed

Lines changed: 93 additions & 90 deletions

.github/wiki

Submodule wiki updated from 4b06b39 to 2958728

.github/workflows/tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
- name: Run PHPUnit tests
104104
env:
105105
COMPOSER_ROOT_VERSION: ${{ env.TESTS_ROOT_VERSION }}
106-
run: composer dev-tools tests -- --coverage=public/coverage --min-coverage=${{ steps.minimum-coverage.outputs.value }}
106+
run: composer dev-tools tests -- --coverage=.dev-tools/coverage --min-coverage=${{ steps.minimum-coverage.outputs.value }}
107107

108108
dependency-health:
109109
name: Dependency Health

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
.dev-tools/
12
.idea/
23
.vscode/
34
backup/
4-
public/
55
tmp/
66
vendor/
77
*.cache

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ composer dependencies --upgrade --dev
5959

6060
# Analyze code metrics with PhpMetrics
6161
composer metrics
62-
composer metrics --target=build/metrics
62+
composer metrics --target=.dev-tools/metrics
6363
composer --working-dir=packages/example metrics
6464

6565
# Check and fix code style using ECS and Composer Normalize
@@ -79,7 +79,7 @@ composer wiki
7979

8080
# Generate documentation frontpage and related reports
8181
composer reports
82-
composer reports --target=build --coverage=build/coverage
82+
composer reports --target=.dev-tools --coverage=.dev-tools/coverage
8383

8484
# Synchronize packaged agent skills into .agents/skills
8585
composer skills

docs/api/phpunit-support.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ coverage metrics programmatically.
5757
use FastForward\DevTools\PhpUnit\Coverage\CoverageSummaryLoader;
5858
5959
$loader = new CoverageSummaryLoader();
60-
$summary = $loader->load('public/coverage/coverage.php');
60+
$summary = $loader->load('.dev-tools/coverage/coverage.php');
6161
6262
$summary->executedLines(); // Number of covered lines
6363
$summary->executableLines(); // Total number of executable lines

docs/commands/docs.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Options
2828

2929
``--target, -t`` (optional)
3030
Path to the output directory for the generated HTML documentation.
31-
Default: ``public``.
31+
Default: ``.dev-tools``.
3232

3333
``--source, -s`` (optional)
3434
Path to the source directory for the guide documentation.
@@ -55,7 +55,7 @@ Generate to custom directory:
5555

5656
.. code-block:: bash
5757
58-
composer docs --target=build/docs
58+
composer docs --target=dist/docs
5959
6060
Use custom source:
6161

docs/commands/metrics.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ Options
3333
Comma-separated directories that should be excluded from analysis.
3434

3535
Default:
36-
``vendor,test,tests,tmp,cache,spec,build,backup,resources``.
36+
``vendor,test,tests,tmp,cache,spec,build,.dev-tools,backup,resources``.
3737

3838
``--target=<directory>``
3939
Output directory for the generated metrics reports.
4040

41-
Default: ``public/metrics``.
41+
Default: ``.dev-tools/metrics``.
4242

4343
The command writes:
4444

@@ -59,13 +59,13 @@ Generate an HTML report for manual inspection:
5959

6060
.. code-block:: bash
6161
62-
composer metrics --target=build/metrics
62+
composer metrics --target=.dev-tools/metrics
6363
6464
Generate the full metrics artifact set for CI previews:
6565

6666
.. code-block:: bash
6767
68-
composer metrics --target=build/metrics
68+
composer metrics --target=.dev-tools/metrics
6969
7070
Analyze another checkout through Composer's inherited working directory:
7171

docs/commands/reports.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ Options
3030

3131
``--target`` (optional)
3232
The target directory for the generated documentation.
33-
Default: ``public``.
33+
Default: ``.dev-tools``.
3434

3535
``--coverage, -c`` (optional)
3636
The target directory for the generated test coverage report.
37-
Default: ``public/coverage``.
37+
Default: ``.dev-tools/coverage``.
3838

3939
``--metrics`` (optional)
4040
The target directory for the generated metrics report.
41-
Default: ``public/metrics``.
41+
Default: ``.dev-tools/metrics``.
4242

4343
Examples
4444
--------
@@ -53,13 +53,13 @@ Generate to custom directories:
5353

5454
.. code-block:: bash
5555
56-
composer reports --target=build --coverage=build/coverage
56+
composer reports --target=.dev-tools --coverage=.dev-tools/coverage
5757
5858
Generate reports with a custom metrics directory:
5959

6060
.. code-block:: bash
6161
62-
composer reports --metrics=build/metrics
62+
composer reports --metrics=.dev-tools/metrics
6363
6464
Exit Codes
6565
---------

docs/commands/tests.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ Run with coverage report:
7979

8080
.. code-block:: bash
8181
82-
composer tests --coverage=public/coverage
82+
composer tests --coverage=.dev-tools/coverage
8383
8484
Run with concise coverage text output:
8585

8686
.. code-block:: bash
8787
88-
composer tests --coverage=public/coverage --coverage-summary
88+
composer tests --coverage=.dev-tools/coverage --coverage-summary
8989
9090
Run tests matching a pattern:
9191

docs/configuration/tooling-defaults.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,11 @@ create them on day one.
3636
Generated and Cache Directories
3737
-------------------------------
3838

39-
- ``public/`` contains generated documentation and report output.
40-
- ``public/coverage/`` contains HTML coverage, Testdox, Clover, and raw
39+
- ``.dev-tools/`` contains generated documentation and report output.
40+
- ``.dev-tools/coverage/`` contains HTML coverage, Testdox, Clover, and raw
4141
coverage data.
42+
- ``.dev-tools/metrics/`` contains PhpMetrics HTML output plus the generated
43+
``report.json`` and ``report-summary.json`` artifacts.
4244
- ``.github/wiki/`` contains generated Markdown API documentation and, in
4345
consumer repositories, the wiki submodule.
4446
- ``.agents/skills/`` contains symlinked packaged skills or consumer-owned

0 commit comments

Comments
 (0)