Talking Drupal Newsletter

Share this post

Talking Drupal Newsletter #393

talkingdrupal.substack.com

Talking Drupal Newsletter #393

Apr 5, 2023
1
Share

#393 Drupal & Javascript

Today we are talking about Drupal & JavaScript with Andy Blum.

Topics

  • Talk at FLDC

  • Important Drupal JS features

  • Drupal behaviors

  • Why use JS

  • Users with no JS

  • jQuery

  • Front end framework

  • Bigpipe

  • JS components single folder components

  • Future of JS in Drupal

Resources

  • DrupalCon Pittsburgh training

  • Top-10 libraries slides

  • Drupal JavaScript Modernization Initiative

  • Drupal issue to replace jQuery with vanilla JS

  • What is bigpipe?

  • Bigpipe in Drupal

  • State of JS 2022

  • Talking Drupal 386 - Drupal Vs Wordpress

  • Devel accessibility tool devel_a11y

  • Bigpipe when it was first added showing the contrast between bigpipe and no bigpipe John’s Talk at FLDC

  • Nic’s Talk at NERD Summit

Guests

Andy Blum - @andy_blum

Hosts

Nic Laflin - www.nLighteneddevelopment.com @nicxvan
John Picozzi - www.epam.com @johnpicozzi
Kat Shaw - drupal.org/u/katannshaw @katannshaw

Module of the Week

with Martin Anderson-Clutz - @mandclu

Real-time SEO for Drupal
Provides content authors immediate feedback about how optimized their content is against specific keywords.


Upcoming Episodes

#395 Kat’s Show. Recording April 11.
#396 Drupal Security Mark Shropshire & Benji Fisher. Recording April 18.
#397 Semantic Versioning with Michael Miles. Recording April 25.
#398 D9 Book with Selwyn Polit. Recording May 2.

Submit your questions on the #alkingDrupal channel on Drupal Slack or DM us on twitter @talkingdrupal.


Drops of Drupal

#005 Multisite Module Clean Up

During the lifetime of a project, you need to remove modules that are not being used. Using drush pm:list you can find disabled non-core modules, which are candidates for composer remove. Module cleanup can be challenging for a multisite because one site may have a module installed and another may not.

This Drop provides an approach for gathering the information you need to make multisitecomposer remove decisions. The script below exports a list of disabled modules of each site to the .csv file. It also combines the results into a single .csv file.

The script below uses Lando for a local environment, drush and Miller (https://miller.readthedocs.io) for manipulating the CVS file.

#!/bin/bash

# List of drush aliases for each multisite
SiteList="site1 site2 site3 site4"

# Loop through the list of sites
for site in $SiteList; do
 # Run drush pm:list againts dev environment and export to a .csv file
 lando drush @$site.dev pm:list --status=disabled --fields="package,name,status" --no-core --format=csv > $site.csv
 # Remove last line of .cvs file, a drush disconnect message, you may not need this
 sed -i '$d' $site.csv
 # Use miller to add a column with the site name and append to single .csv
 mlr --csv put '$Site = "'$site'"' $site.csv >> all-sites.csv
done

The resulting all-sites.csv will look similar to:

With a few formulas, you can summarize how many times a module is disabled. In this example, there are four websites; therefore, any module disabled four times is a candidate for removal. Modules crop and crop_media_entity are not enabled on any of the multisites.

You can learn more about Miller in the Module of the Week:


Minifigure of the Week

by Nic Laflin

8831-3
Happy Easter!
This week I would like to share 8831-3 Bunny Suit Guy! This is the 3rd minifigure from Series 7. This is one of my favorite categories of CMFs animal costumes! Released in 2012 you can see the carrot the bunny carries everywhere.


Contact Us

@talkingdrupal on Twitter

#talkingdrupal on Drupal Slack

show@talkingdrupal.com

1
Share
Comments
Top
New
Community

No posts

Ready for more?

© 2023 Talking Drupal
Privacy ∙ Terms ∙ Collection notice
Start WritingGet the app
Substack is the home for great writing