Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
gwleuverink committed Jan 10, 2024
1 parent 211ca66 commit c1cd87d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
11 changes: 7 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,16 @@
"prepare": "@php vendor/bin/testbench package:discover --ansi",
"build": "@php vendor/bin/testbench workbench:build --ansi",
"dusk:install-chromedriver": "@php vendor/bin/dusk-updater detect --auto-update --ansi",
"setup-bun": [
"cd ./workbench && npm i",
"cp ./workbench/jsconfig.json ./vendor/orchestra/testbench-core/laravel"

"setup-workbench": [
"cd ./workbench && npm ci",
"ln -sf $PWD/workbench/jsconfig.json ./vendor/orchestra/testbench-core/laravel/jsconfig.json",
"ln -sf $PWD/workbench/node_modules/ ./vendor/orchestra/testbench-core/laravel/node_modules",
"ln -sf $PWD/workbench/resources/js/ ./vendor/orchestra/testbench-core/laravel/resources/js"
],

"serve": [
"@setup-bun",
"@setup-workbench",
"Composer\\Config::disableProcessTimeout",
"@build",
"@php vendor/bin/testbench serve"
Expand Down
12 changes: 1 addition & 11 deletions testbench.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,4 @@ workbench:
build: []
assets: []
sync:
# Link Bun binary & packages used in testing
- from: ./workbench/node_modules
to: ./vendor/orchestra/testbench-core/laravel/node_modules

# Link local javascript resource dir
- from: ./workbench/resources/js
to: ./vendor/orchestra/testbench-core/laravel/resources/js

# Link config - (problematic, swapped for cp in serve script)
# - from: ./workbench/jsconfig.json
# to: ./vendor/orchestra/testbench-core/laravel
# Setup done via composer script instead: composer setup-workbench
1 change: 1 addition & 0 deletions workbench/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules

0 comments on commit c1cd87d

Please sign in to comment.