Comments (4)
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.
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.
Answered accurately; closing.
from drupal-project.
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)
- Issue with vlucas/phpdotenv and Composer 2.2 HOT 3
- Installs drush 10.6 which is end-of-life HOT 5
- Add composer's allow-plugins for Drupal 7 HOT 2
- Getting "Webmozart\PathUtil\Path" not found creating a Drupal 10 project HOT 6
- Update the Composer template to support creating Drupal 10 sites HOT 3
- installing different core branches - match to drupal-project branch? HOT 1
- Deprecation Notice: drupal_rewrite_settings() is deprecated in drupal:10.1.0 in ScriptHandler.php HOT 6
- Offering help with repository maintenance HOT 4
- Display language selector based on IP
- Drupal 11 support HOT 1
- CI does not run for PRs and forks
- [META] Issues and PRs cleanup HOT 5
- Add installer paths for drupal custom modules and themes HOT 1
- Normalize composer.json
- Add composer normalize to CI HOT 1
- Composer version requirements are not checked against Drupal version-related requirements HOT 1
- Add release drafter
- Drush internal commands do not inherit $_ENV HOT 1
- Hardcoded config dir breaks "drush updb" HOT 2
- Switching to tilde constraints for controlled updates HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from drupal-project.