Skip to content

Commit d7b307b

Browse files
committed
Generated types
1 parent 529ac04 commit d7b307b

Some content is hidden

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

54 files changed

+2574
-5
lines changed

.gitattributes

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/.github/ export-ignore
2+
/generator/ export-ignore
23
/stubs/ export-ignore
34
/tests/ export-ignore
45
/tools/ 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: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,22 @@
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",
23+
"symfony/finder": "^6.4.17",
2224
"symfony/var-dumper": "^6.4.18 || ^7.2.3"
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": {
36+
"Typhoon\\TypeGenerator\\": "generator/",
3237
"Typhoon\\Type\\": "tests/"
3338
}
3439
},
@@ -53,6 +58,11 @@
5358
"check-require": "tools/composer-require-checker/vendor/bin/composer-require-checker",
5459
"check-unused": "tools/composer-unused/vendor/bin/composer-unused",
5560
"fixcs": "tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --diff --verbose",
61+
"generate": [
62+
"Typhoon\\TypeGenerator\\Generator::generate",
63+
"@fixcs -- src",
64+
"git add ."
65+
],
5666
"infection": "tools/infection/vendor/bin/infection --show-mutations",
5767
"normalize": "@composer bin composer-normalize normalize --diff ../../composer.json",
5868
"phpstan": "tools/phpstan/vendor/bin/phpstan analyze",

composer.lock

Lines changed: 220 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)