Skip to content

Commit

Permalink
Merge pull request #115 from bearsunday/apidoc
Browse files Browse the repository at this point in the history
Add doc command
  • Loading branch information
koriym authored May 19, 2021
2 parents bab96c6 + 6603b25 commit 6e9a2ec
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.proj.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
composer tests // test and quality checks
composer coverage // test coverage
composer cs-fix // fix the coding standard
composer doc // generate API document
composer run-script --list // list all commands

## Links
Expand Down
11 changes: 11 additions & 0 deletions apidoc.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<apidoc
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="./vendor/bear/api-doc/apidoc.xsd">
<appName>BEAR\Skeleton</appName>
<scheme>app</scheme>
<docDir>docs</docDir>
<format>html</format>
<title>BEAR.Skeleton API</title>
<description>API Document</description>
</apidoc>
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"ray/di": "^2.11"
},
"require-dev": {
"bear/api-doc": "1.x-dev",
"bear/devtools": "^0.1",
"bamarni/composer-bin-plugin": "^1.4",
"composer/composer": "^1.10",
Expand All @@ -36,6 +37,7 @@
"post-install-cmd": "@setup",
"setup": "php bin/setup.php",
"compile": "bear.compile 'BEAR\\Skeleton' prod-app ./",
"doc": "./vendor/bin/apidoc",
"test": "./vendor/bin/phpunit",
"coverage": "php -dzend_extension=xdebug.so -dxdebug.mode=coverage ./vendor/bin/phpunit --coverage-text --coverage-html=build/coverage",
"pcov": "php -dextension=pcov.so -d pcov.enabled=1 ./vendor/bin/phpunit --coverage-text --coverage-html=build/coverage --coverage-clover=coverage.xml",
Expand All @@ -53,6 +55,7 @@
"scripts-descriptions": {
"setup": "Setup the project",
"compile": "Compile scripts for the production",
"doc": "Generate API document",
"test": "Run unit tests",
"tests": "Run tests and quality checks",
"coverage": "Generate test coverage report",
Expand Down
Empty file added docs/.gitkeep
Empty file.
2 changes: 1 addition & 1 deletion src/Install.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ private function recursiveJob(string $path, callable $job): void
{
$iterator = new RecursiveIteratorIterator(new RecursiveDirectoryIterator($path), RecursiveIteratorIterator::SELF_FIRST);
foreach ($iterator as $file) {
if (! in_array($file->getExtension(), ['php', 'md', 'xml'], true)) {
if (! in_array($file->getExtension(), ['php', 'md', 'xml', 'dist'], true)) {
continue;
}

Expand Down

0 comments on commit 6e9a2ec

Please sign in to comment.