claudiu-cristea/drupal-project
最新稳定版本:1.0.0-alpha2
Composer 安装命令:
composer require claudiu-cristea/drupal-project
包简介
Allows to keep all Drupal code outside of web root
README 文档
README
Allows to keep all Drupal code outside of web root.
The package provides a Composer plugin that scaffolds the custom code directories and settings for a Drupal project. The main idea is to keep all custom code outside the web root.
When running Composer install or update, the following directories and files will be created, if they don't exist. Under web root symlinks are created in the proper location. For instance src/Drupal/Modules is symlinked as web/modules/custom, files/public is symlinked as web/sites/default/files and so on.
Directory/file Symlinked as
├─ files
│ ├─ private
│ ├─ public -> web/sites/default/files
│ └─ .gitignore Both, private and public, are ignored
...
├─ src
│ └─ Drupal
│ ├─ Modules -> web/modules/custom
│ ├─ Profiles -> web/profiles/custom
│ ├─ Settings
│ │ ├─ settings.php -> web/sites/default/settings.php
│ │ ├─ settings.local.php -> web/sites/default/settings.local.php
│ │ └─ .gitignore settings.local.php is ignored
│ └─ Themes -> web/themes/custom
The webroot directory (web/) is also added to the project's .gitignore if it isn't yet there.
统计信息
- 总下载量: 27
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0-or-later
- 更新时间: 2025-10-20