Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

Enhancement: Synchronize with "narrowspark/php-library-template" #36

Open
wants to merge 43 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
b4d610d
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis May 8, 2020
7715b34
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis May 12, 2020
c85427b
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis May 13, 2020
60f55fa
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis May 13, 2020
efa1d90
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis May 13, 2020
2676b74
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis May 14, 2020
a24ed63
Merge branch 'master' into feature/template/sync/narrowspark/php-libr…
prisis May 14, 2020
28ab306
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis May 22, 2020
4d7842c
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Jun 5, 2020
1dd9d9c
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Jun 8, 2020
99b6fa1
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Jun 16, 2020
2c4b8de
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Jun 22, 2020
25b69fe
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Jun 22, 2020
960db43
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Jun 24, 2020
02dedd3
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Jul 9, 2020
9639bdf
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Jul 10, 2020
3ae2129
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Jul 13, 2020
60fe22f
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Jul 14, 2020
e1a3b1f
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Jul 24, 2020
0ed3c03
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Jul 24, 2020
ac884aa
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Jul 24, 2020
fc9be0f
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Jul 31, 2020
d57a913
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Aug 8, 2020
64ca6fa
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Aug 9, 2020
b9761e4
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Aug 11, 2020
7d329db
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Aug 12, 2020
24a53d3
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Aug 16, 2020
8445678
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Aug 16, 2020
1fdc625
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Aug 25, 2020
85247ec
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Aug 25, 2020
e2e90d5
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Aug 27, 2020
06d06ae
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Aug 28, 2020
f0bfde0
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Aug 31, 2020
f253ab1
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Sep 7, 2020
2c1ff7e
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Sep 10, 2020
1fc1842
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Sep 11, 2020
cb1636a
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Sep 13, 2020
2a1f547
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Sep 13, 2020
05ec693
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Sep 20, 2020
55c7a9f
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Sep 21, 2020
316d39b
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Oct 2, 2020
8ff358e
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Oct 15, 2020
4c155dd
"Enhancement: Synchronize with "narrowspark/php-library-template""
prisis Oct 16, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 21 additions & 16 deletions .build/composer.json
Original file line number Diff line number Diff line change
@@ -1,38 +1,43 @@
{
"name": "narrowspark/tools",
"description": "tools",
"minimum-stability": "dev",
"prefer-stable": true,
"license": "proprietary",
"require": {
"php": "^7.3",
"php": "^7.4",
"narrowspark/coding-standard": "^5.1.0",
"wikimedia/composer-merge-plugin": "^1.4.1"
},
"extra": {
"prefetcher": {
"require": {
"phpunit/phpunit": "^8.0 || ^9.0",
"friendsofphp/php-cs-fixer": "^2.16.0"
}
},
"merge-plugin": {
"include": [
"../composer.json"
],
"merge-extra": false,
"merge-scripts": false
},
"prefetcher": {
"require": {
"phpunit/phpunit": "^9.0",
"friendsofphp/php-cs-fixer": "^2.16.0"
}
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"changelog": "changelog-generator generate --config=\"./../.changelog\" --file=./../CHANGELOG.md --prepend",
"changelog": "changelog-generator generate --config=\"./../.changelog\" --file=\"./../CHANGELOG.md\" --prepend",
"cs": "php-cs-fixer fix --config=\"./../.php_cs\" --ansi",
"cs:check": "php-cs-fixer fix --config=\"./../.php_cs\" --ansi --dry-run",
"infection": "infection --configuration=\"./../infection.json\" -j$(nproc) --ansi",
"phpstan": "phpstan analyse -c ./../phpstan.neon --ansi",
"psalm": "psalm --threads=$(nproc)",
"phpstan:baseline": "phpstan analyse -c ./../phpstan.neon --ansi --generate-baseline",
"psalm": "psalm --diff --diff-methods --threads=$(nproc)",
"psalm:baseline": "psalm --threads=$(nproc) --set-baseline=./.build/psalm-baseline.xml",
"psalm:fix": "psalm --alter --issues=all --threads=$(nproc)",
"infection": "infection --configuration=\"./../infection.json\" -j$(nproc) --ansi",
"rector-src": "rector process ../src/ --config=./rector-src.yaml --ansi --dry-run",
"rector-src:fix": "rector process ../src/ --config=./rector-src.yaml --ansi",
"rector-tests": "rector process ../tests/ --config=./rector-tests.yaml --ansi --dry-run",
"rector-tests:fix": "rector process ../tests/ --config=./rector-tests.yaml --ansi"
"rector-src": "rector process ./../src/ --config=./rector-src.yaml --ansi --dry-run",
"rector-src:fix": "rector process ./../src/ --config=./rector-src.yaml --ansi",
"rector-tests": "rector process ./../tests/ --config=./rector-tests.yaml --ansi --dry-run",
"rector-tests:fix": "rector process ./../tests/ --config=./rector-tests.yaml --ansi",
"req:check": "composer-require-checker check --config-file=./../composer-require.json ./../composer.json"
}
}
Empty file added .build/phpstan-baseline.neon
Empty file.
2 changes: 2 additions & 0 deletions .build/psalm-baseline.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<files psalm-version="3.7.2@d9cae720c1af31db9ba27c2bc1fcf9b0dd092fb0"/>
3 changes: 2 additions & 1 deletion .build/rector-src.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ imports:
- { resource: './vendor/thecodingmachine/safe/rector-migrate-0.7.yml' }

parameters:
php_version_features: '7.3'
php_version_features: '7.4'

project_type: "open-source"

Expand All @@ -21,3 +21,4 @@ parameters:
- 'php71'
- 'php72'
- 'php73'
- 'php74'
3 changes: 2 additions & 1 deletion .build/rector-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
parameters:
php_version_features: '7.3'
php_version_features: '7.4'

sets:
- 'celebrity'
Expand All @@ -15,3 +15,4 @@ parameters:
- 'php71'
- 'php72'
- 'php73'
- 'php74'
16 changes: 10 additions & 6 deletions .dependabot/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ update_configs:
- match:
dependency_type: "development"
commit_message:
prefix: "fix"
prefix_development: "chore"
include_scope: true
prefix: "Build"
default_labels:
- "dependency"
- "Dependency update"
- "Changed"

- package_manager: "php:composer"
directory: "/.build"
Expand All @@ -28,10 +30,11 @@ update_configs:
dependency_type: "production"
update_type: "semver:patch"
commit_message:
prefix: "fix"
prefix_development: "chore"
include_scope: true
prefix: "Build"
default_labels:
- "dependency"
- "Dependency update"

- package_manager: "javascript"
directory: "/"
Expand All @@ -41,7 +44,8 @@ update_configs:
- match:
dependency_type: "all"
commit_message:
prefix: "fix"
prefix_development: "chore"
include_scope: true
prefix: "Build"
default_labels:
- "dependency"
- "Dependency update"
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.16.0
14.2.0
2 changes: 1 addition & 1 deletion .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ $license = License\Type\MIT::markdown(
new \DateTimeZone('UTC')
),
License\Holder::fromString('Daniel Bannert'),
License\Url::fromString('https://github.com/testomat/terminal-colour')
License\Url::fromString('https://github.com/narrowspark/php-library-template')
);

$license->save();
Expand Down
7 changes: 3 additions & 4 deletions .textlintrc
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,10 @@
"execution",
"executed",
"remain",
"execute",
"color",
"colors"
"execute"
]
},
"@textlint-rule/preset-google": false,
"@textlint-rule/preset-google": true,
"write-good": {
"passive": false,
"eprime": false,
Expand Down Expand Up @@ -129,6 +127,7 @@
["pretty", ""],
["easy", ""],
["interesting", ""],
["way to", ""],
["In order to", "To"],
["in order to", "to"],
["might", ""],
Expand Down
7 changes: 5 additions & 2 deletions .typo-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ excluded_files:
- ".nvmrc"
- ".php_cs"
- ".textlintrc"
- ".travis.yml"
- "docker-compose.yml"
- "infection.json"
- "package.json"
Expand All @@ -41,11 +40,15 @@ excluded_files:
- "psalm-baseline.xml"
- "src/**/*.php"
- "tests/**/*.php"
- "release.config.js"

# Any typos we should ignore?
excluded_words:
- typoci
- testomat
- anolilab
- bannert
- prisis
- narrowspark
- composer

# Would you like filenames to also be spellchecked?
Expand Down
45 changes: 20 additions & 25 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,11 @@
{
"name": "testomat/terminal-colour",
"name": "narrowspark/php-library-template",
"type": "library",
"description": "Return your terminal message in style! Change the text style, text color and text background color from the terminal, console or shell interface with ANSI color codes.",
"description": "Provides a GitHub repository template for a Narrowspark PHP library, using GitHub actions.",
"keywords": [
"narrowspark",
"testomat",
"color",
"terminal",
"colour",
"ansi",
"style",
"truecolor",
"color256",
"color16"
"narrowspark"
],
"homepage": "http://github.com/testomat/terminal-colour",
"homepage": "http://github.com/narrowspark/php-library-template",
"license": "MIT",
"authors": [
{
Expand All @@ -25,20 +16,21 @@
}
],
"require": {
"php": "^7.3",
"thecodingmachine/safe": "^1.1.1"
"php": "^7.4",
"thecodingmachine/safe": "^1.1.3"
},
"require-dev": {
"ext-json": "*",
"phpunit/phpunit": "^9.1.4"
"phpunit/phpunit": "^9.3.8",
"thecodingmachine/phpstan-safe-rule": "^1.0.1"
},
"config": {
"preferred-install": "dist",
"sort-packages": true
},
"extra": {
"branch-alias": {
"dev-master": "1.1-dev"
"dev-master": "1.0-dev"
},
"prefetcher": {
"require": {
Expand All @@ -48,41 +40,44 @@
},
"autoload": {
"psr-4": {
"Testomat\\TerminalColour\\": "src/"
"Narrowspark\\Library\\": "src/"
},
"exclude-from-classmap": [
"/tests/"
]
},
"autoload-dev": {
"psr-4": {
"Testomat\\TerminalColour\\Tests\\": "tests/"
"Narrowspark\\Library\\Tests\\": "tests/"
}
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": {
"post-install-cmd": "composer --working-dir=./.build install --lock",
"post-update-cmd": "composer --working-dir=./.build update --lock",
"changelog": "composer --working-dir=./.build changelog",
"coverage": [
"phpunit --dump-xdebug-filter=./.build/phpunit/.xdebug-filter.php",
"phpunit --prepend=./.build/phpunit/.xdebug-filter.php --coverage-html=./.build/phpunit/coverage"
],
"cs": "composer --working-dir=./.build cs -- -v",
"cs:check": "composer --working-dir=./.build cs:check -- -v",
"infection": "composer --working-dir=./.build infection -- --min-covered-msi=73 --min-msi=61",
"phpstan": "composer --working-dir=./.build phpstan -- --memory-limit=-1",
"phpstan:baseline": "composer --working-dir=./.build phpstan:baseline -- --memory-limit=-1",
"psalm": "composer --working-dir=./.build psalm",
"psalm:baseline": "composer --working-dir=./.build psalm:baseline",
"psalm:fix": "composer --working-dir=./.build psalm:fix",
"infection": "composer --working-dir=./.build infection -- --min-covered-msi=89 --min-msi=89",
"rector-src": "composer --working-dir=./.build rector-src",
"rector-src:fix": "composer --working-dir=./.build rector-src:fix",
"rector-tests": "composer --working-dir=./.build rector-tests",
"rector-tests:fix": "composer --working-dir=./.build rector-tests:fix",
"test": "phpunit",
"post-install-cmd": "composer --working-dir=./.build install --lock",
"post-update-cmd": "composer --working-dir=./.build update --lock"
"req:check": "composer --working-dir=./.build req:check",
"test": "phpunit"
},
"support": {
"issues": "https://github.com/testomat/terminal-colour/issues",
"source": "https://github.com/testomat/terminal-colour"
"issues": "https://github.com/narrowspark/php-library-template/issues",
"source": "https://github.com/narrowspark/php-library-template"
}
}
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
version: '3'
services:
php73_64:
php74_64:
build:
context: ./.docker/php/
args:
NAMESPACE: "php"
PHP_VERSION: "7.3"
PHP_VERSION: "7.4.2"
XDEBUG_VERSION: "2.9.0"
INSTALL_XDEBUG: "true"
expose:
Expand Down
6 changes: 1 addition & 5 deletions infection.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@
"TrueValue": false,
"IncrementInteger": false,
"DecrementInteger": false,
"ArrayItemRemoval": false,
"LogicalAnd": false,
"LogicalOr": false,
"Identical": false,
"NotIdentical": false
"ArrayItemRemoval": false
}
}
Loading