Skip to content

Upgrading jQuery lightGallery in the Framework

Jim Reevior edited this page Aug 14, 2018 · 1 revision

Upgrading jQuery lightGallery in the Framework

When a new version of lightGallery is available, the update will not automatically be pulled into the framework. This should be a deliberate action with proper testing. lightGallery is controlled with Grunt. Here are the steps to update lightGallery and lightGallery thumbnail in the framework:

1. Check for a package update

npm update lightgallery lg-thumbnail

What this does: Checks if the lightgallery and lg-thumbnail packages have an available update and installs it.

2. Upgrade lightGallery using Grunt

grunt update_lightgallery

What this does:

  • Copies the new distributions of lightGallery and lg-thumbnail into the js/vendor folder.

3. Commit Changed Files

There are two directories that will need all changes committed:

  • js/vendor/lg-thumbnail
  • js/vendor/lightgallery

There are two files that may contain changes:

  • package.json (if the grunt-modernizr package has an update).
  • package-lock.json (if the grunt-modernizr package has an update).
  • functions.php (the version constants will be changed).

Welcome to Responsive!

Get started

Configuration

Build child themes

Sass

Javascript

PHP

Shortcodes

Templates

GitHub

Tasks

Contribute to the framework

Code Examples

BU Developer Resources

Clone this wiki locally