Skip to content

Commit 1724641

Browse files
Merge pull request #172 from rune-js/feature/babel
Replacing the existing compilation process with Babel
2 parents 533af5c + a4e2c2f commit 1724641

File tree

14 files changed

+1965
-104
lines changed

14 files changed

+1965
-104
lines changed

.babelrc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"sourceMaps": true,
3+
"presets": [
4+
"@babel/preset-typescript",
5+
[ "@babel/preset-env", {
6+
"targets": {
7+
"node": "13"
8+
},
9+
"modules": "commonjs"
10+
} ]
11+
],
12+
"plugins": [
13+
"@babel/plugin-proposal-class-properties",
14+
[ "babel-plugin-module-resolver", {
15+
"root": [ "./src" ],
16+
"alias": {
17+
"@server": "./dist"
18+
}
19+
} ]
20+
]
21+
}

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ The server runs on the 435 revision of the game, which was a game update made on
4141
- A simplified JavaScript plugin system for quickly and easily bootstrapping game content
4242
- Flexible quest and dialogue systems for more advanced content development
4343

44-
## Usage
44+
## Setup
4545

4646
1. Download and install NodeJS **version 13 or higher**: https://nodejs.org/en/
4747
2. Clone the Github Repo: https://github.com/rune-js/server
4848
3. Install dependencies by navigating to the project in your Terminal or command prompt and running the command npm install
4949
4. Copy the `data/config/server-config-default.yaml` and paste it into the same folder using the name `server-config.yaml`
5050
5. Go into your new `server-config.yaml` file and modify your RSA modulus and exponent with the ones matching your game client
5151
- You may also modify the server's port and host address from this configuration file
52-
6. Run the game server and REST service by inputting the command npm run server
52+
6. Run the game server and REST service by inputting the command `npm start`
5353

5454
The game server will spin up and be accessible via port 43594. The REST service can be accessed via port 8888.
5555

0 commit comments

Comments
 (0)