Skip to content

Commit 2b64c19

Browse files
committed
Generated types
1 parent 9a103ae commit 2b64c19

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+2132
-22
lines changed

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/.github/ export-ignore
2+
/generator/ export-ignore
23
/stubs/ export-ignore
34
/tests/ export-ignore
5+
/tools/ export-ignore
46
/.gitattributes export-ignore
57
/.gitignore export-ignore
68
/.php-cs-fixer.dist.php export-ignore

.github/workflows/check.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,4 @@ jobs:
99
secrets: inherit
1010
with:
1111
infection: false
12-
phpstan: false
1312
psalm: true

.php-cs-fixer.dist.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
$config = (new Config())
1111
->setFinder(
1212
Finder::create()
13+
->in(__DIR__ . '/generator')
1314
->in(__DIR__ . '/src')
1415
->in(__DIR__ . '/tests')
1516
->append([

composer.json

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,18 +18,25 @@
1818
},
1919
"require-dev": {
2020
"bamarni/composer-bin-plugin": "^1.8.2",
21+
"nette/php-generator": "^4.1.7",
2122
"phpunit/phpunit": "^10.5.45",
22-
"symfony/var-dumper": "^6.4.18 || ^7.2.3"
23+
"symfony/var-dumper": "^6.4.18 || ^7.2.3",
24+
"typhoon/type-spec": "^0.1@dev"
2325
},
2426
"autoload": {
2527
"psr-4": {
26-
"Typhoon\\Type\\": "src/",
27-
"Typhoon\\TypeSpec\\": "spec/"
28-
}
28+
"Typhoon\\Type\\": "src/"
29+
},
30+
"files": [
31+
"src/types.php"
32+
]
2933
},
3034
"autoload-dev": {
3135
"psr-4": {
32-
"Typhoon\\Type\\": "tests/"
36+
"Typhoon\\Type\\": [
37+
"generator/",
38+
"tests/"
39+
]
3340
}
3441
},
3542
"config": {
@@ -53,6 +60,11 @@
5360
"check-require": "tools/composer-require-checker/vendor/bin/composer-require-checker",
5461
"check-unused": "tools/composer-unused/vendor/bin/composer-unused",
5562
"fixcs": "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --diff --verbose",
63+
"generate": [
64+
"Typhoon\\Type\\Generator::generate",
65+
"@fixcs -- src",
66+
"git add ."
67+
],
5668
"infection": "tools/infection/vendor/bin/infection --show-mutations",
5769
"normalize": "@composer bin composer-normalize normalize --diff ../../composer.json",
5870
"phpstan": "tools/phpstan/vendor/bin/phpstan analyze",

composer.lock

Lines changed: 227 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)