drupal-pyramid / drupal_pyramid_theme
Drupal Pyramid 项目主题。
该包的官方仓库似乎已不存在,因此该包已被冻结。
dev-master
2018-03-10 16:49 UTC
This package is auto-updated.
Last update: 2021-03-10 13:07:48 UTC
README
此主题用于我们位于 Drupal Pyramid 的主要项目中。
它旨在通过 Composer 添加,并通过 Git Subtree 更新。
入门
- 将此主题作为依赖项添加到您的 Drupal 主项目中
composer require drupal-pyramid/pyramid
- 将自定义自动加载脚本添加到您的 composer.json 文件中:
"scripts": {
"...",
"theme-build": "DrupalPyramidTheme\\composer\\ScriptHandler::build",
"theme-update": "DrupalPyramidTheme\\composer\\ScriptHandler::update",
"post-install-cmd": [
"...",
"@theme-build"
],
"post-update-cmd": [
"...",
"@theme-update"
]
}
如果您想知道为什么您必须自己添加自动加载脚本,请参阅 此线程。
- 使用 Git Subtree 将此主题作为子项目添加
git remote add -f pyramid ssh://git@github.com:drupal-pyramid/pyramid.git
git subtree add --prefix web/modules/custom/pyramid pyramid master --squash
git fetch pyramid master
git subtree pull --prefix web/modules/custom/pyramid pyramid master --squash
- 为此主题做出贡献
git add .
git commit -m "Your commit message"
git subtree push --prefix=web/modules/custom/pyramid pyramid master
构建和资源
我们使用自定义 Composer 脚本来生成资源(请参阅 composer.json
)。
"scripts": {
"drupal-pyramid-theme-build": "DrupalPyramidTheme\\ScriptHandler::build",
"drupal-pyramid-theme-update": "DrupalPyramidTheme\\ScriptHandler::update",
"post-install-cmd": [
"@drupal-pyramid-theme-build"
],
"post-update-cmd": [
"@drupal-pyramid-theme-update"
]
}