imagex / swat-project-template
Minimal Drupal application based on the Drupal Recommended Project
Requires
- php: >=8.3
- composer/installers: ^1.9
- cweagans/composer-patches: ^1.6
- drupal/core-composer-scaffold: ^10
- drupal/core-recommended: ^10
- imagex/swat: ~6.1.0
- wikimedia/composer-merge-plugin: ^2.0
This package is auto-updated.
Last update: 2025-04-25 20:37:27 UTC
README
This is a base template for use with SWAT, if you are unsure what that means, you probably don't need this repository ;)
A description of the project and it's deliverables here, along with the existing site URLS.
☁️ Hosting
Details about where the site is hosted and any special considerations.
Environments
Environment | Branch | Main purpose | Description |
---|---|---|---|
QA | feature/X | ImageX QA | Tugboat env, QA on PR's (optional). |
DEV | master | ImageX DEV | Contains code approved by Lead Dev. |
STAGE | stage | Client UAT | Contains code approved on DEV by QA. |
PRODUCTION | prod | Content entry | Code and Database/Content that will be launched |
🔥 DEVELOPMENT
Brief explanation of development special considerations.
Workflow
- Developer works on a feature branch created from master
- Developer create a Pull Request from feature-branch -> master
- ....
- ...
- ..
- .
Getting Started
List out the commands needed for a developer to start this project. (i.e. clone xx, fin init, etc)
Full remote sync
Run this command to sync the sanitized remote database, files, and configuration:
fin sync
🛠 Integrations and Custom Bits
Describe anything of note that a developer might find useful.
drush my:command --isgreat
🎨 Frontend
See FRONTEND.md for more information.
✅ Validation
Linters
fin yarn lint # Run code linters.
fin yarn lint:fix # Run code linters and automatically fix issues.
IMPORTANT: Validation errors prevent remote pushes and cause CI/CD pipelines failures.
Spellcheck
fin yarn spellcheck # Run spellcheck.
fin yarn spellcheck:dictionary # Generate new project dictionary words.
IMPORTANT: Generate project dictionary words only after running the spellchecker.