Skip to content

Commit 0ccfc36

Browse files
authored
chore: replace committed lib/ files with npm copy-libs script
Remove the manually committed lib/ directory and instead use npm packages. A new `copy-libs` script copies files from node_modules/ to lib/ at build time. Updated .gitignore, CI workflow, and README accordingly.
1 parent 8134ca5 commit 0ccfc36

9 files changed

Lines changed: 16 additions & 16715 deletions

File tree

.github/workflows/deploy-pages.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,17 @@ jobs:
2626
- name: Checkout
2727
uses: actions/checkout@v4
2828

29+
- name: Setup Node.js
30+
uses: actions/setup-node@v4
31+
with:
32+
node-version: '20'
33+
cache: 'npm'
34+
35+
- name: Install npm dependencies and copy libs
36+
run: |
37+
npm ci
38+
npm run copy-libs
39+
2940
- name: Setup Pages
3041
uses: actions/configure-pages@v5
3142

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
/_site/
33
/Gemfile.lock
44
/node_modules/
5+
/lib/

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ To test the site locally:
2525
2. Install dependencies:
2626
```bash
2727
bundle install
28+
npm install
29+
npm run copy-libs
2830
```
2931

3032
3. Run Jekyll locally:

0 commit comments

Comments
 (0)