Skip to content

Commit

Permalink
Only build EP if needed
Browse files Browse the repository at this point in the history
  • Loading branch information
felipeelia committed Jan 11, 2024
1 parent 341cf5f commit af0dae0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions bin/build-elasticpress.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

if [ $COMPOSER_DEV_MODE == 1 ]; then
cd vendor/elasticpress
composer install
npm pkg set scripts.prepare=" "
npm ci
npm run build
fi
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"test": "phpunit",
"setup-local-tests": "bash bin/install-wp-tests.sh epl_wp_test root password 127.0.0.1 latest true",
"post-autoload-dump": [
"cd vendor/elasticpress && composer install && npm pkg set scripts.prepare=\" \" && npm ci && npm run build"
"./bin/build-elasticpress.sh"
]
},
"extra": {
Expand Down

0 comments on commit af0dae0

Please sign in to comment.