All Projects → drupal-composer → preserve-paths

drupal-composer / preserve-paths

Licence: other
A composer plugin for keeping specified files and directories when installing/updating new composer packages. Can be used to supported nested packages.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to preserve-paths

Composer Changelogs
📓 Display better summary after Composer update
Stars: ✭ 540 (+1900%)
Mutual labels:  composer-plugin
Composer Notifier
💬 Display desktop notification after Composer install / update
Stars: ✭ 42 (+55.56%)
Mutual labels:  composer-plugin
Composer Custom Directory Installer
A composer plugin, to install differenty types of composer packages in custom directories outside the default composer default installation path which is in the vendor folder.
Stars: ✭ 117 (+333.33%)
Mutual labels:  composer-plugin
Composer Merge Plugin
Merge one or more additional composer.json files at Composer runtime
Stars: ✭ 718 (+2559.26%)
Mutual labels:  composer-plugin
Composer Dropin Installer
Use composer for installing dropin dependencies
Stars: ✭ 30 (+11.11%)
Mutual labels:  composer-plugin
Imposter Plugin
Composer plugin that wraps all composer vendor packages inside your own namespace. Intended for WordPress plugins.
Stars: ✭ 90 (+233.33%)
Mutual labels:  composer-plugin
Grumphp
Submitting bugs and feature requests
Stars: ✭ 3,679 (+13525.93%)
Mutual labels:  composer-plugin
Composer Preload
Preload your sweet sweet code to opcache with a composer command, making your code faster to run.
Stars: ✭ 173 (+540.74%)
Mutual labels:  composer-plugin
Store Plugin Installer
Install store.shopware.com Plugins automatically in your Shopware Composer Setup
Stars: ✭ 37 (+37.04%)
Mutual labels:  composer-plugin
Composer Cleaner
Victor The Cleaner: removes unnecessary files from vendor directory
Stars: ✭ 114 (+322.22%)
Mutual labels:  composer-plugin
Awesome Composer
😎 A curated awesome list for Composer, Packagist, Satis, Plugins, Scripts, Composer related resources, tutorials.
Stars: ✭ 738 (+2633.33%)
Mutual labels:  composer-plugin
Composer Assets Plugin
Composer plugin for copying of frontend assets into public directory.
Stars: ✭ 20 (-25.93%)
Mutual labels:  composer-plugin
Skrub
A package to remove junk from Composer installations and trim build sizes.
Stars: ✭ 91 (+237.04%)
Mutual labels:  composer-plugin
Composer Normalize
🎵 Provides a composer plugin for normalizing composer.json.
Stars: ✭ 602 (+2129.63%)
Mutual labels:  composer-plugin
Foxy
A fast, reliable, and secure NPM/Yarn bridge for Composer
Stars: ✭ 137 (+407.41%)
Mutual labels:  composer-plugin
Composer Registry Manager
🛠 🔨 Composer registry manager that help to easily switch to the composer repository you want.
Stars: ✭ 448 (+1559.26%)
Mutual labels:  composer-plugin
Studio
A workbench for developing Composer packages.
Stars: ✭ 1,021 (+3681.48%)
Mutual labels:  composer-plugin
Composer Patches
Applies a patch from a local or remote file to any package that is part of a given composer project. Patches can be defined both on project and on package level. Optional support for patch versioning, sequencing, custom patch applier configuration and composer command for testing/troubleshooting patches.
Stars: ✭ 196 (+625.93%)
Mutual labels:  composer-plugin
Private Composer Installer
Composer install helper outsourcing sensitive keys from the package URL into environment variables
Stars: ✭ 168 (+522.22%)
Mutual labels:  composer-plugin
Beetbox
Pre-provisioned L*MP stack
Stars: ✭ 94 (+248.15%)
Mutual labels:  composer-plugin

Composer preserve paths

Composer plugin for preserving paths while installing, updating or uninstalling packages.

This way you can:

  • provide custom files or directories that will not be overwritten on composer install or composer update
  • place packages within the directory of another package (using a composer installer like composer/installers or davidbarratt/custom-installer)

Installation

Simply install the plugin with composer: composer require drupal-composer/preserve-paths

Configuration

For configuring the paths you need to set preserve-paths within the extra of your root composer.json.

{
    "extra": {
        "preserve-paths": [
          "web/sites/all/modules/contrib",
          "web/sites/all/themes/contrib",
          "web/sites/all/libraries",
          "web/sites/all/drush"
        ]
      }
}

Example

An example composer.json using composer/installers:

{
  "repositories": [
    {
      "type": "composer",
      "url": "https://packages.drupal.org/7"
    }
  ],
  "require": {
    "composer/installers": "^1.2",
    "drupal-composer/preserve-paths": "0.1.*",
    "drupal/views": "3.*",
    "drupal/drupal": "7.*"
  },
  "config": {
    "vendor-dir": "vendor"
  },
  "extra": {
    "installer-paths": {
      "web/": ["type:drupal-core"],
      "web/sites/all/modules/contrib/{$name}/": ["type:drupal-module"],
      "web/sites/all/themes/contrib/{$name}/": ["type:drupal-theme"],
      "web/sites/all/libraries/{$name}/": ["type:drupal-library"],
      "web/sites/all/drush/{$name}/": ["type:drupal-drush"],
      "web/profiles/{$name}/": ["type:drupal-profile"]
    },
    "preserve-paths": [
      "web/sites/all/modules/contrib",
      "web/sites/all/themes/contrib",
      "web/sites/all/libraries",
      "web/sites/all/drush",
      "web/sites/default/settings.php",
      "web/sites/default/files"
    ]
  }
}
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].