Skip to content

Commit d96e65d

Browse files
authored
chore(deps): upgrade dependencies, including tailwind@4 (#6)
- Replace tailwind.config.js with CSS-first @theme in styles/app.css - Switch CLI to @tailwindcss/cli (v4 dropped the bundled binary) - Update templates for v4 transform refactor (translate-* now writes to the `translate` property, so `transform-none` no longer resets it) - Update deploy workflow to use Node 24 and latest actions with SHAs - Add dependabot config for GitHub Actions - Rename package to plugins.jquery.com-static to match repo name after migrating to jquery org
1 parent 7b41cc3 commit d96e65d

14 files changed

Lines changed: 2023 additions & 2782 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: "/"
5+
schedule:
6+
interval: monthly
7+
8+
# Group all dependabot version update PRs into one
9+
groups:
10+
github-actions:
11+
applies-to: version-updates
12+
patterns:
13+
- "*"

‎.github/workflows/deploy.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
DEPLOY_BRANCH: gh-pages
3333
steps:
3434
- name: Checkout
35-
uses: actions/checkout@v4
35+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3636
with:
3737
submodules: recursive
3838

@@ -43,9 +43,9 @@ jobs:
4343
# Clone and checkout existing branch, or initialise with a new and empty branch
4444
git clone --depth 5 --branch "${DEPLOY_BRANCH}" "https://github.com/${GITHUB_REPOSITORY}.git" . || git init -b "${DEPLOY_BRANCH}"
4545
46-
- uses: actions/setup-node@v4
46+
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
4747
with:
48-
node-version: 20
48+
node-version: 24
4949

5050
- name: Install Node.js dependencies
5151
run: npm ci

‎_includes/footer.njk‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
<footer class="bg-gray-dark w-full flex justify-center items-end border-t border-t-blue-light min-h-[200px] -mt-6">
2-
<div class="text-footer-text text-xs pt-12 pb-4 px-4 w-full max-w-screen-xl flex flex-col justify-between items-center gap-8 lg:flex-row-reverse">
1+
<footer class="bg-gray-dark w-full flex justify-center items-end border-t border-t-blue-light min-h-50 -mt-6">
2+
<div class="text-footer-text text-xs pt-12 pb-4 px-4 w-full max-w-7xl flex flex-col justify-between items-center gap-8 lg:flex-row-reverse">
33
<ul class="flex flex-row justify-center flex-wrap gap-4">
44
<li>
55
<a class="link-footer" href="https://github.com/jquery">

‎_includes/header.njk‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<header class="flex w-full justify-center border-t border-t-gray-dark bg-gradient-to-b from-[#5c5a5a] from-[1px] via-[#4d4d4d] via-[1px] to-gray-dark border-b border-b-blue-light z-50">
2-
<div class="flex flex-row justify-between items-center px-6 w-full max-w-screen-xl">
1+
<header class="flex w-full justify-center border-t border-t-gray-dark bg-linear-to-b from-[#5c5a5a] from-[1px] via-list via-[1px] to-gray-dark border-b border-b-blue-light z-50">
2+
<div class="flex flex-row justify-between items-center px-6 w-full max-w-7xl">
33
<ul class="flex flex-row items-end">
44
<li>
5-
<a href="https://jquery.com/" title="jQuery" class="link-nav link-nav-mobile bg-gradient-to-b from-[#102d49] to-background !border-x-blue-light border-t border-t-blue-light mb-[-1px] h-[32px]">
5+
<a href="https://jquery.com/" title="jQuery" class="link-nav link-nav-mobile bg-linear-to-b from-[#102d49] to-background border-x-blue-light! border-t border-t-blue-light -mb-px h-8">
66
{% include "icons/jquery.svg" %}
77
</a>
88
</li>
@@ -28,7 +28,7 @@
2828
</li>
2929
</ul>
3030
<input id="jq-menutoggle" type="checkbox" class="peer/menu hamburger-toggle sr-only"/>
31-
<label aria-label="Toggle Menu" for="jq-menutoggle" class="hamburger-lines cursor-pointer flex lg:hidden flex-col justify-between relative w-[18px] h-[14px]">
31+
<label aria-label="Toggle Menu" for="jq-menutoggle" class="hamburger-lines cursor-pointer flex lg:hidden flex-col justify-between relative w-4.5 h-3.5">
3232
<span class="hamburger-line"></span>
3333
<span class="hamburger-line"></span>
3434
<span class="hamburger-line"></span>

‎_includes/layouts/base.njk‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<body class="flex flex-col h-full items-center">
1515
<a href="#skip" class="sr-only">Skip to main content</a>
1616
{% include "header.njk" %}
17-
<div class="flex flex-col w-full grow p-4 max-w-screen-xl">
17+
<div class="flex flex-col w-full grow p-4 max-w-7xl">
1818
<a href="/" class="self-center lg:self-start inline-block mt-8 mb-6">
1919
<img alt="jQuery Logo" src="/img/logo-white.svg" width="233" height="66"/>
2020
</a>

‎_includes/menu.njk‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<nav class="fixed top-[34px] inset-x-0 bottom-0 bg-gray-dark text-white py-4 lg:relative lg:inset-auto lg:bg-transparent lg:p-0 lg:opacity-100 lg:transform-none peer-checked/menu:opacity-100 peer-checked/menu:transform-none opacity-0 translate-x-full transition-[opacity,transform] overflow-y-auto lg:overflow-visible">
1+
<nav class="fixed top-8.5 inset-x-0 bottom-0 bg-gray-dark text-white py-4 lg:relative lg:inset-auto lg:bg-transparent lg:p-0 lg:opacity-100 lg:translate-x-0 peer-checked/menu:opacity-100 peer-checked/menu:translate-x-0 opacity-0 translate-x-full transition-[opacity,translate] overflow-y-auto lg:overflow-visible">
22
<ul class="lg:flex lg:flex-row lg:border-l lg:border-l-white/10 lg:border-r lg:border-r-gray-dark">
33
<li class="dropdown">
44
<a href="https://contribute.jquery.org/" class="link-nav">Contribute</a>

‎_includes/plugin-card.njk‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
<p>Released {{ plugin.date | readableDate }}</p>
1010
</div>
1111
<div class="flex flex-row gap-4 font-bold font-title text-center">
12-
<div class="flex flex-col w-[80px]">
13-
<div class="w-full py-[2px] px-2 rounded-t bg-black text-white text-sm">{{ watchers[plugin.id].watchers }}</div>
12+
<div class="flex flex-col w-20">
13+
<div class="w-full py-0.5 px-2 rounded-t bg-black text-white text-sm">{{ watchers[plugin.id].watchers }}</div>
1414
<div class="w-full py-1 px-2 rounded-b bg-blue-light text-xs uppercase">Watchers</div>
1515
</div>
16-
<div class="flex flex-col w-[80px]">
17-
<div class="w-full py-[2px] px-2 rounded-t bg-black text-white text-sm">{{ watchers[plugin.id].forks }}</div>
16+
<div class="flex flex-col w-20">
17+
<div class="w-full py-0.5 px-2 rounded-t bg-black text-white text-sm">{{ watchers[plugin.id].forks }}</div>
1818
<div class="w-full py-1 px-2 rounded-b bg-blue-light text-xs uppercase">Forks</div>
1919
</div>
2020
</div>

‎_includes/search.njk‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<div id="search" class="relative w-full lg:rounded-t-xl lg:bg-black/20 lg:h-[50px] lg:flex lg:items-center lg:justify-end lg:px-4 lg:shadow-[0_0_5px_rgba(0,0,0,0.7)] lg:border-t lg:border-x lg:border-t-white/30 lg:border-x-black/30"></div>
1+
<div id="search" class="relative w-full lg:rounded-t-xl lg:bg-black/20 lg:h-12.5 lg:flex lg:items-center lg:justify-end lg:px-4 lg:shadow-[0_0_5px_rgba(0,0,0,0.7)] lg:border-t lg:border-x lg:border-t-white/30 lg:border-x-black/30"></div>

‎content/index.njk‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ layout: layouts/base.njk
1515
<p class="italic">We do not recommend using any versions of plugins from this registry. Please find jQuery plugins on <a href="https://www.npmjs.com/search?q=keywords:jquery-plugin">npm</a>.</p>
1616
</div>
1717

18-
<div class="flex flex-col px-6 py-5 lg:w-[300px]">
18+
<div class="flex flex-col px-6 py-5 lg:w-75">
1919
<h3 class="text-gray-light flex flex-row items-center gap-2 mb-3">
2020
{% include "icons/tag.svg" %}
2121
Tags

‎content/plugin.njk‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
</div>
110110
</div>
111111

112-
<div class="flex flex-col w-full bg-sidebar-gradient gap-4 border-l border-l-white-dark lg:pl-5 lg:max-w-[330px]">
112+
<div class="flex flex-col w-full bg-sidebar-gradient gap-4 border-l border-l-white-dark lg:pl-5 lg:max-w-82.5">
113113

114114
<div class="w-full rounded-lg border border-black bg-black shadow-[0_0_5px_rgba(0,0,0,0.5)]">
115115
<div class="flex flex-col w-full border border-gray-light rounded-lg bg-[#202020] text-white font-bold font-title">
@@ -165,11 +165,11 @@
165165
</h3>
166166
<div class="flex flex-row gap-3 font-extrabold font-title text-center">
167167
<div class="flex flex-col">
168-
<div class="py-[2px] px-2 rounded-t bg-black leading-tight text-white text-4xl">{{ watchers[plugin.id].watchers }}</div>
168+
<div class="py-0.5 px-2 rounded-t bg-black leading-tight text-white text-4xl">{{ watchers[plugin.id].watchers }}</div>
169169
<div class="py-1 px-2 rounded-b bg-blue-light text-xs uppercase">Watchers</div>
170170
</div>
171171
<div class="flex flex-col">
172-
<div class="py-[2px] px-2 rounded-t bg-black leading-tight text-white text-4xl">{{ watchers[plugin.id].forks }}</div>
172+
<div class="py-0.5 px-2 rounded-t bg-black leading-tight text-white text-4xl">{{ watchers[plugin.id].forks }}</div>
173173
<div class="py-1 px-2 rounded-b bg-blue-light text-xs uppercase">Forks</div>
174174
</div>
175175
</div>

0 commit comments

Comments
 (0)