Automattic / Automattic/jetpack

Jetpack Carousel: automate the generation of the custom swiper.js library build

Open
#20,164 0 comments 0 reactions 0 assignees View on GitHub
[Feature] Carousel Enhancement
Dominant language
PHP
Stars
1.8k
Forks
898
Avg merge
1d 18h
Merged PRs (30d)
774

Description

#### Describe the solution you'd like
Work is currently [underway to use the swiper.js library to provide the slider functionality within the Carousel module](https://github.com/Automattic/jetpack/pull/20107).

Currently [a custom build is being generated](https://github.com/Automattic/swiper) of the library in order to shave 100KB off the uncompressed library size. The disadvantage of this approach is that there are no automatic notification of dependency updates as there would be if the full library was included as an npm dependency.

Ideally we need a way to get the reduced size of the custom build, with an automated process for generating new release builds when the dependency is updated.

Contributor guide

Open the contributing guide

Research direction

Review the custom swiper.js build linked in the issue and the Carousel work in PR 20107 first. Determine how dependency updates can trigger a reduced-size release build; done when updated swiper.js dependencies automatically produce the custom library build.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.