Remove Unecessary Config Files
This commit is contained in:
22
.gitattributes
vendored
22
.gitattributes
vendored
@@ -1,22 +0,0 @@
|
||||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
|
||||
# Custom for Visual Studio
|
||||
*.cs diff=csharp
|
||||
*.sln merge=union
|
||||
*.csproj merge=union
|
||||
*.vbproj merge=union
|
||||
*.fsproj merge=union
|
||||
*.dbproj merge=union
|
||||
|
||||
# Standard to msysgit
|
||||
*.doc diff=astextplain
|
||||
*.DOC diff=astextplain
|
||||
*.docx diff=astextplain
|
||||
*.DOCX diff=astextplain
|
||||
*.dot diff=astextplain
|
||||
*.DOT diff=astextplain
|
||||
*.pdf diff=astextplain
|
||||
*.PDF diff=astextplain
|
||||
*.rtf diff=astextplain
|
||||
*.RTF diff=astextplain
|
||||
88
.gitignore
vendored
88
.gitignore
vendored
@@ -1,92 +1,6 @@
|
||||
# yarn lock file
|
||||
/yarn.lock
|
||||
|
||||
# npm lock file (v5.0.0+)
|
||||
/package-lock.json
|
||||
|
||||
# Ignore basic folders
|
||||
/dist
|
||||
/.rpt2_cache
|
||||
/tsc-out
|
||||
/node_modules
|
||||
/_book
|
||||
/build/*
|
||||
|
||||
# TypeScript definitions installed by Typings
|
||||
/typings
|
||||
|
||||
# Screeps Config
|
||||
.screeps.yml
|
||||
|
||||
# ScreepsServer data from integration tests
|
||||
/server
|
||||
|
||||
# Numerous always-ignore extensions
|
||||
*.diff
|
||||
*.err
|
||||
*.orig
|
||||
*.log
|
||||
*.rej
|
||||
*.swo
|
||||
*.swp
|
||||
*.zip
|
||||
*.vi
|
||||
*~
|
||||
|
||||
# Editor folders
|
||||
.cache
|
||||
.project
|
||||
.settings
|
||||
.tmproj
|
||||
*.esproj
|
||||
nbproject
|
||||
*.sublime-project
|
||||
*.sublime-workspace
|
||||
.idea
|
||||
|
||||
# =========================
|
||||
# Operating System Files
|
||||
# =========================
|
||||
|
||||
# OSX
|
||||
# =========================
|
||||
|
||||
.DS_Store
|
||||
.AppleDouble
|
||||
.LSOverride
|
||||
|
||||
# Thumbnails
|
||||
._*
|
||||
|
||||
# Files that might appear on external disk
|
||||
.Spotlight-V100
|
||||
.Trashes
|
||||
|
||||
# Directories potentially created on remote AFP share
|
||||
.AppleDB
|
||||
.AppleDesktop
|
||||
Network Trash Folder
|
||||
Temporary Items
|
||||
.apdisk
|
||||
|
||||
# Windows
|
||||
# =========================
|
||||
|
||||
# Windows image file caches
|
||||
Thumbs.db
|
||||
ehthumbs.db
|
||||
|
||||
# Folder config file
|
||||
Desktop.ini
|
||||
|
||||
# Recycle Bin used on file shares
|
||||
$RECYCLE.BIN/
|
||||
|
||||
# Windows Installer files
|
||||
*.cab
|
||||
*.msi
|
||||
*.msm
|
||||
*.msp
|
||||
|
||||
# Windows shortcuts
|
||||
*.lnk
|
||||
.screeps.yml
|
||||
55
README.md
55
README.md
@@ -1,55 +0,0 @@
|
||||
# Screeps Typescript Starter
|
||||
|
||||
Screeps Typescript Starter is a starting point for a Screeps AI written in Typescript. It provides everything you need to start writing your AI whilst leaving `main.ts` as empty as possible.
|
||||
|
||||
## Basic Usage
|
||||
|
||||
You will need:
|
||||
|
||||
- [Node.JS](https://nodejs.org/en/download) (10.x || 12.x)
|
||||
- A Package Manager ([Yarn](https://yarnpkg.com/en/docs/getting-started) or [npm](https://docs.npmjs.com/getting-started/installing-node))
|
||||
- Rollup CLI (Optional, install via `npm install -g rollup`)
|
||||
|
||||
Download the latest source [here](https://github.com/screepers/screeps-typescript-starter/archive/master.zip) and extract it to a folder.
|
||||
|
||||
Open the folder in your terminal and run your package manager to install the required packages and TypeScript declaration files:
|
||||
|
||||
```bash
|
||||
# npm
|
||||
npm install
|
||||
|
||||
# yarn
|
||||
yarn
|
||||
```
|
||||
|
||||
Fire up your preferred editor with typescript installed and you are good to go!
|
||||
|
||||
### Rollup and code upload
|
||||
|
||||
Screeps Typescript Starter uses rollup to compile your typescript and upload it to a screeps server.
|
||||
|
||||
Move or copy `screeps.sample.json` to `screeps.json` and edit it, changing the credentials and optionally adding or removing some of the destinations.
|
||||
|
||||
Running `rollup -c` will compile your code and do a "dry run", preparing the code for upload but not actually pushing it. Running `rollup -c --environment DEST:main` will compile your code, and then upload it to a screeps server using the `main` config from `screeps.json`.
|
||||
|
||||
You can use `-cw` instead of `-c` to automatically re-run when your source code changes - for example, `rollup -cw --environment DEST:main` will automatically upload your code to the `main` configuration every time your code is changed.
|
||||
|
||||
Finally, there are also NPM scripts that serve as aliases for these commands in `package.json` for IDE integration. Running `npm run push-main` is equivalent to `rollup -c --environment DEST:main`, and `npm run watch-sim` is equivalent to `rollup -cw --dest sim`.
|
||||
|
||||
#### Important! To upload code to a private server, you must have [screepsmod-auth](https://github.com/ScreepsMods/screepsmod-auth) installed and configured!
|
||||
|
||||
## Typings
|
||||
|
||||
The type definitions for Screeps come from [typed-screeps](https://github.com/screepers/typed-screeps). If you find a problem or have a suggestion, please open an issue there.
|
||||
|
||||
## Documentation
|
||||
|
||||
We've also spent some time reworking the documentation from the ground-up, which is now generated through [Gitbooks](https://www.gitbook.com/). Includes all the essentials to get you up and running with Screeps AI development in TypeScript, as well as various other tips and tricks to further improve your development workflow.
|
||||
|
||||
Maintaining the docs will also become a more community-focused effort, which means you too, can take part in improving the docs for this starter kit.
|
||||
|
||||
To visit the docs, [click here](https://screepers.gitbook.io/screeps-typescript-starter/).
|
||||
|
||||
## Contributing
|
||||
|
||||
Issues, Pull Requests, and contribution to the docs are welcome! See our [Contributing Guidelines](CONTRIBUTING.md) for more details.
|
||||
7498
package-lock.json
generated
Normal file
7498
package-lock.json
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -40,6 +40,7 @@ declare global {
|
||||
// }
|
||||
// });
|
||||
export const loop = () => {
|
||||
console.log(`Current game tick is ${Game.time}`);
|
||||
console.log(`Current game CPU is ${Game.cpu.getUsed()}`);
|
||||
};
|
||||
for (const spawn of Object.values(Game.spawns)) {
|
||||
console.log(`Spawn ${spawn.name} in room ${spawn.room.name} is ready.`);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user