Coder Social home page Coder Social logo

typed-screeps-arena's Introduction

typed-screeps-arena

Typings for the game Screeps:Arena based on the following docs https://steamcommunity.com/sharedfiles/filedetails/?id=2505541950

They are currently used primarly for https://github.com/screepers/screeps-arena-typescript-starter but the intention is for them to be usefull in general.

Installation

Current installation instructions untill we have pushed a package to DT

  • Add the following to your packages.json
  • "@types/screeps-arena": "screepers/typed-screeps-arena#develop",
  • do an npm i to make it fetch and build the repo from git.
  • Update your tsconfig.json typeRoots so it loads the types from the dist folder Example: "typeRoots": ["./node_modules/@types", "./@types", "./node_modules/@types/screeps-arena/dist"]

This is all temporary untill we get a DefinatelyTyped package working properly.

Updating types

  • delete node_modules/@types/screeps-arena
  • run npm i to reinstall the packages You might need to delete package-lock.json to get the types.

Future Installation

The type definitions are published on DefinitelyTyped. To install them, run the following.

# npm
npm install @types/screeps-arena --save-dev

# yarn
yarn add @types/screeps-arena

How to push updates to @types/screeps-arena on DefinitelyTyped

  • Fork DefinitelyTyped

  • Partial clone DefinitelyTyped, the repo is huge.

    https://github.com/DefinitelyTyped/DefinitelyTyped#partial-clone

    git clone --sparse --filter=blob:none --depth=1 <forkedUrl>
    git sparse-checkout add types/screeps-arena
    
  • create a branch named screeps-arena-v[major].[minor].[patch]

  • copy the *.d.ts files as well as any tests into types/screeps-arena

  • commit the update to your branch

  • create a PR from your updated branch to master on DefinitelyTyped

  • follow the feedback typescript-bot gives you.

typed-screeps-arena's People

Contributors

thmsndk avatar ngbrown avatar lmik avatar derpius avatar robalian avatar gomachan46 avatar somq14 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.