Skip to content

Commit

Permalink
Merge branch 'main' into rector-2-cq
Browse files Browse the repository at this point in the history
  • Loading branch information
sreichel committed Sep 23, 2024
2 parents 7f09ae1 + 9827b1f commit 0fc002f
Show file tree
Hide file tree
Showing 8 changed files with 739 additions and 24 deletions.
19 changes: 19 additions & 0 deletions .ddev/commands/web/localdev
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
#!/bin/bash

## Description: create local development directory
## Usage: localdev
## Example: ddev localdev <git-url>

if [ ! -d ".localdev/" ]
then
mkdir ".localdev/"
echo "Directory created."
fi

if ! grep -q "./.localdev/*" composer.json; then
php vendor/bin/composer config repositories.local '{"type": "path", "url": "./.localdev/*", "canonical": false}'
echo "Patched composer.json."
fi

cd ".localdev/" || exit
git clone "$@"
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
},
"require-dev": {
"ext-xmlreader": "*",
"composer/composer": "^2.7",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0.0",
"friendsofphp/php-cs-fixer": "^3.4",
"macopedia/phpstan-magento1": "^1.0.5",
Expand Down
Loading

0 comments on commit 0fc002f

Please sign in to comment.