Commit Graph

149 Commits

Author SHA1 Message Date
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
Resi Respati
f70f624dec updated eslint config + reformat files 2020-07-15 13:07:28 +07:00
Resi Respati
e1ad00045a fixed incorrect package versions 2020-07-15 12:56:05 +07:00
Resi Respati
660ece25d8 Merge branch 'master' into migrate-to-eslint 2020-07-15 12:51:15 +07:00
Skyler Kehren
43e4f741f8 Merge pull request #138 from freedan42x/patch-1
fix typo
2020-06-04 20:08:17 +03:00
Bredor
3a585095a5 fix typo 2020-06-02 15:52:42 +03:00
Dr. Derek Austin
77f8ed969c Update node version to 10.x in README (#136)
* Corrects version numbering on README.md regarding Node dependency
* 1) Updated .gitignore to exclude build/*
2020-05-02 17:54:55 +03:00
Skyler Kehren
0e2e309ee2 Merge pull request #124 from screepers/int-test-cleanup
Integration testing cleanup
2020-05-02 13:01:35 +03:00
Skyler Kehren
b3d7bda215 Fixing PR review comments
Adds direct example for installing screeps-server-mockup
Adds test-integration script that prints where to find more info
Fixes typo in integration: testing docs
2020-05-02 12:51:58 +03:00
Skyler Kehren
bfb6d29857 Pin @types/lodash to 3.10.2
Revert workaround for @types/lodash 3.10.3 and pin version to 3.10.2
until more research can be done.
2020-04-22 20:46:19 +03:00
Skyler Kehren
7907d3c819 Update Node,TypeScript,Rollup dependencies
@types/lodash@3.10.3 broke the template since lodash is assumed to be
global. Adds a shim to types file to allow continued use of a global
lodash since the game provides 3.10 automatically.
Update rollup to 2.0, and associated rollup plugins
2020-04-20 19:38:02 +03:00
Skyler Kehren
b5771202e8 Update @types/screeps to 3.1.0 2020-04-11 09:50:32 +03:00
Skyler Kehren
f641477c32 Merge pull request #130 from 99linesofcode/patch-1
Fix broken link to docs
2020-04-06 19:26:31 +03:00
J. Schreuders
3fbd0064f9 Fix broken link to docs 2020-04-06 00:23:52 +02:00
Resi Respati
d7b06369dc Merge pull request #127 from brisberg/node10
Specified Node 10.x as engine
2020-04-01 13:54:36 +07:00
Skyler Kehren
6978c4b018 Merge pull request #128 from brisberg/rollup-update
Updated rollup to 1.32 and plugin dependencies
2020-03-31 21:51:01 +03:00
brisberg
b0225d4732 Updated rollup to 1.32 and plugin deps 2020-03-30 17:36:34 -07:00
brisberg
b13fb751cc Specified Node 10.x as engine for project, as screeps now runs on Node 10 2020-03-30 17:21:06 -07:00
Skyler Kehren
4c93b94970 Merge pull request #125 from CalebLovell/private-server-guide
add brief instructions for deploying to a private server
2020-03-24 22:18:10 +02:00
Caleb Lovell
67bc4a7eaf add brief instructions for deploying to a private server 2020-03-23 23:36:10 -06:00
Skyler Kehren
72af44081d Merge pull request #123 from brisberg/mocha-exit
Fixed Mocha from exiting before reporter has a chance to print error
2020-02-26 08:10:38 +02:00
Skyler Kehren
de4b19b2de Fix codeblock formatting 2020-02-26 08:07:17 +02:00
Skyler Kehren
9c25e720ad Cleanup integration testing docs
Removes `test-integration` script
Removes integration from `test` script
Add installation instructions for `screeps-server-mockup` in docs
2020-02-26 08:02:12 +02:00
brisberg
9353721127 Fixed Mocha from exiting before reporter has a chance to print stack traces 2020-02-12 11:48:31 -08:00
tcdejong
519a4830ee restored accidental deleted file 2020-02-03 18:56:33 +01:00
tcdejong
57990c4215 Migrate from TSLint to ESLint 2020-02-03 18:41:29 +01:00
Skyler Kehren
962c62a474 Merge pull request #120 from tcdejong/tcdejong-update-readme
Remove Python requirement from ReadMe
2020-01-30 21:53:02 +02:00