E524 Update Drupal.gitignore with upstream conventions: prefix /web for dr… by lpalgarvio · Pull Request #3386 · github/gitignore · GitHub
[go: up one dir, main page]

Skip to content

Update Drupal.gitignore with upstream conventions: prefix /web for dr…#3386

Merged
bdougie merged 1 commit intogithub:mainfrom
lpalgarvio:update-drupal.gitignore-with-upstream-conventions
Dec 11, 2021
Merged

Update Drupal.gitignore with upstream conventions: prefix /web for dr…#3386
bdougie merged 1 commit intogithub:mainfrom
lpalgarvio:update-drupal.gitignore-with-upstream-conventions

Conversation

@lpalgarvio
Copy link
Contributor

Pull Request

Update

  • Template - Update existing Drupal.gitignore template

Details

Update Drupal.gitignore with upstream conventions:

  • prefix /web for drupal code
  • remove deprecated simpletest directory
  • allow project composer.json|lock at root
  • add /vendor, composer, robo, drush and drupal scripts to root

These scripts are all part of project development cycles of Drupal and are all PHP based:

Not including JavaScript tools like Yarn, NPM, Gulp, Grunt, Bower or Ruby tools like SASS and Compass because although very popular and widely used, they are based on different programming languages and incur in much more complexity than adding a few paths and they are also alternatives to each others.

The rationale behind this is the move to officially support AND recommend Composer in Drupal projects: https://www.drupal.org/docs/develop/using-composer

Relevant links being:

This patch conforms and updates the outdated notions that were based on old Drupal 7 community standards and the provided Drupal 8 .gitignore for non-composer installs.

Drupal 8 still includes and maintains a .gitignore for simplified non-composer installs inside the tarball file, however this is since many years (since Drupal 6 times, back then recommending Drush, then later composer in late Drupal 7 cycle) the non-preferred method of using and deploying Drupal.

…upal code; remove deprecated simpletest directory; allow project composer.json|lock at root; add /vendor, composer, robo, drush and drupal scripts to root
@bdougie
Copy link
Contributor
bdougie commented Dec 11, 2021

Merging this based on the assumption new Drupal users will be using Drupal 8 moving forward. If folks find this to break older workflows, I suggest they open a community PR for Drupal-legacy.

@bdougie bdougie merged commit a182474 into github:main Dec 11, 2021
@lpalgarvio lpalgarvio deleted the update-drupal.gitignore-with-upstream-conventions branch December 12, 2021 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

0