This guide covers how to set up your development environment for using the Civilization VII TypeScript Modding Tools.Documentation Index
Fetch the complete documentation index at: https://civ7community.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
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
Install from NPM
Install from NPM
- Create a new directory for your mod project
- Initialize a Node.js project:
- Install the TypeScript modding tools:
- Create a TypeScript configuration file (
tsconfig.json):tsconfig.json
Project Structure
Set up your project with this recommended structure:Basic Mod Setup
Create abuild.ts file in your project root:
build.ts