Skip to content

Commit 6794fbe

Browse files
author
Robert Allport
authored
Merge pull request #17 from chapeupreto/add-config-files
chore: add config files and update `composer.json` test script
2 parents 6952a1d + fbce544 commit 6794fbe

File tree

6 files changed

+71
-7609
lines changed

6 files changed

+71
-7609
lines changed

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_size = 4
6+
indent_style = space
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
trim_trailing_whitespace = false
13+
14+
[*.{yml,yaml}]
15+
indent_size = 2

.gitattributes

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Path-based git attributes
2+
# https://www.kernel.org/pub/software/scm/git/docs/gitattributes.html
3+
4+
# Ignore all test and documentation with "export-ignore".
5+
/.gitattributes export-ignore
6+
/.gitignore export-ignore
7+
/phpunit.xml.dist export-ignore
8+
/tests export-ignore
9+
/.editorconfig export-ignore
10+
/.php_cs export-ignore
11+
/.github export-ignore
12+
/psalm.xml export-ignore
13+

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
/vendor
22
/.idea
33
.phpunit.result.cache
4+
build
5+
composer.lock

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
},
2424
"require-dev": {
2525
"orchestra/testbench": "^4.0|^5.0|^6.0",
26-
"phpunit/phpunit": "^8.0|^9.0"
26+
"phpunit/phpunit": "^9.0"
2727
},
2828
"autoload": {
2929
"psr-4": {
@@ -36,7 +36,7 @@
3636
}
3737
},
3838
"scripts": {
39-
"test": "./vendor/bin/phpunit --color=always ./tests"
39+
"test": "./vendor/bin/phpunit"
4040
},
4141
"config": {
4242
"sort-packages": true

0 commit comments

Comments
 (0)