Skip to content

Commit 0fb04d0

Browse files
committed
maint: Switch to pnpm.
1 parent 2ebcf54 commit 0fb04d0

5 files changed

Lines changed: 34 additions & 25 deletions

File tree

‎.github/workflows/test.yml‎

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,12 @@ jobs:
1111
name: test
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v4
15-
- uses: actions/setup-node@v4
14+
- uses: actions/checkout@v7
15+
- uses: pnpm/action-setup@v6
16+
- uses: actions/setup-node@v7
1617
with:
17-
node-version: '22'
18-
cache: 'yarn'
18+
node-version: '24'
19+
cache: 'pnpm'
1920
- run: |
2021
make install
2122
make check

‎.gitignore‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
.sass-cache
1010
/paternslib.sublime-project
1111
/paternslib.sublime-workspace
12-
/stamp-yarn
1312
Gemfile.lock
1413
Patterns-site/
1514
cache/

‎Makefile‎

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,26 @@ export
2020

2121
PEGJS ?= npx pegjs
2222
SASS ?= npx sass
23-
YARN ?= npx yarn
23+
PNPM ?= npx pnpm
2424

2525
PACKAGE_NAME = "patternslib"
2626

2727
all:: bundle css
2828

2929

30-
yarn.lock install:
31-
$(YARN) install
30+
.PHONY: install
31+
pnpm-lock.yaml install: .git/hooks/commit-msg
32+
$(PNPM) install
33+
34+
35+
.git/hooks/commit-msg:
36+
echo "npx commitlint --edit" > .git/hooks/commit-msg
37+
chmod u+x .git/hooks/commit-msg
3238

3339

3440
.PHONY: watch
3541
watch: install
36-
$(YARN) watch
42+
$(PNPM) run watch
3743

3844

3945
.PHONY: build
@@ -48,14 +54,8 @@ depends-parser: install
4854
# Unlink any linked dependencies before building a bundle.
4955
# Also run parent @patternslib/dev `bundle-pre` (double colon `::`)
5056
bundle-pre::
51-
-$(YARN) unlink @patternslib/dev
52-
-$(YARN) unlink @patternslib/pat-content-mirror
53-
-$(YARN) unlink @patternslib/pat-doclock
54-
-$(YARN) unlink @patternslib/pat-shopping-cart
55-
-$(YARN) unlink @patternslib/pat-sortable-table
56-
-$(YARN) unlink @patternslib/pat-tiptap
57-
-$(YARN) unlink @patternslib/pat-upload
58-
$(YARN) install --force
57+
-$(PNPM) unlink --recursive
58+
$(MAKE) install
5959

6060

6161
.PHONY: css
@@ -73,25 +73,25 @@ Patterns-site/Makefile:
7373
.PHONY: update-patternslib-site
7474
update-patternslib-site: Patterns-site/Makefile
7575
# something
76-
cd Patterns-site && git pull && make update-patternslib && git push
76+
cd Patterns-site && git pull && $(MAKE) update-patternslib && git push
7777

7878

7979
# Overrides release + Update https://patternslib.com
8080

8181

8282
.PHONY: release-major
8383
release-major:
84-
make LEVEL=major release
85-
make update-patternslib-site
84+
$(MAKE) LEVEL=major release
85+
$(MAKE) update-patternslib-site
8686

8787

8888
.PHONY: release-minor
8989
release-minor:
90-
make LEVEL=minor release
91-
make update-patternslib-site
90+
$(MAKE) LEVEL=minor release
91+
$(MAKE) update-patternslib-site
9292

9393

9494
.PHONY: release-patch
9595
release-patch:
96-
make LEVEL=patch release
97-
make update-patternslib-site
96+
$(MAKE) LEVEL=patch release
97+
$(MAKE) update-patternslib-site

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"title": "Markup patterns to drive behaviour.",
55
"description": "Patternslib is a JavaScript library that enables designers to build rich interactive prototypes without the need for writing any Javascript. All events are triggered by classes and other attributes in the HTML, without abusing the HTML as a programming language. Accessibility, SEO and well structured HTML are core values of Patterns.",
66
"license": "BSD-3-Clause",
7+
"packageManager": "pnpm@12.3.4",
78
"dependencies": {
89
"@fullcalendar/adaptive": "^5.11.3",
910
"@fullcalendar/core": "^5.11.3",
@@ -31,7 +32,6 @@
3132
"showdown": "^2.1.0",
3233
"showdown-prettify": "^1.3.0",
3334
"slick-carousel": "git+https://github.com/kenwheeler/slick.git#d0716f19aa730006ee80ab026625fb1107816a97",
34-
"slides": "git+https://github.com/Patternslib/slides.git",
3535
"spectrum-colorpicker": "^1.8.0",
3636
"tippy.js": "^6.3.7"
3737
},

‎pnpm-workspace.yaml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# no nested node_modules - needed by module federation
2+
shamefullyHoist: true
3+
# Allow dependencies directly from GitHub
4+
blockExoticSubdeps: false
5+
allowBuilds:
6+
'@parcel/watcher': true
7+
'@patternslib/dev': true
8+
unrs-resolver: true
9+
yarn: true

0 commit comments

Comments
 (0)