Skip to content

Commit afdbc3c

Browse files
committed
v2.4.0
- Fixed setup script supressed feedback (logging level 2) - Dropped Cypress.io in favor of Laravel Dusk - Added Laravel Dusk to be installed during creation - Added Google Chrome to be installed during setup - Added a localization testing helper for Dusk - Added a global Pest testing helper - Updated Vite's Livewire hot-reload settings yet again - Fix Xdebug log permissions - Fixed Laraphense extension settings - Updated [README.md]
1 parent b03ea20 commit afdbc3c

File tree

7 files changed

+148
-73
lines changed

7 files changed

+148
-73
lines changed

README.md

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ This way, I don't have to worry about the things I've mentioned, plus I gain the
4040
- [Mailpit](https://github.com/axllent/mailpit) (http://localhost:8025)
4141
- [MinIO](https://min.io/) (http://localhost:9000)
4242
- Active Services
43-
- [Expose](https://expose.dev/docs) (Installed if `EXPOSE_TOKEN` is provided in [.env] file. And use `expose share https://[site-name].test` to work properly)
43+
- [Expose](https://expose.dev/docs) (Installed if `EXPOSE_TOKEN` is provided in [.env] file. Use `expose share https://[site-name].test` to work properly)
4444

4545
</p>
4646
</details>
@@ -65,13 +65,10 @@ This way, I don't have to worry about the things I've mentioned, plus I gain the
6565

6666
- Essentials
6767
- [league/flysystem-aws-s3-v3](https://flysystem.thephpleague.com/docs/adapter/aws-s3-v3/)
68-
- [laracasts/cypress](https://github.com/laracasts/cypress) [Dev]
69-
- Use `npx cypress open` to run the tester
70-
- Checkout this [episode](https://laracasts.com/series/jeffreys-larabits/episodes/22) for more details
7168
- [predis/predis](https://github.com/predis/predis)
7269
- [artesaos/seotools](https://github.com/artesaos/seotools)
7370
- [spatie/laravel-data](https://github.com/spatie/laravel-data)
74-
- [laravel/scout](https://laravel.com/docs/10.x/scout)
71+
- [laravel/scout](https://laravel.com/docs/scout)
7572
- [qruto/laravel-wave](https://github.com/qruto/laravel-wave)
7673
- ["spatie/laravel-medialibrary:^10.0.0"](https://spatie.be/docs/laravel-medialibrary/v10)
7774
- [spatie/eloquent-sortable](https://github.com/spatie/eloquent-sortable)
@@ -82,8 +79,9 @@ This way, I don't have to worry about the things I've mentioned, plus I gain the
8279
- [blade-ui-kit/blade-icons](https://github.com/blade-ui-kit/blade-icons)
8380
- [blade-ui-kit/blade-heroicons](https://github.com/blade-ui-kit/blade-heroicons)
8481
- [gehrisandro/tailwind-merge-laravel](https://github.com/gehrisandro/tailwind-merge-laravel)
85-
- [laravel/breeze](https://laravel.com/docs/10.x/starter-kits#laravel-breeze) [Dev]
86-
- [laravel/telescope](https://laravel.com/docs/10.x/telescope) (https://project-name.test/telescope) [Dev]
82+
- [laravel/dusk](https://laravel.com/docs/dusk) [Dev]
83+
- [laravel/breeze](https://laravel.com/docs/starter-kits#laravel-breeze) [Dev]
84+
- [laravel/telescope](https://laravel.com/docs/telescope) (https://project-name.test/telescope) [Dev]
8785
- [Option] TALL Stack
8886
- [livewire/livewire](https://livewire.laravel.com/)
8987
- [filament/filament:"^3.0-stable"](https://filamentphp.com/docs/3.x/panels/installation) (https://project-name.test/admin)
@@ -124,7 +122,6 @@ This way, I don't have to worry about the things I've mentioned, plus I gain the
124122
- [Graphite](https://graphite.dev/)
125123

126124
- Essentials
127-
- [cypress](https://www.cypress.io/)
128125
- [laravel-wave](https://github.com/qruto/laravel-wave)
129126
- [tailwindcss](https://tailwindcss.com/) [Dev]
130127
- [postcss](https://github.com/postcss/postcss) [Dev]
@@ -219,7 +216,6 @@ There's an option not to remove Breeze views and routes during the creation scri
219216
- [Laravel](https://laravel.com)
220217
- [FilamentPHP](https://filamentphp.com)
221218
- [Pest](https://pestphp.com)
222-
- [Cypress](https://cypress.io)
223219
- [Spatie](https://github.com/spatie)
224220
- ( [Tech Stack List](#tech-stack-list) )
225221
- ( [VSC Extensions](./files/.opinionated/extensions.md) )

files/.opinionated/extensions.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
- [m1guelpf.better-pest](https://github.com/m1guelpf/better-pest) [Not on VSX yet | [Market Link](https://marketplace.visualstudio.com/items?itemName=m1guelpf.better-pest)]
1313
- [calebporzio.better-phpunit](https://github.com/calebporzio/better-phpunit) [Not on VSX yet | [Market Link](https://marketplace.visualstudio.com/items?itemName=calebporzio.better-phpunit)]
1414
- [wmaurer.change-case](https://github.com/wmaurer/vscode-change-case)
15+
- [naumovs.color-highlight](https://github.com/enyancc/vscode-ext-color-highlight)
1516
- [Equinusocio.vsc-community-material-theme](https://github.com/material-theme/vsc-community-material-theme) (Darker High Contrast)
1617
- [moshfeu.compare-folders](https://github.com/moshfeu/vscode-compare-folders)
1718
- [cshum.convert-newline-list-to-array](https://github.com/colinshum/vsc-newline-to-array) [Not on VSX yet | [Market Link](https://marketplace.visualstudio.com/items?itemName=cshum.convert-newline-list-to-array)]
@@ -55,7 +56,7 @@
5556
- [albert.TabOut](https://github.com/albertromkes/tabout)
5657
- [bradlc.vscode-tailwindcss](https://github.com/tailwindlabs/tailwindcss-intellisense)
5758
- [austenc.tailwind-docs](https://github.com/austenc/vscode-tailwind-docs) [Not on VSX yet | [Market Link](https://marketplace.visualstudio.com/items?itemName=austenc.tailwind-docs)]
58-
- [bourhaouta.tailwindshades](https://github.com/bourhaouta/vscode-tailwindshades) [Not on VSX yet | [Market Link](https://marketplace.visualstudio.com/items?itemName=bourhaouta.tailwindshades)]
59+
- [GoodM4ven.vsc-tailwind-shades-generator](https://github.com/GoodM4ven/vsc-tailwind-shades-generator)
5960
- [jkjustjoshing.vscode-text-pastry](https://github.com/jkjustjoshing/vscode-text-pastry) [Not on VSX yet | [Market Link](https://marketplace.visualstudio.com/items?itemName=jkjustjoshing.vscode-text-pastry)]
6061
- [Gruntfuggly.todo-tree](https://github.com/Gruntfuggly/todo-tree)
6162
- [hideoo.trailing](https://github.com/HiDeoo/trailing)

files/.opinionated/settings.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -124,17 +124,17 @@
124124
["TailwindMerge::merge\\(\\[?([^\\]]*)\\]?\\)", "'([^']*)'"]
125125
],
126126
// [INTEL - Laraphense]
127-
"Laraphense.disableAssetCompletion": true,
128-
"Laraphense.disableBladeCompletion": true,
129-
"Laraphense.disableEloquentCompletion": true,
130-
"Laraphense.disableConfigCompletion": true,
131-
"Laraphense.disableEnvCompletion": true,
132-
"Laraphense.disableMiddlewareCompletion": true,
133-
"Laraphense.disableRouteCompletion": true,
134-
"Laraphense.disableTranslationCompletion": true,
135-
"Laraphense.disableValidationCompletion": true,
136-
"Laraphense.disableViewCompletion": true,
137-
"Laraphense.expandLeadingNamespaceSeparator": false,
127+
"laraphense.disableAssetCompletion": true,
128+
"laraphense.disableBladeCompletion": true,
129+
"laraphense.disableEloquentCompletion": true,
130+
"laraphense.disableConfigCompletion": true,
131+
"laraphense.disableEnvCompletion": true,
132+
"laraphense.disableMiddlewareCompletion": true,
133+
"laraphense.disableRouteCompletion": true,
134+
"laraphense.disableTranslationCompletion": true,
135+
"laraphense.disableValidationCompletion": true,
136+
"laraphense.disableViewCompletion": true,
137+
"laraphense.expandLeadingNamespaceSeparator": false,
138138
// // [INTEL - Alpine.js IntelliSense]
139139
// "alpine-intellisense.settings.languageScopes": "blade", // TODO uncomment when intel shows within elements only
140140
}

files/_stubs/tall/vite.config.js

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,11 @@ export default defineConfig({
1515
'resources/css/filament/admin/theme.css',
1616
'resources/js/app.js',
1717
],
18-
refresh: [
19-
"app/Filament/**/*.php",
20-
"app/Forms/**/*.php",
21-
"app/Infolists/**/*.php",
22-
"app/Livewire/**/*.php",
23-
"app/Providers/Filament/**/*.php",
24-
"app/Tables/**/*.php",
25-
"app/View/Components/**/*.php",
26-
"lang/**",
27-
"resources/lang/**",
28-
"routes/**",
29-
],
18+
refresh: false,
19+
}),
20+
livewire({
21+
refresh: ['resources/css/app.css'],
3022
}),
31-
livewire(),
3223
],
3324
server: {
3425
host,

files/tailwind.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export default {
2929
'dark-background-1': colors.gray['800'],
3030
'dark-background-2': colors.gray['900'],
3131
primary: {
32+
50: '#e8f7fb',
3233
100: '#cdf0f6',
3334
200: '#9be2ee',
3435
300: '#6ad3e5',
@@ -38,8 +39,10 @@ export default {
3839
700: '#046d7f',
3940
800: '#024955',
4041
900: '#01242a',
42+
950: '#001519',
4143
},
4244
'dark-primary': {
45+
50: '#fee7e7',
4346
100: '#fcdada',
4447
200: '#f9b4b4',
4548
300: '#f58f8f',
@@ -49,6 +52,7 @@ export default {
4952
700: '#8f2929',
5053
800: '#601b1b',
5154
900: '#300e0e',
55+
950: '#1a0707',
5256
},
5357
},
5458
transitionProperty: {},

scripts/create.sh

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,7 @@ echo -e "\nInstalling Composer packages..." >&3
268268
cd $PROJECTS_DIRECTORY/$escaped_project_name
269269

270270
# Breeze package
271-
composer require --dev laravel/breeze laravel/telescope --with-all-dependencies -n $conditional_quiet
271+
composer require --dev laravel/breeze --with-all-dependencies -n $conditional_quiet
272272

273273
if [ "$laravel_stack" = "tall" ]; then
274274
stack="blade"
@@ -305,7 +305,7 @@ if [ "$is_localized" == true ]; then
305305
fi
306306

307307
# Dev Packages
308-
composer require laracasts/cypress --dev -n $conditional_quiet
308+
composer require laravel/dusk laravel/telescope --dev -n $conditional_quiet
309309

310310
# Non-dev Packages...
311311
composer require --with-all-dependencies -n league/flysystem-aws-s3-v3:"^3.0" predis/predis laravel/scout spatie/laravel-medialibrary spatie/laravel-data spatie/eloquent-sortable spatie/laravel-sluggable spatie/laravel-tags spatie/laravel-settings blade-ui-kit/blade-icons spatie/laravel-permission qruto/laravel-wave gehrisandro/tailwind-merge-laravel artesaos/seotools $conditional_quiet
@@ -380,19 +380,6 @@ fi
380380
# Enforce permissions
381381
sudo $lara_stacker_dir/scripts/helpers/permit.sh $PROJECTS_DIRECTORY/$escaped_project_name
382382

383-
# ! Currently vulnerable!
384-
# TODO add to the others when stable
385-
# Cypress
386-
387-
sudo -i -u $USERNAME bash <<EOF
388-
cd $PROJECTS_DIRECTORY/$escaped_project_name
389-
if $cancel_suppression; then
390-
$BUN add --force --dev cypress 2>&1
391-
else
392-
$BUN add --force --dev cypress 2>&1 >/dev/null
393-
fi
394-
EOF
395-
396383
# * =======================
397384
# * Package Configurations
398385
# * =====================
@@ -404,6 +391,29 @@ php artisan migrate $conditional_quiet
404391

405392
echo -e "\nRan the migrations initially." >&3
406393

394+
# Laravel Dusk
395+
php artisan dusk:install $conditional_quiet
396+
397+
echo -e "\nInstalled Laravel Dusk and its standalone ChromeDriver." >&3
398+
399+
if [ "$use_pest" == true ]; then
400+
sed -i'' -e '/use Tests\\TestCase;/a\
401+
use Tests\\DuskTestCase;' ./tests/Pest.php
402+
sed -i'' -e '/uses(TestCase::class, RefreshDatabase::class)->in('\''Feature'\'');/a\
403+
uses(DuskTestCase::class, RefreshDatabase::class)->in('\''Browser'\'');' ./tests/Pest.php
404+
sed -i '/function something()/,/}/c\function booleanHead(array $booleanArray): bool\n{\n return filter_var(head($booleanArray), FILTER_VALIDATE_BOOLEAN);\n}' ./tests/Pest.php
405+
406+
if [ "$is_localized" == true ]; then
407+
sed -i '/use Illuminate\\Foundation\\Testing\\TestCase as BaseTestCase;/a\use Mcamara\\LaravelLocalization\\LaravelLocalization;' ./tests/TestCase.php
408+
sed -i '/use CreatesApplication;/a\
409+
\n protected function setUp(): void\n {\n parent::setUp();\n\n $this->withoutVite();\n }\n\n protected function tearDown(): void\n {\n putenv(LaravelLocalization::ENV_ROUTE_KEY);\n\n parent::tearDown();\n }\n\n protected function identifyLocalizedRoutesForLocale(string $locale)\n {\n self::tearDown();\n\n putenv(LaravelLocalization::ENV_ROUTE_KEY . \"=\" . $locale);\n\n self::setUp();\n }' ./tests/TestCase.php
410+
fi
411+
412+
rm ./tests/Browser/Pages/HomePage.php
413+
414+
echo -e "\nIntegrated Laravel Dusk with Pest and added a helper method!" >&3
415+
fi
416+
407417
# TaliwindCSS framework
408418
mkdir -p ./resources/css/packages
409419

@@ -426,11 +436,6 @@ php artisan vendor:publish --provider="TailwindMerge\Laravel\TailwindMergeServic
426436

427437
echo -e "\nConfigured TailwindCSS framework and TailwindMerge package." >&3
428438

429-
# Cypress framework
430-
php artisan cypress:boilerplate $conditional_quiet
431-
432-
echo -e "\nConfigured front-end testing with Cypress." >&3
433-
434439
# Laravel Data package
435440
php artisan vendor:publish --provider="Spatie\LaravelData\LaravelDataServiceProvider" --tag="data-config" $conditional_quiet
436441

0 commit comments

Comments
 (0)