Commit Graph

175 Commits

Author SHA1 Message Date
952d274c53 Better Typing for Positions and Formats Code 2025-07-14 23:11:36 -03:00
230153403f Adds Banner to Bundle 2025-07-13 21:55:55 -03:00
6ebf591d64 Minor Namming Fixes 2025-07-13 21:52:53 -03:00
2c93b65b3d Fixes Creeps Memory Access per Room 2025-07-13 21:43:43 -03:00
6e8c8ae428 Refactors SpawnHandler to RoomRunner 2025-07-13 21:27:22 -03:00
56e626e575 Implements Upgrader Handler Method For Cleanup 2025-07-12 19:24:31 -03:00
c7eb577a63 Implements Handler Method For Cleanup 2025-07-12 18:53:52 -03:00
2ce86cd784 Fixes Spot Holding Bug 2025-07-12 11:23:26 -03:00
293aaef0d4 Better Upgrader Handler 2025-07-12 11:19:08 -03:00
7bee855002 Better Harvester Handler 2025-07-12 11:15:20 -03:00
23d9739167 Adds Upgraders 2025-07-12 10:27:28 -03:00
dd36461c35 Better Path Caching 2025-07-12 01:18:14 -03:00
c38ebe3721 Fixes Closest Source 2025-07-12 00:01:13 -03:00
f9af46c501 Minor Fix Creep Colision 2025-07-07 21:22:27 -03:00
c2a9df5e77 Spawn Room Detection 2025-07-07 20:05:13 -03:00
4f28d240e0 Fixes Game Source Pos
Fixes Game Source Pos
2025-07-07 09:01:06 -03:00
bb3f797fc3 Initial Working Creep Handler 2025-07-06 16:00:36 -03:00
2a7b74542c Temp Work 2025-07-06 14:22:46 -03:00
0ca79cbaba Fixes Storage of SpawnHandlers in Memory 2025-07-06 13:06:29 -03:00
7b48aa345f Disables Minify 2025-07-05 22:52:55 -03:00
5899df7a30 Adds Routine for Cleaning SpawnHandlers 2025-07-05 22:43:58 -03:00
011dda197d Formats Code 2025-07-05 22:35:29 -03:00
06d4eff5c9 Changes to esbuild and adds initial creation of creaps 2025-07-05 22:34:23 -03:00
d72f3ec851 Removes esbuild and Changes to TSC 2025-07-05 18:32:51 -03:00
0e90afedbf Remove Unecessary Config Files 2025-07-05 18:16:39 -03:00
996578de85 Final Working Version 2025-07-05 18:12:26 -03:00
3e9851a2c9 Configures ESBuild 2025-07-05 17:48:28 -03:00
0f9479f2c3 Updates and Updates Project 2025-07-05 17:44:14 -03:00
VexingRaven
cd90f22c1d Remove reference to Traveler in module-bundling.md (#168)
Traveler isn't available on npm and doesn't look like it ever has been so I'm a bit confused why it's listed here as an example. If there are other screepers-maintained npm packages we could list them here as an example, but a cursory glance didn't turn any up.
2023-02-11 21:40:38 +02:00
John Syrinek
9f81797d78 Bump rollup-plugin-typescript2 to fix nodejs 17 (#164)
Running `npm run push-main` gives this with nodejs 17:

> Package subpath './package.json' is not defined by "exports" in /home/wouldntyouliketoknow/node_modules/tslib/package.json

This change incorporates [the fix](https://github.com/ezolenko/rollup-plugin-typescript2/issues/286) from rollup-plugin-typescript2 v0.31.0.
2023-02-11 21:29:18 +02:00
Fatherdotter
abc36e1159 Update .eslintrc.js to prevent no-shadow false positives (#162)
* Update .eslintrc.js to prevent false positives

Utilizing eslint "no-shadow" rule yields false positives for enums (claims that they were declared in an upper scope, error "no-shadow"

Utilize @typescript-eslint/no-shadow corrects this issue.

https://github.com/typescript-eslint/typescript-eslint/issues/2483
2022-01-13 08:30:54 +02:00
Skyler Kehren
39ac40c24a Update output target to es2018 for Node 10
As prompted by eduter on Discord, Node 10 (current game runtime)
supports es2018. This is also confirmed by this stackoverflow post[1]
and node.green [2].

This also sets the lib to "es2018" vs "esnext". With esnext it's
possible to reference standard library functions that don't exist in
es2018 and are not polyfilled by tsc. Ex. String.prototype.matchAll from
es2020. This would cause a runtime error.

If users of this library want to provide their own polyfills, they can
change the lib back to "esnext" or some other future version.

[1] https://stackoverflow.com/questions/51716406/typescript-tsconfig-settings-for-node-js-10
[2] https://node.green/#ES2018
2021-09-14 21:55:42 +02:00
Skyler Kehren
26be47f5f4 Update dependencies
Updates Typescript to ^4.3.5, previously would not pull version 4
Updates eslint related packages and prettier
Updates rollup related packages

Thanks #192
2021-08-11 22:39:37 +03:00
Skyler Kehren
eea80c9e42 Update linting docs for TSLint change to ESLint
Updates the linting docs for the change to ESLint. Replaces the package
name, renames relevant rules and updates all external URLS to reference
eslint.org

Fixes #149
2021-08-08 23:59:41 +03:00
Sergio Cabral
26e1bdf056 Unit test for: Automatically delete memory of missing creeps (#158) 2021-08-08 23:27:10 +03:00
Bickio
a872ae9c79 Fix typo in authenticating.md (#156) 2021-08-08 23:13:10 +03:00
Skyler Kehren
675329997a Remove types.d.ts
Moves example type definitions to main.ts from types.d.ts
Adds additional documentation to example types
Removes types.d.ts file (fixes #147)
2021-05-09 22:38:37 +03:00
Eduardo Asenjo Rodriguez
66a323425e Feature/remote container development (#154)
* feat: add Dockerfile, config & recommended extenion
* docs: add remote-development documentation
* docs: fix README & installation to match node versions package.json definition
2021-04-25 20:34:44 +03:00
Josh LeBlanc
c89e174d26 Set resolve rootDir to src - fix #152 (#153) 2021-02-21 22:02:56 +02:00
Brandon Risberg
e88b608f10 Added docs and config for pushing to seasonal server (#150)
* Added docs and config for pushing to seasonal server
* Updated deploy destination docs to use TOKEN authentication
2020-11-29 19:48:13 +02:00
Skyler Kehren
0f471f9769 Merge pull request #144 from brisberg/mocha-ts-node
Switch unit/integration Mocha testing to use `ts-node` instead of Rollup
2020-09-28 21:26:59 +03:00
brisberg
ab4921711c Moved TS_NODE_PROJECT configuration to mocha setup script 2020-08-07 14:58:57 -07:00
brisberg
efa6cba180 Moved TS_NODE override to 'test' script 2020-08-07 14:46:02 -07:00
brisberg
d776105757 Using ts-node and tsconfig-paths to run mocha over Typescript test files 2020-08-07 14:29:37 -07:00
Resi Respati
8ca88dbf08 Merge pull request #141 from screepers/eslint-reduce-redundant-rules 2020-07-25 10:32:23 +07:00
Resi Respati
1ff2299d56 Merge pull request #142 from screepers/prettier-eslint-docs 2020-07-24 15:49:16 +07:00
Resi Respati
29a7bc7e83 updated Prettier docs to match ESLint 2020-07-24 15:44:13 +07:00
Resi Respati
935509b9ea upgrade parser, reduce redundant ESLint rules
This attempts to reduce the amount of redundant ESLint rules we
currently have. It also upgrades the ESLint TypeScript parser to a newer
version (3.7.0).
2020-07-24 15:37:18 +07:00
Resi Respati
1e42b8697c Merge pull request #122 from tcdejong/migrate-to-eslint 2020-07-24 15:05:47 +07:00
Resi Respati
e293892cd6 use @typescript-eslint/no-unused-expressions instead 2020-07-21 10:29:28 +07:00