diff --git a/docs/in-depth/deploy-destinations.md b/docs/in-depth/deploy-destinations.md index 7cb1855..8e084db 100644 --- a/docs/in-depth/deploy-destinations.md +++ b/docs/in-depth/deploy-destinations.md @@ -1,13 +1,14 @@ # Deploy destinations -The `screeps.json` file is a JSON configuration file separated into multiple deploy destinations. We've given you three primary destinations by default. +The `screeps.json` file is a JSON configuration file separated into multiple deploy destinations. We've given you four primary destinations by default. + +See [here](/docs/getting-started/authenticating.md) for steps to generate your API token. ```javascript { // Used for deploying to the main world "main": { - "email": "you@provider.tld", - "password": "Password", + "token": "YOUR_TOKEN", "protocol": "https", "hostname": "screeps.com", "port": 443, @@ -16,18 +17,25 @@ The `screeps.json` file is a JSON configuration file separated into multiple dep }, // Used for deploying to Simulation mode "sim": { - "email": "you@provider.tld", - "password": "Password", + "token": "YOUR_TOKEN", "protocol": "https", "hostname": "screeps.com", "port": 443, "path": "/", "branch": "sim" }, + // Used for deploying to Seasonal Event server + "season": { + "token": "YOUR_TOKEN", + "protocol": "https", + "hostname": "screeps.com", + "port": 443, + "path": "/season", + "branch": "main" + }, // Used for deploying to a private server "pserver": { - "email": "username", - "password": "Password", + "token": "YOUR_TOKEN", "protocol": "http", "hostname": "1.2.3.4", "port": 21025, @@ -44,4 +52,3 @@ rollup -c --environment DEST:main ``` Omitting the destination will perform a dry run, which will compile and bundle the code without uploading it. - diff --git a/package.json b/package.json index 1c5dbd6..6970b5b 100644 --- a/package.json +++ b/package.json @@ -9,12 +9,14 @@ "build": "rollup -c", "push-main": "rollup -c --environment DEST:main", "push-pserver": "rollup -c --environment DEST:pserver", + "push-season": "rollup -c --environment DEST:season", "push-sim": "rollup -c --environment DEST:sim", "test": "npm run test-unit", "test-unit": "mocha test/unit/**/*.ts", "test-integration": "echo 'See docs/in-depth/testing.md for instructions on enabling integration tests'", "watch-main": "rollup -cw --environment DEST:main", "watch-pserver": "rollup -cw --environment DEST:pserver", + "watch-season": "rollup -cw --environment DEST:season", "watch-sim": "rollup -cw --environment DEST:sim" }, "repository": { diff --git a/screeps.sample.json b/screeps.sample.json index 14bff62..ed6c04c 100644 --- a/screeps.sample.json +++ b/screeps.sample.json @@ -15,6 +15,14 @@ "path": "/", "branch": "sim" }, + "season": { + "token": "YOUR_TOKEN", + "protocol": "https", + "hostname": "screeps.com", + "port": 443, + "path": "/season", + "branch": "main" + }, "pserver": { "email": "username", "password": "Password",