-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/multi-check-pack
- Loading branch information
Showing
3 changed files
with
5,094 additions
and
0 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,22 @@ | ||
<?php | ||
|
||
namespace Violinist\ComposerUpdater\Tests\Integration; | ||
|
||
use Violinist\ComposerUpdater\Updater; | ||
use Violinist\ComposerUpdater\Exception\ComposerUpdateProcessFailedException; | ||
|
||
class PackageToCheckTest extends IntegrationBase | ||
{ | ||
protected $package = 'drupal/captcha'; | ||
protected $directory = 'drupal-captcha'; | ||
|
||
protected function createUpdater($directory) | ||
{ | ||
if (version_compare(phpversion(), "7.3.0", "<")) { | ||
self::expectException(ComposerUpdateProcessFailedException::class); | ||
} | ||
$updater = new Updater($directory, 'drupal/recaptcha'); | ||
$updater->setPackageToCheckHasUpdated($this->package); | ||
return $updater; | ||
} | ||
} |
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,98 @@ | ||
{ | ||
"name": "drupal/recommended-project", | ||
"description": "Project template for Drupal 9 projects with a relocated document root", | ||
"type": "project", | ||
"license": "GPL-2.0-or-later", | ||
"homepage": "https://www.drupal.org/project/drupal", | ||
"support": { | ||
"docs": "https://www.drupal.org/docs/user_guide/en/index.html", | ||
"chat": "https://www.drupal.org/node/314178" | ||
}, | ||
"repositories": [ | ||
{ | ||
"type": "composer", | ||
"url": "https://packages.drupal.org/8" | ||
} | ||
], | ||
"require": { | ||
"composer/installers": "^1.9", | ||
"drupal/core-composer-scaffold": "^9.5", | ||
"drupal/core-project-message": "^9.5", | ||
"drupal/core-recommended": "^9.5", | ||
"drupal/recaptcha": "^3.2" | ||
}, | ||
"conflict": { | ||
"drupal/drupal": "*" | ||
}, | ||
"minimum-stability": "stable", | ||
"prefer-stable": true, | ||
"config": { | ||
"allow-plugins": { | ||
"composer/installers": true, | ||
"drupal/core-composer-scaffold": true, | ||
"drupal/core-project-message": true, | ||
"dealerdirect/phpcodesniffer-composer-installer": true | ||
}, | ||
"sort-packages": true | ||
}, | ||
"extra": { | ||
"violinist": { | ||
"allow_update_indirect_with_direct": true | ||
}, | ||
"drupal-scaffold": { | ||
"locations": { | ||
"web-root": "web/" | ||
} | ||
}, | ||
"installer-paths": { | ||
"web/core": [ | ||
"type:drupal-core" | ||
], | ||
"web/libraries/{$name}": [ | ||
"type:drupal-library" | ||
], | ||
"web/modules/contrib/{$name}": [ | ||
"type:drupal-module" | ||
], | ||
"web/profiles/contrib/{$name}": [ | ||
"type:drupal-profile" | ||
], | ||
"web/themes/contrib/{$name}": [ | ||
"type:drupal-theme" | ||
], | ||
"drush/Commands/contrib/{$name}": [ | ||
"type:drupal-drush" | ||
], | ||
"web/modules/custom/{$name}": [ | ||
"type:drupal-custom-module" | ||
], | ||
"web/profiles/custom/{$name}": [ | ||
"type:drupal-custom-profile" | ||
], | ||
"web/themes/custom/{$name}": [ | ||
"type:drupal-custom-theme" | ||
] | ||
}, | ||
"drupal-core-project-message": { | ||
"include-keys": [ | ||
"homepage", | ||
"support" | ||
], | ||
"post-create-project-cmd-message": [ | ||
"<bg=blue;fg=white> </>", | ||
"<bg=blue;fg=white> Congratulations, you’ve installed the Drupal codebase </>", | ||
"<bg=blue;fg=white> from the drupal/recommended-project template! </>", | ||
"<bg=blue;fg=white> </>", | ||
"", | ||
"<bg=yellow;fg=black>Next steps</>:", | ||
" * Install the site: https://www.drupal.org/docs/installing-drupal", | ||
" * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html", | ||
" * Get support: https://www.drupal.org/support", | ||
" * Get involved with the Drupal community:", | ||
" https://www.drupal.org/getting-involved", | ||
" * Remove the plugin that prints this message:", | ||
" composer remove drupal/core-project-message" | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.