-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow running project-specific Drall
- Loading branch information
Showing
16 changed files
with
88 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
PATH=$(echo "$PATH" | sed -e "s/:\/opt\/drupal\/vendor\/bin//") | ||
export PATH="/opt/drall/.docker/main/bin:$PATH" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
dir=$(pwd) | ||
while [ "$dir" != "/" ]; do | ||
if [ -x "$dir/vendor/bin/drall" ]; then | ||
"$dir/vendor/bin/drall" "$@" | ||
break | ||
fi | ||
dir=$(dirname "$dir") | ||
done | ||
|
||
if [ "$dir" == "/" ]; then | ||
echo "Drall executable not found." | ||
exit 1 | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/usr/bin/env bash | ||
|
||
dir=$(pwd) | ||
while [ "$dir" != "/" ]; do | ||
if [ -x "$dir/vendor/bin/drush" ]; then | ||
"$dir/vendor/bin/drush" "$@" | ||
break | ||
fi | ||
dir=$(dirname "$dir") | ||
done | ||
|
||
if [ "$dir" == "/" ]; then | ||
echo "Drush executable not found." | ||
exit 1 | ||
fi |
8 changes: 1 addition & 7 deletions
8
.docker/main/composer.json → .docker/main/drupal/composer.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"description": "Project that contains Drall without Drupal.", | ||
"type": "project", | ||
"license": "GPL-2.0-or-later", | ||
"repositories": [ | ||
{ | ||
"type": "composer", | ||
"url": "https://packages.drupal.org/8" | ||
}, | ||
{ | ||
"type": "path", | ||
"url": "/opt/drall", | ||
"options": { | ||
"symlink": false | ||
} | ||
} | ||
], | ||
"require": { | ||
"jigarius/drall": "*" | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"config": { | ||
"sort-packages": true, | ||
"allow-plugins": { | ||
"composer/installers": true | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters