Skip to content

Commit

Permalink
chore: pin and update Node.js and some deps (#630)
Browse files Browse the repository at this point in the history
* chore: add nvmrc and update package-lock.json

* chore: update CI to Node 16

* doc: document Node.JS version

* chore: npm audit fix (non-breaking)

* chore: update browserlist

* chore: run npm audit fix --forge

This updates node-forge and webpack-dev-server in package.json,
and many others in package-lock.json.

Update webpack-dev-server config due to some deprecated options.

* minor: add comma
  • Loading branch information
lupino3 committed Feb 19, 2022
1 parent 40131ef commit c22e101
Show file tree
Hide file tree
Showing 7 changed files with 1,178 additions and 4,953 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Expand Up @@ -90,10 +90,10 @@ jobs:
run: chmod +x gradlew
- name: Build JS Worker (Java → JS)
run: ./gradlew war
- name: Set up Node.JS 12
- name: Set up Node.JS 16
uses: actions/setup-node@v2
with:
node-version: '12.x'
node-version: '16.x'
- name: Install JS dependencies
run: npm install

Expand Down Expand Up @@ -190,10 +190,10 @@ jobs:
if: ${{ github.event_name == 'pull_request' }}
steps:
- uses: actions/checkout@v2
- name: Set up Node.JS 12
- name: Set up Node.JS 16
uses: actions/setup-node@v2
with:
node-version: '12.x'
node-version: '16.x'
- name: Install JS dependencies
run: npm install
# Run tests against the deployed code.
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/monitor-webui.yml
Expand Up @@ -9,10 +9,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Node.JS 12
- name: Set up Node.JS 16
uses: actions/setup-node@v2
with:
node-version: '12.x'
node-version: '16.x'
- run: npm install
- name: Run web tests against deployed code in production
uses: nick-invision/retry@v2
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
@@ -0,0 +1 @@
16.14.10
2 changes: 2 additions & 0 deletions docs/developer-guide.md
Expand Up @@ -108,6 +108,8 @@ Custom NPM scripts:

Both `build` and `build-dbg` produce a `ui.js` file in the `build/gwt/war/edumips64` directory.

The code was tested with Node.JS 16. The CI environment uses this version.

### Source code structure

The source code structure follows the [Gradle project layout conventions](https://docs.gradle.org/current/userguide/java_plugin.html#N152C8).
Expand Down

0 comments on commit c22e101

Please sign in to comment.