openresources / resourcehub-distribution
资源中心发行版
Requires
- bower-asset/mmenu: ^8.5.24
- drupal/admin_toolbar: ^3.0
- drupal/allowed_formats: ^2.0
- drupal/bartik: ^1.0
- drupal/classy: ^1.0
- drupal/color: ^1.0
- drupal/crop: ^2.1
- drupal/default_content: ^2.0@alpha
- drupal/entity_reference_facet_link: ^2.0
- drupal/extlink: ^1.6
- drupal/facets: ^3.0@beta
- drupal/field_group: ^3.1
- drupal/gin: ^3.0@alpha
- drupal/gin_toolbar: ^1.0@beta
- drupal/google_tag: ^1.3
- drupal/image_widget_crop: ^2.3
- drupal/linkit: ^6.0
- drupal/masquerade: ^2.0@beta
- drupal/menu_admin_per_menu: ^1.3
- drupal/metatag: ^1.16
- drupal/oembed_providers: ^2.1
- drupal/paragraphs: ^1.12
- drupal/pathauto: ^1.6
- drupal/rabbit_hole: ^1.0@beta
- drupal/redirect: ^1.5
- drupal/responsive_menu: ^4.0
- drupal/role_delegation: ^1.1
- drupal/search_api: ^1.19
- drupal/shariff: ^2.0
- drupal/simple_sitemap: ^4.1
- drupal/simplify: ^2.1
- drupal/styleguide: ^2.0@beta
- drupal/view_unpublished: ^1.1
- npm-asset/shariff: ^3.2.1
- npm-asset/superfish: ^1.7.10
- openresources/resourcehub_rest: ^1.0@alpha
Replaces
- npm-asset/fortawesome--fontawesome-free: *
- npm-asset/jquery: *
- 1.x-dev
- 1.0.0-beta7
- 1.0.0-beta6
- 1.0.0-beta5
- 1.0.0-beta4
- 1.0.0-beta3
- 1.0.0-beta2
- 1.0.0-beta1
- dev-feature/195-drupal-10-support
- dev-feature/190-update-modules-to-supported-versions
- dev-feature/169-json-api
- dev-168-move-composer-js-library-configuration-into-distribution-2
- dev-feature/assets
- dev-feature/tweaks
- dev-133-theme-customisation-extend-enhance
- dev-feature/refactor-facetjs
- dev-22-as-a-site-administrator-i-want-to-add-a-site-manager
- dev-feature/76-see-audio-component
- dev-feature/60-add-linkit-to-wysiwyg
- dev-feature/styling-tweaks
- dev-set-sast-config-1
- dev-feature/41-theme
This package is auto-updated.
Last update: 2024-09-06 15:19:30 UTC
README
资源中心
催化剂资源中心是一个基于Drupal的发行版,旨在帮助中小型慈善机构向关键受众发布资源和指导材料。本文件主要面向想要在本地机器上测试产品或安装、部署和托管产品的开发者。
入门
系统要求
资源中心已设计为通过Composer安装,并且内置了对Lando的支持,因此以下描述的最直接设置将需要以下内容在您的系统上安装
快速入门:本地项目设置(测试用)
在安装了Composer和Lando后,您应该能够打开命令行并运行以下命令以获取本地版本的产品,以便进行测试或开发。您应该能够复制并粘贴以下所有行到命令行中。
composer create-project --stability dev --ignore-platform-reqs --no-install --remove-vcs openresources/resourcehub-project:^1.0 resourcehub;
cd resourcehub;
lando start; lando drush si resourcehub install_configure_form.install_demo=1 -y;
这将执行以下任务
- 使用Composer安装所有代码和依赖项。
- 启动Lando容器以运行代码
- 运行Drupal站点安装并启用演示内容模块。
- 提供管理员用户名和密码。
如果您然后在浏览器中导航到以下任一URL,您应该看到该站点
http://resourcehub.lndo.site:8000/
https://resourcehub.lndo.site/
快速入门:本地项目设置(开发者)
如果您在本地上进行开发,您可能希望保留.git版本控制文件夹以便于使用。
composer create-project --stability dev --ignore-platform-reqs --no-install openresources/resourcehub-project:^1.0 resourcehub
cd resourcehub
lando start; lando drush si resourcehub install_configure_form.install_demo=1 -y; lando drush uli;
这将执行以下任务
- 使用Composer安装所有代码和依赖项。
- 启动Lando容器以运行代码
- 运行Drupal站点安装并启用演示内容模块。
- 生成一次性登录链接并登录为总体管理员账户(用户1)。
本地安装Drupal
通过UI安装
- 导航到https://resourcehub.lndo.site
- 在“选择配置文件”步骤中选择“资源中心”
- 完成Drupal配置步骤
通过命令行安装
- 移动到项目目录
- 运行
lando drush si resourcehub
安装演示内容
如果您安装资源中心以测试它,可以选择自动创建一些演示内容,这可以通过在UI中勾选“安装演示内容”复选框或通过传递Drush的附加参数来完成。
lando drush si resourcehub install_configure_form.install_demo=1
如果您已经安装了资源中心,则可以简单地启用ResourceHub Demo Content
模块。
运行测试
以下命令将运行安装配置文件提供的测试。
lando phpunit
代码分析
本项目包含PHPCS和PHPSTAN集成,允许开发者检查其代码与Drupal样式和标准兼容性。
lando sniff
将检查安装配置文件与Drupal代码风格兼容性。使用lando phix
,您可能能够通过PHPCBF自动修复这些问题。
lando stan
将检查您的代码与Drupal标准的兼容性,包括对弃用API的使用。
前端工具
CSS工具基于Laravel Mix。
在themes/resourcehub_theme/scss
中监视文件更改并运行browserSync,运行lando npx mix watch
。