nrel / opencommunications
Open Communications profile for NREL/DOE Drupal 8 sites.
Installs: 3 439
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 7
Forks: 1
Open Issues: 0
Language:JavaScript
Type:drupal-profile
Requires
- composer/installers: ^1.9
- cweagans/composer-patches: ^1.7
- drupal/admin_toolbar: ^3.4
- drupal/advagg: ^6.0@alpha
- drupal/blazy: ^2.1
- drupal/bootstrap_layouts: ^5.2
- drupal/core-composer-scaffold: ^9.5
- drupal/core-project-message: ^9.5
- drupal/core-recommended: ^9.5.10
- drupal/ctools: ^4.0
- drupal/embed: ^1.4
- drupal/entity_browser: ^2.5
- drupal/entity_embed: ^1.1
- drupal/entity_reference_revisions: ^1.9
- drupal/field_group: ^3.2
- drupal/google_tag: ^1.4
- drupal/health_check: ^3.0
- drupal/honeypot: ^2.0
- drupal/image_widget_crop: ^2.3
- drupal/imagemagick: ^3.3
- drupal/log_stdout: ^1.3
- drupal/memcache: ^2.3
- drupal/metatag: ^1.17
- drupal/module_filter: ^4.0
- drupal/paragraphs: ^1.12
- drupal/password_policy: ^4.0
- drupal/pathauto: ^1.8
- drupal/recaptcha: ^3.0
- drupal/seckit: ^2.0
- drupal/security_review: ^2.0
- drupal/ses_mailer: 1.x-dev
- drupal/smtp: ^1.0
- drupal/sophron: ^1.3
- drupal/stage_file_proxy: ^2.0
- drupal/username_enumeration_prevention: ^1.2
- drupal/video_embed_field: ^2.5
- drupal/webform: 6.2.0-beta6
- drush/drush: ^10.6
- fileeye/mimemap: ^2.0
- phpmailer/phpmailer: ^6.5
Requires (Dev)
- drupal/devel: ^5.0
- kint-php/kint: ^3.3
Conflicts
- dev-main
- 9.3.22.x-dev
- 9.3.19.x-dev
- 9.3.18.x-dev
- 4.1.18.x-dev
- 4.1.17.x-dev
- 4.1.16.x-dev
- 4.1.15.x-dev
- 4.1.14.x-dev
- 4.1.13.x-dev
- 4.1.9.x-dev
- 4.1.5.x-dev
- 4.1.3.x-dev
- dev-d10
- dev-d10-drush12
- dev-d10-drush12-10-3-0
- dev-d10-drush12-10-2
- dev-origin/d10-drush12-10-2
- dev-d10-sws
- dev-removepatches
- dev-d10-drush11
- dev-d10-drush13
- dev-no-ses
- dev-upgrade-drush11-ctools3
- dev-upgrade-drush11
- dev-upgrade
- dev-ctools
- dev-4.1.18-decoupled
- dev-remove-non-d9
- dev-updates
- dev-nrel_cyber
This package is auto-updated.
Last update: 2024-11-22 19:48:06 UTC
README
#1 Introduction The master branch of this profile is no longer a sub-profile of the Lightning profile.
The master branch is being used to build a simplified Drupal 9 profile for our own purposes, which will not implement the same out-of-the-box functionality currently in the Drupal 8 profile, and that does not have the dependency on Lightning.
The stable Drupal 8 versions of this profile are still available on branches 4.1.3, 4.1.5 and 4.1.9, but will reach end-of-life in November 2021 when Lightning reaches end-of-life at the same time as Drupal 8 reaches end-of-life.
#2 Description of Drupal 9 profile
This profile provides composer.json / composer.lock starter files (in assets/scaffold/files/composer/) that can be copied into a new project folder to scaffold that project. Running composer install against those composer files does the following:
- scaffolds the site under docroot/
- symlink web/ to docroot/
- create a drupal_config/config/ folder if one doesn't exist and copy the starter config from this profile into that folder
- the modules that are enabled and configured by this profile are:
- admin_toolbar
- admin_toolbar_links_access_filter
- admin_toolbar_tools
- advagg
- advagg_css_minify
- advagg_js_minify
- advagg_mod
- advagg_validator
- big_pipe
- blazy
- blazy_ui
- block
- bootstrap_layouts
- breakpoint
- captcha
- ckeditor
- config
- contextual
- crop
- ctools
- datetime
- dblog
- dynamic_page_cache
- editor
- embed
- entity_browser
- entity_embed
- entity_reference_revisions
- field
- field_group
- field_ui
- file
- file_mdm
- filter
- google_tag
- help
- honeypot
- image
- image_widget_crop
- imagemagick
- layout_builder
- layout_discovery
- link
- media
- media_library
- memcache
- memcache_admin
- menu_link_content
- menu_ui
- metatag
- node
- options
- page_cache
- password_policy
- password_policy_character_types
- password_policy_characters
- password_policy_history
- password_policy_length
- password_policy_username
- path
- path_alias
- rdf
- recaptcha
- seckit
- security_review
- smtp
- sophron
- system
- taxonomy
- text
- token
- toolbar
- update
- user
- username_enumeration_prevention
- video_embed_field
- video_embed_media
- views_ui
- webform
- webform_ui
- pathauto
- views
- paragraphs
- opencommunications
- the modules that are enabled and configured by this profile are:
- invokes the scaffolding for opencommunications which does the following:
- copies the starter .gitignore, settings.php files and ses_mailer services yaml from assets/scaffold/files to their respective project locations.
- The Blazy module (https://www.drupal.org/project/blazy) does not specify a dependency on the Blazy library (https://github.com/dinbror/blazy), so the Blazy library is included as a scaffolding asset. If the Blazy library needs to be updated download the latest version to assets/scaffold/files/blazy
- applies known outstanding patches to core and the included contrib modules
#3 Usage
##3.1 Create and install a new site from the profile
- mkdir my_new_project
- cd my_new_project
- wget https://raw.githubusercontent.com/NREL/opencommunications/master/assets/scaffold/files/composer/composer.json
- wget https://raw.githubusercontent.com/NREL/opencommunications/master/assets/scaffold/files/composer/composer.lock
- edit composer.json - global replace new_project with my_new_project, and site_name with my_new_site_name
- composer install
- drush si opencommunications --existing-config --account-name=account-name --account-mail=account-mail --account-pass=account-pass --db-url=db-driver://db-su:db-su-pw@db-host:db-port/db-name -y
- drush cset system.site name "my_new_site_name" -y
- drush cset system.site mail no_reply@example.com -y
- Move database connection details that get added at the end of the existing setting.php into settings.local.php
##3.2 Optional
##3.2.1 reCaptcha
- Create a recaptcha account for the site
- set the reCaptcha site and secret keys:
- drush cset recaptcha.settings site_key new_site_key -y
- drush cset recaptcha.settings secret_key new_secret_key -y
- drush cset recaptcha.settings site_key new_site_key -y
- drush cset captcha.settings enabled_default 1 -y
##3.2.2 Google Tag Manager
- set the id on the 'default' GTM container
- drush cset google_tag.container.default container_id GTM-xxxxxx -y
- drush cset google_tag.container.default container_id GTM-xxxxxx -y
##4 Update an existing site that uses the profile
- composer update nrel/opencommunications
#5 Updating this profile
##5.1 Update a package
- composer update vendor/package
- add, commit and push the changes
##5.2 Update the template composer.lock
- create a dummy project
- mkdir dummy_project
- cd dummy_project
- wget https://raw.githubusercontent.com/NREL/opencommunications/main/assets/scaffold/files/composer/composer.json
- mkdir dummy_project
- update the composer.lock
- composer install
- copy the composer.lock into NREL/opencommunications/master/assets/scaffold/files/composer/composer.lock
- add, commit and push the changes to composer.lock