Skip to content

Commit e45a42c

Browse files
update
1 parent 43ac0f4 commit e45a42c

4 files changed

Lines changed: 116 additions & 8 deletions

File tree

.editorconfig

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Top-most EditorConfig file
2+
root = true
3+
4+
# Global defaults
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
# Indentation
12+
indent_style = space
13+
indent_size = 4
14+
15+
# PHP files
16+
[*.php]
17+
indent_style = space
18+
indent_size = 4
19+
max_line_length = 120
20+
21+
# JSON, YAML, and Config files
22+
[*.{json,yml,yaml,xml}]
23+
indent_style = space
24+
indent_size = 2
25+
26+
# Markdown files
27+
[*.md]
28+
trim_trailing_whitespace = false
29+
30+
# Makefiles use tabs
31+
[Makefile]
32+
indent_style = tab

.gitattributes

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# Normalize line endings
2+
* text=auto eol=lf
3+
4+
# PHP source code
5+
*.php text eol=lf
6+
7+
# Documentation
8+
*.md text eol=lf
9+
*.txt text eol=lf
10+
11+
# Exclude dev & config files from Composer/archives
12+
/.github export-ignore
13+
/.gitlab export-ignore
14+
/.idea export-ignore
15+
/tests export-ignore
16+
/node_modules export-ignore
17+
/vendor export-ignore
18+
19+
# Exclude tooling configs
20+
/.editorconfig export-ignore
21+
/.gitattributes export-ignore
22+
/.gitignore export-ignore
23+
/.php-cs-fixer.php export-ignore
24+
/phpcs.xml.dist export-ignore
25+
/phpstan.neon.dist export-ignore
26+
/phpunit.xml.dist export-ignore
27+
28+
# Exclude CI/CD and build files
29+
/.dockerignore export-ignore
30+
/.styleci.yml export-ignore
31+
/.scrutinizer.yml export-ignore
32+
/.travis.yml export-ignore
33+
/appveyor.yml export-ignore
34+
/Dockerfile export-ignore
35+
Makefile export-ignore
36+
37+
# Exclude lock and package manager files
38+
/composer.lock export-ignore
39+
/package-lock.json export-ignore
40+
/yarn.lock export-ignore
41+
/pnpm-lock.yaml export-ignore
42+
43+
# Keep only essential files in distribution
44+
# (Composer will still include LICENSE and README by default)
45+
LICENSE text eol=lf
46+
README.md text eol=lf
47+
48+
# Improve diffs for readability
49+
*.md diff=markdown
50+
*.json diff=json
51+
*.yml diff=yaml
52+
*.yaml diff=yaml
53+
*.xml diff=xml
54+
55+
# Prevent merge conflicts on lock files
56+
composer.lock merge=ours
57+
package-lock.json merge=ours
58+
yarn.lock merge=ours
59+
pnpm-lock.yaml merge=ours

composer.json

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,29 @@
22
"name": "reloader/reloader",
33
"description": "Reloader",
44
"type": "library",
5-
"license": ["BSD-3-Clause", "MIT"],
5+
"license": ["MIT", "BSD-3-Clause"],
66
"autoload": {
7-
"files": [
8-
"src/Watcher.php"
9-
],
107
"psr-4": {
118
"Reloader\\": "src/"
12-
}
9+
},
10+
"files": [
11+
"src/Watcher.php"
12+
]
1313
},
1414
"autoload-dev": {
1515
"psr-4": {
16-
"Reloader\\Tests": "tests/"
16+
"Reloader\\Tests\\": "tests/"
1717
}
1818
},
19+
"bin": [
20+
"bin/watcher"
21+
],
1922
"authors": [
2023
{
2124
"name": "Sushil Kumar",
2225
"email": "sushilkumbhar77@gmail.com"
2326
}
2427
],
25-
"minimum-stability": "stable",
2628
"require": {
2729
"php": "^8.3",
2830
"symfony/console": "^7.3",
@@ -38,5 +40,17 @@
3840
"friendsofphp/php-cs-fixer": "^3.86",
3941
"squizlabs/php_codesniffer": "^3.13"
4042
},
43+
"scripts":{
44+
"types": "phpstan analyse src tests",
45+
"lint": "phpcs --standard=PSR12 src tests",
46+
"fix": "php-cs-fixer fix src tests",
47+
"unit": "phpunit",
48+
"tests": [
49+
"@types",
50+
"@lint",
51+
"@unit"
52+
]
53+
},
54+
"minimum-stability": "dev",
4155
"prefer-stable": true
4256
}

phpstan.neon.dist

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
1+
parameters:
2+
level: 6
3+
paths:
4+
- src

0 commit comments

Comments
 (0)