Currently, the Drupal Artifact Builder, as its description purposes, it wraps an already build Drupal site. This means that before creating the artifact, some steps like composer install + npm compilation must be done before running the artifact building.
In the other side, when the command is run in local developer environments, the artifact generated usually includes more changes than needed. For example, it includes some files that are ignored and accumulated in the site. ALso, there are ignored files that are also copied, enlarging the time spent on it (s.e.: #3).
Furthermore, the artifact is currently being generated in the root folder the command is executed. This is not a problem except when there are unexpected errors that makes the command exit before finishing and clean it up. It would be optimal to generate the artifact into a temporary folder.
In this issue I would like to discuss these issues so we can make the Drupal artifact builder able to:
- Run library download / asset compilation steps before generating the artifact.
- Perform a clean artifact building: instead of using the current codebase, shallow clone the self repository in a temporary folder.
- Generate the artifact into a temporary folder.
@rsanzante @jorgetutor what do you think?
Currently, the Drupal Artifact Builder, as its description purposes, it wraps an already build Drupal site. This means that before creating the artifact, some steps like composer install + npm compilation must be done before running the artifact building.
In the other side, when the command is run in local developer environments, the artifact generated usually includes more changes than needed. For example, it includes some files that are ignored and accumulated in the site. ALso, there are ignored files that are also copied, enlarging the time spent on it (s.e.: #3).
Furthermore, the artifact is currently being generated in the root folder the command is executed. This is not a problem except when there are unexpected errors that makes the command exit before finishing and clean it up. It would be optimal to generate the artifact into a temporary folder.
In this issue I would like to discuss these issues so we can make the Drupal artifact builder able to:
@rsanzante @jorgetutor what do you think?