Skip to content

Allow excluding files #25

@omarlopesino

Description

@omarlopesino

Problem / motivation

Currently there is no option to exclude folders. This issue has been raised before and it has been postponed until deciding.

One real problem is that it has been found that node_modules folder is present in some projects. This folder is added in the generated gitignore , but for some reason it is still being commited. That is probably rrelated by it has been commited before adding the node_modules to gitignore. In that case, it is needed to check a way to ensure the folder is always deleted.

Available solutions

  • Allow configuring exclude in .drupal-artifact-builder.yml with the list of folders that want to be excluded. Ideally it should allow wildcards.
  • Use the current .gitignore generated to delete the files. It is possible , in the case files are commited, to just add a warning in the output but not delete them, to prevent unexpected incidences.
  • Delete always any node_modules folders under web/themes/custom. That is a good option only if npm is never run in production, which is the most common situation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions