GithubHelp home page GithubHelp logo

Comments (4)

tobiasbaehr avatar tobiasbaehr commented on August 14, 2024

You can do it so:
(preserve-paths is for derhasi/composer-preserve-paths)

"installer-paths": {
      "web/": ["type:drupal-core"],
      "web/sites/all/modules/custom/my_custom_module/": ["vendor/my_custom_module"],
      "web/sites/all/themes/custom/my_custom_theme/": ["vendor/my_custom_theme"],
      "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/modules/custom",
      "web/sites/all/themes/contrib",
      "web/sites/all/themes/custom",
      "web/sites/all/libraries",
      "web/sites/all/drush",
      "web/sites/default/settings.php",
      "web/sites/default/files"
]

from drupal-project.

dsdeiz avatar dsdeiz commented on August 14, 2024

I guess this approach would be a little bit difficult to manage i.e. you need to provide a composer.json file for your custom modules and you'll need to explicitly list each one of them inside the installer-paths block.

from drupal-project.

greg-1-anderson avatar greg-1-anderson commented on August 14, 2024

Answered accurately; closing.

from drupal-project.

hawkeyetwolf avatar hawkeyetwolf commented on August 14, 2024

To make it a little easier, you can put all your custom modules in one repo, same for themes. That way you don't need to have separate repo's and composer.json entries for each individual custom theme/module.

from drupal-project.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.