-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
See #74
- Loading branch information
Showing
6 changed files
with
112 additions
and
4 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
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
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,44 @@ | ||
{ | ||
"description": "A Drupal project that refers to the local package 'webflo/foo'.", | ||
"type": "project", | ||
"license": "GPL-2.0-or-later", | ||
"repositories": { | ||
"drupal": { | ||
"type": "composer", | ||
"url": "https://packages.drupal.org/8" | ||
}, | ||
"drupal-finder": { | ||
"type": "path", | ||
"url": "../../../" | ||
}, | ||
"symlink-package": { | ||
"type": "path", | ||
"url": "../package", | ||
"options": { | ||
"symlink": true | ||
} | ||
} | ||
}, | ||
"require": { | ||
"composer/installers": "^2.0", | ||
"drupal/core": "^10", | ||
"webflo/foo": "*" | ||
}, | ||
"conflict": { | ||
"drupal/drupal": "*" | ||
}, | ||
"minimum-stability": "dev", | ||
"prefer-stable": true, | ||
"config": { | ||
"allow-plugins": { | ||
"composer/installers": true | ||
} | ||
}, | ||
"extra": { | ||
"installer-paths": { | ||
"web/core": [ | ||
"type:drupal-core" | ||
] | ||
} | ||
} | ||
} |
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,17 @@ | ||
{ | ||
"name": "webflo/foo", | ||
"description": "The package that depends on Drupal Finder.", | ||
"repositories": { | ||
"drupal-finder": { | ||
"type": "path", | ||
"url": "../../../" | ||
} | ||
}, | ||
"require": { | ||
"webflo/drupal-finder": "*" | ||
}, | ||
"bin": [ | ||
"symlink-package" | ||
], | ||
"minimum-stability": "dev" | ||
} |
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,14 @@ | ||
#!/usr/bin/env php | ||
<?php | ||
|
||
require __DIR__ . '/vendor/autoload.php'; | ||
|
||
use DrupalFinder\DrupalFinderComposerRuntime; | ||
|
||
$finder = new DrupalFinderComposerRuntime(); | ||
|
||
echo json_encode([ | ||
'getComposerRoot' => $finder->getComposerRoot(), | ||
'getVendorDir' => $finder->getVendorDir(), | ||
'getDrupalRoot' => $finder->getDrupalRoot(), | ||
]); |