Skip to content

Commit

Permalink
Merge pull request #425 from runejs/swc
Browse files Browse the repository at this point in the history
Updating dependencies, Node version, and implementing SWC compilation
  • Loading branch information
Katilith committed Mar 4, 2024
2 parents 5b28ef3 + c5cd118 commit 530cafb
Show file tree
Hide file tree
Showing 17 changed files with 8,736 additions and 8,203 deletions.
23 changes: 0 additions & 23 deletions .babelrc

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v1
with:
node-version: '13.x'
node-version: '20.x'

- name: Install Node Modules
run: npm i
Expand Down
23 changes: 23 additions & 0 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"exclude": "node_modules/",
"sourceMaps": true,
"module": {
"type": "commonjs"
},
"jsc": {
"target": "es2016",
"baseUrl": "./src",
"paths": {
"@engine/*": ["./engine/*"],
"@plugins/*": ["./plugins/*"],
"@server/*": ["./server/*"]
},
"parser": {
"syntax": "typescript",
"tsx": false,
"decorators": true,
"dynamicImport": false
}
}
}
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16
FROM node:20
WORKDIR /usr/src/app
COPY package.json ./
COPY package-lock.json ./
Expand All @@ -7,7 +7,7 @@ RUN npm ci

COPY src ./src
COPY tsconfig.json ./
COPY .babelrc ./
COPY .swcrc ./

RUN npm run build

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ The [RuneScape Java Client #435](https://github.com/runejs/refactored-client-435

Before running these commands, you must:

1. have [NodeJS **version 16 or higher**](https://nodejs.org/en/) installed on your machine
1. have [NodeJS **version 18 or higher**](https://nodejs.org/en/) installed on your machine
2. run `npm install` from the root of this project

* `npm run game` Launches the game server by itself without building
Expand Down
Loading

0 comments on commit 530cafb

Please sign in to comment.