Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Robo components into packagist packages #572

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 14 additions & 18 deletions RoboFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,14 @@
declare(strict_types = 1);

use Drupal\Core\DrupalKernel;
use GizraRobo\PhpcsTasks;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we have the \name be use Gizra\RoboPhpcsTasks;?

use GizraRobo\ReleaseNotesTasks;
use GizraRobo\BootstrapTasks;
use GizraRobo\DeploymentTasks;
use GizraRobo\ElasticSearchTasks;
use GizraRobo\ThemeTasks;
use GizraRobo\TranslationTasks;
use Robo\Tasks;
use RoboComponents\BootstrapTrait;
use RoboComponents\DeploymentTrait;
use RoboComponents\ElasticSearchTrait;
use RoboComponents\PhpcsTrait;
use RoboComponents\ReleaseNotesTrait;
use RoboComponents\ThemeTrait;
use RoboComponents\TranslationManagement\ExportFromConfig;
use RoboComponents\TranslationManagement\ImportToConfig;
use RoboComponents\TranslationManagement\ImportToUi;
use Symfony\Component\HttpFoundation\Request;

$GLOBALS['drupal_autoloader'] = require_once 'web/autoload.php';
Expand All @@ -22,15 +20,13 @@
*/
class RoboFile extends Tasks {

use BootstrapTrait;
use DeploymentTrait;
use ElasticSearchTrait;
use ExportFromConfig;
use ImportToConfig;
use ImportToUi;
use PhpcsTrait;
use ReleaseNotesTrait;
use ThemeTrait;
use BootstrapTasks;
use DeploymentTasks;
use ElasticSearchTasks;
use TranslationTasks;
use PhpcsTasks;
use ReleaseNotesTasks;
use ThemeTasks;

/**
* Defines a list of languages installed on the site.
Expand Down
12 changes: 7 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,13 @@
"drupal/upgrade_status": "^4.0",
"drupal/username_enumeration_prevention": "^1.3",
"drush/drush": "^11",
"gizra/robo-bootstrap": "^0.1.1",
"gizra/robo-deployment": "^0.1.0",
"gizra/robo-elasticsearch": "^0.1.0",
"gizra/robo-phpcs": "^0.1.0",
"gizra/robo-release-notes": "^0.1.0",
"gizra/robo-theme": "^0.1.0",
"gizra/robo-translation": "^0.1.0",
"longwave/laminas-diactoros": "^2.14",
"npm-asset/anchor-js": "^5.0",
"npm-asset/select2": "^4.0",
Expand Down Expand Up @@ -108,11 +115,6 @@
},
"minimum-stability": "dev",
"prefer-stable": true,
"autoload": {
"psr-4": {
"RoboComponents\\": "./robo-components/"
}
},
"config": {
"sort-packages": true,
"allow-plugins": {
Expand Down
Loading