[docs] "Configuration variables" -> "Deploy destinations"

This commit is contained in:
Resi Respati
2017-11-28 13:39:03 +07:00
parent e0a33f2bad
commit 062b76a351
4 changed files with 13 additions and 6 deletions

View File

@@ -12,7 +12,7 @@
### In-Depth ### In-Depth
* [Module bundling](./in-depth/module-bundling.md) * [Module bundling](./in-depth/module-bundling.md)
* [Configuration variables](./in-depth/configuration-variables.md) * [Deploy destinations](./in-depth/deploy-destinations.md)
* [TypeScript](./in-depth/typescript.md) * [TypeScript](./in-depth/typescript.md)
* [Cookbook](./in-depth/cookbook.md) * [Cookbook](./in-depth/cookbook.md)
* [TODO] * [TODO]

View File

@@ -5,7 +5,8 @@
You will need: You will need:
- Node.JS (Latest LTS is recommended) - Node.JS (Latest LTS is recommended)
- A Package Manager (Yarn or NPM) - A Package Manager (`yarn` or `npm`)
- Rollup CLI (Optional, install via `npm install -g rollup`)
## Installing `npm` modules ## Installing `npm` modules

View File

@@ -1,3 +1,3 @@
# Cookbook # Cookbook
This section a community-maintained list of slightly more advanced tips and tricks to help better improve your Screeps AI development workflow with TypeScript. Feel free to [contribute your own](https://github.com/screepers/screeps-typescript-starter/tree/v3.0/docs)! This section contains a community-maintained list of slightly more advanced tips and tricks to help better improve your Screeps AI development workflow with TypeScript. Feel free to [contribute your own](https://github.com/screepers/screeps-typescript-starter/tree/v3.0/docs)!

View File

@@ -1,6 +1,6 @@
# Configuration variables # Deploy destination
The `screeps.json` file is a JSON configuration file separated into multiple environments. We've given you three primary environments by default. The `screeps.json` file is a JSON configuration file separated into multiple deploy destinations. We've given you three primary destinations by default.
```json ```json
{ {
@@ -37,4 +37,10 @@ The `screeps.json` file is a JSON configuration file separated into multiple env
} }
``` ```
[TODO: running environments] You can make as many separate destinations as you want. Just make a copy of any config object and perform the necessary changes. Once you're done, use the `--dest` argument on the `rollup` command to specify which environment to upload to.
```bash
rollup -c --dest main
```
Omitting the `--dest` argument will perform a dry run, which can be used for local directories via symlinks.