manaticr / platformsh-drupal-template
Project template for Drupal 9 projects with a relocated document
Installs: 118
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 6
Forks: 0
Open Issues: 0
Type:project
pkg:composer/manaticr/platformsh-drupal-template
Requires
- composer/installers: ^1.9
 - cweagans/composer-patches: ^1.6
 - drupal/admin_toolbar: ^2.3
 - drupal/better_exposed_filters: ^4.0
 - drupal/config_split: ^1.4
 - drupal/core-composer-scaffold: ^9
 - drupal/core-project-message: ^9
 - drupal/core-recommended: ^9
 - drupal/devel: ^4.0
 - drupal/environment_indicator: ^4.0
 - drupal/focal_point: ^1.5
 - drupal/google_analytics: ^3.1
 - drupal/honeypot: ^2.0
 - drupal/image_style_quality: ^1.4
 - drupal/layout_builder_browser: ^1.1
 - drupal/layout_builder_iframe_modal: ^1.0
 - drupal/media_entity_facebook: ^3.0@beta
 - drupal/media_entity_instagram: ^3.0
 - drupal/media_entity_twitter: ^2.4
 - drupal/metatag: ^1.14
 - drupal/paragraphs: ^1.12
 - drupal/pathauto: ^1.8
 - drupal/quicklink: ^1.3
 - drupal/rabbit_hole: ^1.0
 - drupal/recaptcha: ^3.0
 - drupal/redirect: ^1.6
 - drupal/redis: ^1.5
 - drupal/search_api_solr: ^4.1
 - drupal/seckit: ^2.0
 - drupal/shs: ^1.0
 - drupal/smtp: ^1.0
 - drupal/stage_file_proxy: ^1.0
 - drupal/svg_image: ^1.14
 - drupal/twig_tweak: ^2.6
 - drupal/xmlsitemap: ^1.0
 - drush/drush: ^10.3
 - kint-php/kint: ^3.3
 - kporras07/composer-symlinks: dev-master
 - manaticr/bloom: ^1.0
 - platformsh/config-reader: ^2.4
 
Requires (Dev)
- chirripo/chirripo: ^1.0
 - drupal/coder: ^8.3
 - drupal/core-dev: ^9
 - squizlabs/php_codesniffer: ^3.5
 
Conflicts
README
Template based on drupal/recomended-project to create drupal projects to be deployed in Platformsh, also includes:
Dependencies
- Docker
 - Docker Compose
 - Chirripo Launcher
 - Chirripo Proxy
 
Getting Started
Prepare for local development
This template uses chirripo as local environment.
Generate local settings files (run this command at root of the project):
./scripts/local-settings.sh
Install the requiered dependencies:
composer install --ignore-platform-reqs npm install
Run the local environemnt (Chirripo Launcher should be installed in order to execute chirripo command globally):
chirripo start
Install the local site (run this command at root of the project):
./scripts/site-install.sh
Enable and configure the Chirripo Proxy.
Start the proxy:
chirripo proxy-up
Import the existing site
Download database in the root of the project, then change the name of the file by db_site.sql.gz
Import the databese:
./scripts/install-from-db.sh
Add the site URL in the  settings/settings.local.php file:
$config['stage_file_proxy.settings']['origin'] = 'SITE_URL';
Installed Stuff
You can change any variable defined in the .env file to make adjustments to the provided setup. You can edit the file named docker-compose.override.yml in the root of the project to make more advanced customizations.
Solr
Core is created as collection1.
Solr address is solr.
Path is /.
Testing
This project uses npm to run gulp tasks.
To run drupalcs, phplint and eslint tasks:
npm run test
To compile/transpile Javascript es6:
npm run build:js
To run lighthouse test in front page:
npm run lighthouse
To run lighthouse in a custom url:
node_modules/.bin/lhci autorun --collect.url=CUSTOM_URL