Skip to content

Commit bfd226c

Browse files
committed
Bump Node to 24 and update CI/docs tooling
Update CI and local tooling to Node v24.14.1: workflows (setup-node) and .nvmrc now target Node 24, workflows use npm ci and enable caching, and the lint job is renamed to Validate with an added TypeScript check. Adjusted .npmrc to use legacy-peer-deps, updated README instructions to require Node 24.14.1, added VuePress v2 files and SCSS styles under wiki/.vuepress, and ignore the wiki .vuepress temp/cache in .gitignore.
1 parent 48449b8 commit bfd226c

30 files changed

Lines changed: 7753 additions & 14902 deletions

.github/workflows/codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
- name: Set up Node.js
3131
uses: jonobr1/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
3232
with:
33-
node-version: '20' # Use latest LTS
33+
node-version: '24.14.1'
3434

3535
# cache@v4
3636
- name: Cache node modules

.github/workflows/copilot-setup-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
cache: "npm"
3030

3131
- name: Install dependencies
32-
run: npm install
32+
run: npm ci
3333

3434
- name: Build
3535
run: npm run build

.github/workflows/lint.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,23 @@
1-
name: Lint
1+
name: Validate
22

33
on: [push, pull_request]
44

55
permissions: read-all
66

77
jobs:
8-
build:
8+
validate:
99
runs-on: ubuntu-latest
1010
steps:
11-
# checkout@v5
12-
- uses: jonobr1/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8
13-
- name: Install modules
14-
run: npm install
15-
- name: Run ESLint
16-
run: npm run lint
11+
# checkout@v6
12+
- uses: jonobr1/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
13+
# setup-node@v6
14+
- uses: jonobr1/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f
15+
with:
16+
node-version: '24.14.1'
17+
cache: 'npm'
18+
- name: Install modules
19+
run: npm ci
20+
- name: Run ESLint
21+
run: npm run lint
22+
- name: Check TypeScript sample
23+
run: npx tsc --noEmit --skipLibCheck tests/typescript/index.ts

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
# setup-node@v6
2020
- uses: jonobr1/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f
2121
with:
22-
node-version: '20'
22+
node-version: '24.14.1'
2323
registry-url: 'https://registry.npmjs.org'
2424

2525
# Ensure npm 11.5.1 or later is installed

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ dist
77
.idea
88
.codacy
99
tests/typescript/package-lock.json
10+
wiki/.vuepress/.cache/
11+
wiki/.vuepress/.temp/
1012

1113
#Ignore vscode AI rules
12-
.github/instructions/codacy.instructions.md
14+
.github/instructions/codacy.instructions.md

.npmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
package-lock = false
1+
legacy-peer-deps = true

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v14.7.0
1+
v24.14.1

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ npm run docs:dev // Creates a local server to generate all documentation
172172
npm run docs:build // Builds out static site and associated files to wiki/.vuepress/dist
173173
```
174174

175-
N.B: Vuepress is a legacy library and as such these commands rely on an older version of Node. Run `nvm use` if you get errors. If you don't use [Node Version Manager](https://github.com/nvm-sh/nvm) then see `.nvmrc` to install the correct version of node on your local machine.
175+
These commands are validated against Node `24.14.1`. Run `nvm use` before working on the docs site, or install the version listed in [.nvmrc](./.nvmrc) if you do not use [Node Version Manager](https://github.com/nvm-sh/nvm).
176176

177177
## Change Log
178178
Two.js has been in operation since 2012. For a full list of changes from its first alpha version built with [Three.js](http://threejs.org/) to the most up-to-date tweaks. Check out the wiki [here](./wiki/changelog).

0 commit comments

Comments
 (0)