Skip to content

Commit a1d7253

Browse files
authored
Merge pull request #48 from hydephp/release/v0.5.0
HydeCLI v0.5.0
2 parents 3613cd0 + cef183a commit a1d7253

File tree

11 files changed

+25
-17
lines changed

11 files changed

+25
-17
lines changed

.gitattributes

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,16 @@
99
builds/hyde binary
1010

1111
.github/ export-ignore
12+
config/ export-ignore
1213
tests/ export-ignore
14+
app/ export-ignore
1315
bin/ export-ignore
16+
/hyde export-ignore
17+
.gitignore export-ignore
18+
.gitattributes export-ignore
1419
CHANGELOG.md export-ignore
1520
LICENSE.md export-ignore
1621
SECURITY.md export-ignore
22+
composer.lock export-ignore
23+
phpunit.xml export-ignore
24+
box.json export-ignore

.github/workflows/tests.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ jobs:
182182
- name: Test can build anonymous project
183183
run: |
184184
cd ./source/tests/Fixtures/anonymous-project
185-
185+
186186
php ../../System/bin/Assert.php "str_contains(shell_exec('hyde build'), 'Your static site has been built!')"
187187
php ../../System/bin/Assert.php "file_exists_and_is_not_empty('_site/posts/hello-world.html')"
188188
php ../../System/bin/Assert.php "file_exists_and_is_not_empty('_site/docs/search.html')"
@@ -200,7 +200,7 @@ jobs:
200200
cd ./source/tests/Fixtures/full-project
201201
php ../../System/bin/Assert.php "! str_contains(shell_exec('hyde --version'), 'Experimental Standalone')"
202202
php ../../System/bin/Assert.php "str_contains(shell_exec('hyde'), 'File proxied by standalone')"
203-
203+
204204
test-realtime-compiler:
205205
needs: build-executable
206206

@@ -271,7 +271,7 @@ jobs:
271271
run: |
272272
# Create fake composer vendor autoload file
273273
mkdir vendor && echo '<?php set_error_handler(function($errno,$errstr,$errfile,$errline){throw new \ErrorException($errstr,0,$errno,$errfile,$errline);});return[];' > vendor/autoload.php
274-
274+
275275
# Create fake app bootstrap file
276276
mkdir app && echo "<?php namespace{echo 'Hello World'.PHP_EOL;return new class{public function make(){return new class{public function handle(){return 0;}public function terminate(){return 0;}};}};}namespace Symfony\Component\Console\Input{class ArgvInput{}}namespace Symfony\Component\Console\Output{class ConsoleOutput{}}" > app/bootstrap.php
277277

app/Application.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
class Application extends \Hyde\Foundation\Application
88
{
9-
final public const APP_VERSION = '0.4.4';
9+
final public const APP_VERSION = '0.5.0';
1010

1111
public function getCachedPackagesPath(): string
1212
{

app/Commands/Internal/BuildApplicationBinaryCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
namespace App\Commands\Internal;
66

7-
use LogicException;
87
use Illuminate\Support\Facades\File;
98
use LaravelZero\Framework\Commands\BuildCommand;
109
use LaravelZero\Framework\Commands\Command;
10+
use LogicException;
1111
use Symfony\Component\Console\Output\ConsoleOutput;
1212
use Throwable;
1313

@@ -48,7 +48,7 @@ public function handle(): int
4848

4949
protected function getVersion(): string
5050
{
51-
return $this->getApplication()->getVersion() . ($this->option('build-version-suffix') ? sprintf(' (Build %s)', $this->option('build-version-suffix')) : '');
51+
return $this->getApplication()->getVersion().($this->option('build-version-suffix') ? sprintf(' (Build %s)', $this->option('build-version-suffix')) : '');
5252
}
5353

5454
protected function setupBuildEnvironment(): void
@@ -73,7 +73,7 @@ protected function clearCachedConfiguration(bool $silent = false): void
7373
File::delete($configPath);
7474
}
7575

76-
if (! $silent) {
76+
if (! $silent) {
7777
$this->components->info('Configuration cache cleared successfully.');
7878
}
7979
}

app/Commands/Internal/Describer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class Describer extends BaseDescriber
1111
protected static function sortCommandsInGroup(array &$commands): void
1212
{
1313
usort($commands, function ($a, $b) {
14-
if ($a->getName() === 'new') {
14+
if ($a->getName() === 'new') {
1515
return -1;
1616
}
1717

app/Commands/ServeCommand.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ protected function getServerStub(string $phar): string
7474
return <<<PHP
7575
<?php
7676
// Proxies the realtime compiler server from the Phar archive
77-
77+
7878
Phar::loadPhar('$phar', 'hyde.phar');
79-
79+
8080
putenv('HYDE_AUTOLOAD_PATH=phar://hyde.phar/vendor/autoload.php');
81-
81+
8282
return require 'phar://hyde.phar/vendor/hyde/realtime-compiler/bin/server.php';
8383
PHP;
8484
}

app/Providers/AppServiceProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
namespace App\Providers;
44

5+
use App\Commands\Internal\Describer;
56
use App\Commands\NewProjectCommand;
67
use App\Commands\ServeCommand;
7-
use App\Commands\Internal\Describer;
88
use App\Commands\VendorPublishCommand;
99
use Illuminate\Support\ServiceProvider;
1010
use NunoMaduro\LaravelConsoleSummary\Contracts\DescriberContract;

app/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
|
3838
*/
3939

40-
'version' => sprintf("v%s <fg=gray>-</> <comment>Experimental Standalone</comment> <fg=gray>-</> <fg=gray>(HydePHP v%s)</>",
40+
'version' => sprintf('v%s <fg=gray>-</> <comment>Experimental Standalone</comment> <fg=gray>-</> <fg=gray>(HydePHP v%s)</>',
4141
\App\Application::APP_VERSION, \Hyde\Foundation\HydeKernel::VERSION
4242
),
4343

builds/hyde

-1 Bytes
Binary file not shown.

tests/Unit/BootstrapTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php /** @noinspection PhpPossiblePolymorphicInvocationInspection */
1+
<?php
22

33
use Hyde\Foundation\Application;
44
use Hyde\Foundation\ConsoleKernel;

0 commit comments

Comments
 (0)