Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Original PR: tgstation/tgstation#60404
About The Pull Request
With this PR, I have decided to move some build, test and lint related tasks to
build.js
.Here is a full list of targets/parameters, to get a taste of what you can run with this thing:
server
compiles and hosts the server in one go.tools/build/build server --port 10050
test
runs DM unit tests.all
runs all of the above in the most efficient manner.Updated the CI pipeline to reflect this change, removed the python script to generate a list of map includes (because build.js now does it automatically based on provided defines). Added restoring of Yarn cache in CI, which saves about a minute.
A lot of small improvements to Juke, detailed changelog is here.
Changed
.mdme
extension to.m.dme
because it results in a more organized set of files, i.e..m.dme
,.m.dmb
,.m.rsc
.Bumped node version because earlier versions do not support ES modules without extra experimental flags.
Added THREE new bat files for dummies:
CLEAN.bat
(for fixing random issues)RUN_TESTS.bat
for an offline CI run.RUN_SERVER.bat
for running the server, very simple (default port is 1337).