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

benjamingorman/screeps-typescript-rocket-starter

Repository files navigation

πŸš€ screeps-typescript-rocket-starter

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

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 to create globals like Game, Memory etc. from screeps-jest which is why bun run test is preferred over bun test here.)

$ bun run test

To push to screeps:

  1. First create screeps.json with your screeps credentials. See screeps.sample.json for an example.
  2. Run bun push-main to push to your main branch on screeps.com.

Alternatively run bun watch-main to watch for changes in your code as you edit and push on demand.

Extending the template

Note: Although bun build runs significantly faster than tsc for a large codebase, the build from bun is not currently able to target the slightly old node runtime that Screeps runs on. For this reason we still use a vanilla tsc 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

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /