Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Modern screeps TypeScript project template 🚀

NotificationsYou must be signed in to change notification settings

benjamingorman/screeps-typescript-rocket-starter

Repository files navigation

This is a modern and clean project template for a new Screeps project inTypescript.

Features:

Requirements

  • Bun must be installed

Getting started

To install dependencies:

$ bun install

To run linting:

$ bun lint

To auto format code (and write the changes):

$ bun format

To run tests:

(Note it's important to preload the setup script in./src/test/setup.ts tocreate globals like Game, Memory etc. from screeps-jest which is whybun run test is preferred overbun test here.)

$ bun runtest

To push to screeps:

  1. First createscreeps.json with your screeps credentials.Seescreeps.sample.json for an example.
  2. Runbun push-main to push to your main branch on screeps.com.

Alternatively runbun watch-main to watch for changes in your code as you editand push on demand.

Extending the template

Note: Althoughbun build runs significantly faster thantsc for a largecodebase, the build from bun is not currently able to target the slightlyold node runtime that Screeps runs on. For this reason we still use a vanillatsc compile step in the rollup script.

About

Modern screeps TypeScript project template 🚀

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp