Skip to content

Commit

Permalink
chore: make scripts compatible with yarn 2
Browse files Browse the repository at this point in the history
  • Loading branch information
Leksat committed Jun 2, 2021
1 parent dd61f6f commit eddd2e9
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 2 deletions.
4 changes: 2 additions & 2 deletions apps/silverback-drupal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
"license": "MIT",
"private": true,
"scripts": {
"prepare": "if php -v && [[ -z $LAGOON ]]; then composer install && yarn setup; fi",
"prepare": "./scripts/prepare.sh",
"start": "source .envrc && cd web && php -S 127.0.0.1:8888 .ht.router.php",
"setup": "source .envrc && silverback setup",
"setup": "./scripts/setup.sh",
"clear": "source .envrc && drush cr",
"test": "composer install && bash vendor/bin/silverback-test",
"export-content": "web/modules/custom/silverback_gatsby_test/export_content.sh"
Expand Down
9 changes: 9 additions & 0 deletions apps/silverback-drupal/scripts/prepare.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

set -ex

if php -v && [[ -z $LAGOON ]]
then
composer install
yarn setup
fi
9 changes: 9 additions & 0 deletions apps/silverback-drupal/scripts/setup.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

set -e

source .envrc

set -x

silverback setup

0 comments on commit eddd2e9

Please sign in to comment.