Skip to content

Commit 1e4137b

Browse files
committed
feat: parser and formatter
1 parent 0306cbd commit 1e4137b

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

+7140
-164
lines changed

bin/release

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ use Composer\Semver\VersionParser;
1818
use Tempest\Console\Console;
1919
use Tempest\Console\ConsoleApplication;
2020
use Tempest\Console\Exceptions\InterruptException;
21+
2122
use function Tempest\get;
2223
use function Tempest\Support\arr;
2324
use function Tempest\Support\str;
@@ -282,10 +283,10 @@ function ensureTagDoesNotExist(string $version): void
282283
}
283284

284285
/*
285-
|--------------------------------------------------------------------------
286-
| Script starts here.
287-
|--------------------------------------------------------------------------
288-
*/
286+
* |--------------------------------------------------------------------------
287+
* | Script starts here.
288+
* |--------------------------------------------------------------------------
289+
*/
289290

290291
try {
291292
ConsoleApplication::boot();
@@ -313,7 +314,7 @@ try {
313314

314315
if (! $console->confirm("The next tag will be <em>{$tag}</em>. Release?")) {
315316
$console->error('Cancelled.');
316-
exit;
317+
exit();
317318
}
318319

319320
// Bump PHP packages
@@ -364,6 +365,6 @@ try {
364365
$tag,
365366
));
366367

367-
exit;
368+
exit();
368369
} catch (InterruptException) {
369370
}

composer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@
8383
"tempest/generation": "self.version",
8484
"tempest/http": "self.version",
8585
"tempest/http-client": "self.version",
86+
"tempest/i18n": "self.version",
8687
"tempest/log": "self.version",
8788
"tempest/mapper": "self.version",
8889
"tempest/reflection": "self.version",
@@ -117,6 +118,7 @@
117118
"Tempest\\Generation\\": "packages/generation/src",
118119
"Tempest\\HttpClient\\": "packages/http-client/src",
119120
"Tempest\\Http\\": "packages/http/src",
121+
"Tempest\\Internationalization\\": "packages/i18n/src",
120122
"Tempest\\Log\\": "packages/log/src",
121123
"Tempest\\Mapper\\": "packages/mapper/src",
122124
"Tempest\\Reflection\\": "packages/reflection/src",
@@ -174,6 +176,7 @@
174176
"Tempest\\Generation\\Tests\\": "packages/generation/tests",
175177
"Tempest\\HttpClient\\Tests\\": "packages/http-client/tests",
176178
"Tempest\\Http\\Tests\\": "packages/http/tests",
179+
"Tempest\\Internationalization\\Tests\\": "packages/i18n/tests",
177180
"Tempest\\Log\\Tests\\": "packages/log/tests",
178181
"Tempest\\Mapper\\Tests\\": "packages/mapper/tests",
179182
"Tempest\\Reflection\\Tests\\": "packages/reflection/tests",
@@ -202,6 +205,7 @@
202205
"phpstan": "vendor/bin/phpstan analyse src tests --memory-limit=1G",
203206
"rector": "vendor/bin/rector process --no-ansi",
204207
"merge": "php -d\"error_reporting = E_ALL & ~E_DEPRECATED\" vendor/bin/monorepo-builder merge",
208+
"i18n:plural": "./packages/i18n/bin/plural-rules.php",
205209
"release": [
206210
"composer qa",
207211
"./bin/release"

packages/i18n/.gitattributes

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Exclude build/test files from the release
2+
.github/ export-ignore
3+
tests/ export-ignore
4+
.gitattributes export-ignore
5+
.gitignore export-ignore
6+
phpunit.xml export-ignore
7+
README.md export-ignore
8+
9+
# Configure diff output
10+
*.view.php diff=html
11+
*.php diff=php
12+
*.css diff=css
13+
*.html diff=html
14+
*.md diff=markdown

packages/i18n/LICENCE.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2024 Brent Roose [email protected]
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6+
7+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8+
9+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)