Skip to content

Commit e55caf0

Browse files
authored
Merge pull request #83 from tighten/adc/optimize-size
Allow dev dependencies to be skipped on build
2 parents 6676406 + 94128d6 commit e55caf0

File tree

5 files changed

+34
-27
lines changed

5 files changed

+34
-27
lines changed

RELEASE.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@
33
1. Visit the [Duster Releases page](https://github.com/tighten/duster/releases); figure out what your next tag will be (increase the third number if it's a patch or fix; increase the second number if it's adding features)
44
2. On your local machine, pull down the latest changes on the `main` branch (`git checkout main && git pull`)
55
3. Update the version in [`config/app.php`](./config/app.php)
6-
4. Compile the binary with
6+
4. Remove dev dependencies `composer install --no-dev`
7+
5. Compile the binary with (run on PHP < `8.2`)
78

89
```zsh
910
./duster app:build
1011
```
1112

12-
5. Run the build once to make sure it works (`./builds/duster`)
13-
6. Commit all changes
14-
7. Push all commits to GitHub
15-
8. [Draft a new release](https://github.com/tighten/duster/releases/new) with both the tag version and title of your tag (e.g. `v1.5.1`)
16-
9. Use the "Generate release notes" button to generate release notes from the merged PRs.
13+
6. Run the build once to make sure it works (`./builds/duster`)
14+
7. Commit all changes
15+
8. Push all commits to GitHub
16+
9. [Draft a new release](https://github.com/tighten/duster/releases/new) with both the tag version and title of your tag (e.g. `v1.5.1`)
17+
10. Use the "Generate release notes" button to generate release notes from the merged PRs.

builds/duster

-13.3 MB
Binary file not shown.

composer.json

Lines changed: 21 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -18,43 +18,49 @@
1818
"authors": [
1919
{
2020
"name": "Matt Stauffer",
21-
"email": "matt@tighten.co",
22-
"homepage": "https://tighten.co",
21+
"email": "matt@tighten.com",
22+
"homepage": "https://tighten.com",
23+
"role": "Developer"
24+
},
25+
{
26+
"name": "Anthony Clark",
27+
"email": "anthony@tighten.com",
28+
"homepage": "https://tighten.com",
2329
"role": "Developer"
2430
}
2531
],
2632
"require": {
27-
"php": "^8.0"
28-
},
29-
"require-dev": {
33+
"php": "^8.0",
3034
"friendsofphp/php-cs-fixer": "^3.14",
3135
"laravel-zero/framework": "^9.2",
3236
"laravel/pint": "1.5",
33-
"mockery/mockery": "^1.4.4",
34-
"nunomaduro/larastan": "^2.2",
3537
"nunomaduro/termwind": "^1.14",
36-
"pestphp/pest": "^1.21.3",
37-
"rector/rector": "^0.15.10",
3838
"spatie/invade": "^1.1",
39-
"spatie/laravel-ray": "^1.31",
4039
"squizlabs/php_codesniffer": "^3.7",
4140
"tightenco/tlint": "^8.0"
4241
},
42+
"require-dev": {
43+
"mockery/mockery": "^1.4.4",
44+
"nunomaduro/larastan": "^2.2",
45+
"pestphp/pest": "^1.21.3",
46+
"rector/rector": "^0.15.10",
47+
"spatie/laravel-ray": "^1.31"
48+
},
4349
"autoload": {
4450
"psr-4": {
4551
"App\\": "app/",
4652
"Database\\Factories\\": "database/factories/",
4753
"Database\\Seeders\\": "database/seeders/"
48-
}
49-
},
50-
"autoload-dev": {
51-
"psr-4": {
52-
"Tests\\": "tests/"
5354
},
5455
"files": [
5556
"./vendor/squizlabs/php_codesniffer/autoload.php"
5657
]
5758
},
59+
"autoload-dev": {
60+
"psr-4": {
61+
"Tests\\": "tests/"
62+
}
63+
},
5864
"config": {
5965
"preferred-install": {
6066
"laravel/pint": "source",

config/app.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
|
2727
*/
2828

29-
'version' => '1.0.0',
29+
'version' => '1.0.1',
3030

3131
/*
3232
|--------------------------------------------------------------------------

config/commands.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
|
5757
*/
5858

59-
'hidden' => [
59+
'hidden' => array_filter([
6060
NunoMaduro\LaravelConsoleSummary\SummaryCommand::class,
6161
Symfony\Component\Console\Command\DumpCompletionCommand::class,
6262
Symfony\Component\Console\Command\HelpCommand::class,
@@ -66,15 +66,15 @@
6666
Illuminate\Foundation\Console\VendorPublishCommand::class,
6767
LaravelZero\Framework\Commands\StubPublishCommand::class,
6868

69-
Pest\Laravel\Commands\PestDatasetCommand::class,
70-
Pest\Laravel\Commands\PestInstallCommand::class,
71-
Pest\Laravel\Commands\PestTestCommand::class,
69+
class_exists('Pest\Laravel\Commands\PestDatasetCommand') ? Pest\Laravel\Commands\PestDatasetCommand::class : null,
70+
class_exists('Pest\Laravel\Commands\PestInstallCommand') ? Pest\Laravel\Commands\PestInstallCommand::class : null,
71+
class_exists('Pest\Laravel\Commands\PestTestCommand') ? Pest\Laravel\Commands\PestTestCommand::class : null,
7272

7373
LaravelZero\Framework\Commands\MakeCommand::class,
7474
LaravelZero\Framework\Commands\TestMakeCommand::class,
7575
LaravelZero\Framework\Commands\RenameCommand::class,
7676
LaravelZero\Framework\Commands\InstallCommand::class,
77-
],
77+
]),
7878

7979
/*
8080
|--------------------------------------------------------------------------

0 commit comments

Comments
 (0)