Skip to main content
This guide covers how to set up your development environment for using the Civilization VII TypeScript Modding Tools.

Prerequisites

Before you begin, ensure you have:
  • Node.js installed (version 14 or later)
  • Basic knowledge of TypeScript/JavaScript
  • Basic understanding of Civilization VII modding concepts

Installation

  1. Create a new directory for your mod project
  2. Initialize a Node.js project:
  3. Install the TypeScript modding tools:
  4. Create a TypeScript configuration file (tsconfig.json):
    tsconfig.json
1

Clone the repository

2

Install dependencies

3

Copy the examples to use as templates

Project Structure

Set up your project with this recommended structure:

Basic Mod Setup

Create a build.ts file in your project root:
build.ts
Run this script with:
For more detailed information about the TypeScript modding tools, see: