Repository navigation
Releases: Metadrop/drupal-artifact-builder
Releases · Metadrop/drupal-artifact-builder
Release list
3.1.0-rc1
Release candidate to:
- Use git archive for git managed codebases
- Use rsync for non-git managed codebases
3.0.1
Bring back compatibility with older symfony librarries, used in Drupal 10 projects. See 996333b
3.0.0
What's Changed
With the version 3.0.0, now the artifact generation have important new features:
- The artifact is generated from a clean folder.
- It is possible to run commands before the command generate adding
commandsinto the configuration.
- Allow excluding files
- Allow the fully clean generation of artifact
- Issue #24: Minor fixes by @omarlopesino in #26
Full Changelog: 2.1.5...3.0.0
Breaking changes
- Now it is required to add the branch parameter to all commands.
- Before, the composer libraries and npm packages were copied from the local repository. Now it is done independently and it must be configured. Check upgrade instructions for more details.
Upgrade from 2.x to 3.x
To be able to bring composer libraries and compile the custom theme, configure commands in .drupal-artifact-builder.yml.
Example:
```yaml
commands:
- composer install --no-dev
- cd web/themes/custom/foo/ && npm install && npm run production
```
3.0.0-RC2
3.0.0-RC1 - Refactor and responsability for each step redefined
Changelog
v3.0.0-RC1
Breaking changes
- Commands restructured:
createnow only copies files to the artifact folder;githandles cloning, committing, and pushing. Thebuildcommand still orchestrates both. assertArtifactContentIsCleanremoved: the pre-build check that blocked execution when the working tree had uncommitted changes no longer exists.FILES_TO_CLEANconstant removed: the hardcoded list of files to strip (CHANGELOG.txt, LICENSE.txt, .eslintrc.json, etc.) is gone. File exclusion is now driven by.gitignorelogic.ARTIFACT_FOLDERconstant moved toConfigInterface: the default artifact output folder is nowConfigInterface::DEFAULT_ARTIFACT_FOLDERand is configurable.
New features
--artifact-folderoption: the destination folder for the artifact can now be overridden via CLI (default remainsdeploy-artifact/).--branch/-boption: artifact target branch can be specified on the command line.runCommandInFolder(): new helper to run shell commands in an arbitrary working directory, replacing ad-hoccdprefixes.- Improved
.gitignoregeneration: logic for building the artifact's.gitignorehas been refactored and made more reliable. - Process timeout increased: shell command timeout raised from 300 s to 600 s.
Internal / housekeeping
- Type hints added to
configure(),initialize(),runCommand(), and other methods.
2.1.5
- Fix errors where markdown files where not being deleted.
- Issue #23: Safe error when drupal-artifact-builder is run without repository defined.
- Make it clear in README drupal-artifact-builder does not currently compile or download libraries.
Prevent commiting .md files
2.1.4 Prevent deleting markdown files used by contrib modules
2.1.2
What's Changed
- Issue #21: Fatal error is occurring while preparing the commit to the… by @omarlopesino in #22
Full Changelog: 2.1.1...2.1.2
2.1.1
2.1.0
- Forcibly add to git files under web that are required in any drupal deployment (only when they exist):
- index.php
- autoload.php
- update.php
- web.config
- robots.txt
- Forcibly add to git files configured under include.