Skip to content

Commit

Permalink
(chore): add slug to api
Browse files Browse the repository at this point in the history
  • Loading branch information
edwinsiebel committed Feb 25, 2021
1 parent c9ea7ab commit 85d113b
Show file tree
Hide file tree
Showing 31 changed files with 1,623 additions and 565 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## Version [2.0.2]

### Features:

- Add slug to related item in API.
- Add multiple unit tests.

## Version [2.0.1]

### Features:
Expand Down
16 changes: 11 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,19 @@
{
"name": "plugin/openpub-base",
"description": "OpenPub base plugin",
"type": "wordpress-plugin",
"config": {
"preferred-install": "dist",
"optimize-autoloader": true,
"sort-packages": true
},
"authors": [
{
"name": "Yard Digital Agency",
"name": "Yard | Digital Agency",
"email": "[email protected]",
"homepage": "https://www.yard.nl"
}
],
"type": "wordpress-plugin",
"repositories": [
{
"type": "composer",
Expand All @@ -17,6 +22,7 @@
],
"require": {
"php": ">=7.0",
"symfony/var-dumper": "^5.2",
"wpackagist-plugin/elasticpress": ">2.0"
},
"require-dev": {
Expand All @@ -34,16 +40,16 @@
},
"autoload-dev": {
"psr-4": {
"OWC\\OpenPub\\Base\\Tests\\": "./tests"
"OWC\\OpenPub\\Tests\\": "./tests/Unit"
}
},
"scripts": {
"format": "./vendor/bin/php-cs-fixer fix",
"format": "vendor/bin/php-cs-fixer fix",
"phpstan": "./vendor/bin/phpstan analyse",
"test": [
"@unit"
],
"unit": "clear && ./vendor/bin/phpunit --testsuite 'Unit Test Suite' --colors=always",
"unit-coverage": "clear && ./vendor/bin/phpunit --testsuite 'Unit Test Suite' --colors=always --coverage-html ./tests/coverage"
"unit-coverage": "clear && XDEBUG_MODE=coverage ./vendor/bin/phpunit --testsuite 'Unit Test Suite' --colors=always --coverage-html ./tests/coverage"
}
}
Loading

0 comments on commit 85d113b

Please sign in to comment.