jonpugh / maintenance
Tools for Drupal and Composer maintenance.
Installs: 0
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:composer-plugin
This package is auto-updated.
Last update: 2024-11-03 16:51:17 UTC
README
This project is here to help maintain Drupal & Composer projects by providing common tools for cleaning up codebases.
I go through the same 10-20 steps on every project I get to bring it up to speed. There must be a way to get my life back.
- @jonpugh
Features
- Provides generic documentation for maintaining composer projects.
- Provides boilerplate code for reference, such as common composer.json configs.
TODO:
- Provide composer command for executing a list of checks on a project.
- Provide automation to fix things where possible.
Site Maintenance Checklists
This file will document the tasks needed to get a site into a supportable state.
This will help provide a roadmap for tools to make this process easier.
Composer
-
Composer Quality
- Relevant Project metadata. Remove templated name, description, support, etc.
- [] Add specific items and examples.
- Update config & extras to match relevant upstream composer project template:'
- @TODO: List common projects here
- Remove vendor and contributed files.
- Ensure .gitignores are in place.
- Ensure
composer install
does not cause any git changes.
- Relevant Project metadata. Remove templated name, description, support, etc.
-
Composer Updates
- Update locked dependencies.
rm composer.lock && composer i
composer require
as many libraries as possible to get latest required version.composer remove
libraries that are required bydrupal/vardot_support
.- Remove all patches that do not apply unless required.
- Update locked dependencies.
-
Support Package
- Move all dependencies to
drupal/vardot_support
. Remove them from parent project to avoid conflicts or accidentally setting a lower version. composer require
will silently require a lessor version if your project dependencies are set. For example, ifdrupal/raven
ordrupal/site_audit
are already installed at a certain version,drupal/vardot_support:^1.0@dev
will be used instead of^1.1@dev
..- To find out why a module is requiring the wrong version, try requiring the right one:
composer require drupal/vardot_support:^1.1@dev
. If it fails, composer will tell you why.
- Move all dependencies to
-
Documentation & README
- Define README requirements: 2. Project summary. 3. Environments 4. Teams 5. Assets 6. Management 7. etc.
- Replace default README files with relevant project metadata.
- Find or create a README generator that can use composer.json metadata.
- Create template README file to ensure completeness.
-
Settings.php
- @TODO: Come up with a standardization plan.
-
Drupal
- @TODO: Define best practices/quality for Drupal level.