Skip to content

Commit

Permalink
Synchronized package files with skeleton template
Browse files Browse the repository at this point in the history
  • Loading branch information
shudd3r committed Oct 5, 2022
1 parent 099f9d2 commit 5a4dbd1
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 11 deletions.
8 changes: 8 additions & 0 deletions .github/skeleton.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"package.name": "Polymorphine/Middleware",
"repository.name": "polymorphine/middleware",
"package.description": "Middleware composition library",
"namespace.src": "Polymorphine\\Middleware",
"author.name": "Shudd3r",
"author.email": "q3.shudder@gmail.com"
}
4 changes: 3 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ jobs:
- name: "Coding standard CodeSniffer checks"
run: |
vendor/bin/phpcs --extensions=php --standard=vendor/polymorphine/dev/phpcs.xml src
vendor/bin/phpcs --extensions=php --standard=vendor/polymorphine/dev/phpcs.xml --ignore=*/CodeSamples/* tests
vendor/bin/phpcs --extensions=php --standard=vendor/polymorphine/dev/phpcs.xml --ignore=*/code-samples/* tests
- name: "Package skeleton validation"
run: vendor/bin/polymorphine-skeleton check
- name: "Run PhpUnit tests with coverage"
run: |
mkdir -p build/logs
Expand Down
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
.dev/
.idea/
vendor/
/.dev/
/vendor/
/composer.lock
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,16 @@
# Polymorphine/Middleware
[![Latest Stable Version](https://poser.pugx.org/polymorphine/middleware/version)](https://packagist.org/packages/polymorphine/middleware)
[![Latest stable release](https://poser.pugx.org/polymorphine/middleware/version)](https://packagist.org/packages/polymorphine/middleware)
[![Build status](https://github.com/polymorphine/middleware/workflows/build/badge.svg)](https://github.com/polymorphine/middleware/actions)
[![Coverage status](https://coveralls.io/repos/github/polymorphine/middleware/badge.svg?branch=develop)](https://coveralls.io/github/polymorphine/middleware?branch=develop)
[![PHP version](https://img.shields.io/packagist/php-v/polymorphine/middleware.svg)](https://packagist.org/packages/polymorphine/middleware)
[![LICENSE](https://img.shields.io/github/license/polymorphine/middleware.svg?color=blue)](LICENSE)
### Middleware composition library


### Installation with [Composer](https://getcomposer.org/)
```bash
composer require polymorphine/middleware
```

...

12 changes: 7 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
"psr/http-server-middleware": "^1.0"
},
"require-dev": {
"polymorphine/dev": "^0.1.0"
"polymorphine/dev": "0.2.*"
},
"autoload": {
"psr-4": {
Expand All @@ -31,9 +31,11 @@
},
"scripts": {
"test-cs": [
"vendor/bin/php-cs-fixer --dry-run -v --config=cs-fixer.php.dist --path-mode=intersection fix src tests",
"vendor/bin/phpcs --extensions=php --standard=vendor/polymorphine/dev/phpcs.xml src",
"vendor/bin/phpcs --extensions=php --standard=vendor/polymorphine/dev/phpcs.xml --ignore=*/CodeSamples/* tests"
]
"php-cs-fixer --dry-run -v --config=cs-fixer.php.dist --path-mode=intersection fix src tests",
"phpcs --extensions=php --standard=vendor/polymorphine/dev/phpcs.xml src",
"phpcs --extensions=php --standard=vendor/polymorphine/dev/phpcs.xml --ignore=*/code-samples/* tests"
],
"test-php": "phpunit",
"test-skeleton": "polymorphine-skeleton check"
}
}
2 changes: 1 addition & 1 deletion phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<phpunit
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/9.5/phpunit.xsd"
cacheResultFile=".dev/.phpunit.result.cache"
cacheResultFile=".dev/temp/.phpunit.result.cache"
colors="true"
bootstrap="vendor/autoload.php"
>
Expand Down

0 comments on commit 5a4dbd1

Please sign in to comment.