Prettier (an auto formatter) is set to only run within the tgui folder
currently. This removes that limitation, allowing it to automatically
format all supported files in the repo (.js, .html, .yml
[etc](https://prettier.io/docs/))
I made a few exceptions for bundled and generated files
I'm of the opinion that code should look uniform and am lazy enough to
want CTRL-S to format files without having to think beyond that
* Reverts 82333 (#82608)
## About The Pull Request
#82333
I was mistaken
The inconsistent indentation warnings are killing me
I tried
## Why It's Good For The Game
Developer sanity
* Reverts 82333
---------
Co-authored-by: Jeremiah <42397676+jlsnow301@users.noreply.github.com>
* Removes editorconfig and suggested extension (#82333)
## About The Pull Request
(Correct me if I'm wrong here but) this is made obsolete by prettier and
our vscode settings
## Why It's Good For The Game
Removes obsolete tools
## Changelog
N/A nothing player facing
* Removes editorconfig and suggested extension
---------
Co-authored-by: Jeremiah <42397676+jlsnow301@users.noreply.github.com>
* Remove tab indent size from editorconfig (#72508)
We don't allow tab alignment anyway so this serves literally zero
purpose. It's not our place to set this kind of requirement in
editorconfig. It doesn't even match GitHub's tab size.
* Remove tab indent size from editorconfig
Co-authored-by: Mothblocks <35135081+Mothblocks@users.noreply.github.com>
* Update Dockerfile for CBT (#56175)
Follow-up to fix the failing Docker CI on master.
- Reorganize the entire Dockerfile to be more readable
- Inline the tgstation/byond Dockerfile into our own, so we can change the base distro at will
- Also allows us to trash the dependencies.sh<->Dockerfile hack
- Use 32-bit libs on a 64-bit distro so that we can download and run recent 64-bit Node binaries
- Call tools/build/build rather than DreamMaker directly
* Update Dockerfile for CBT
Co-authored-by: Tad Hardesty <tad@platymuus.com>
* Allow md files to have trailing whitespace (#55951)
Allows markdown files to have trailing whitespace preceding newline characters.
This enables non-paragraph newlines to be used, as they are made in markdown by ending a line with two space characters.
Please see the [original markdown specification](https://daringfireball.net/projects/markdown/syntax#p) for more details.
* Allow Markdown files to have trailing whitespace
Co-authored-by: Alex 'Avunia' Takiya <git@takiya.cloud>
With current editor config, if you have trailing whitespace on final new line, it doesn't get trimmed, and no extra newline gets added, which breaks linters.
Whitespace trimming is good overall. And an additional "utf-8" enforcement.
Webedit kung-fu.
This pull request fixes the Issue #44038, where TGUI windows get stuck at the bottom of the screen in this very special case:
Windows 10 taskbar is not located at the bottom of the screen (in my case, taskbar was on top);
Fancy UI is enabled.
This is because BYOND uses and reports only the "usable" screen resolution instead of an actual physical resolution [citation needed], and therefore window coordinate space is offset by 40px or more (a size of a Windows 10 taskbar), which causes that rapid uncontrolled propulsion of TGUI windows away from the taskbar.
I also took the liberty to refactor some of the code in 'util/byond' to my liking and adding a few helper methods, including runCommand(command) and callByond(url, params) -> Promise.
Promise-based interface is a first step to start using async/await and making more dynamic calls in tgui.
Why It's Good For The Game
Window dragging is now more robust with the (currently default) fancy TGUI.
Code accounts for the screen space offset between BYOND and the in-game browser.
Changelog
cl
fix: fixed wonky window dragging when using fancy tgui in some special cases
/cl
Part one of some needful Travis cleanup.
Split the different tasks into their own .sh files rather than doing many things per .sh file
Use .travis.yml jobs list to select which tasks are run rather than setting environment variables which the shell scripts then check
Moves the grep lints from running in both "Maps" and "Tests" jobs, and runs them in "Lints" job (formerly "Tools") instead
Makes the check_filedirs.sh lint only run in the "Lints" job rather than in all three jobs.
Removes the check that dependencies.sh matches Dockerfile since the former now pulls from the latter
Uncache node_modules - npm ci is expected to trash this every time and warns when it already exists
Uncache and remove the unnecessary fake MariaDB folder used when building BSQL, give it the real path instead
Attempt to cache the BYOND-provided libmariadb (not sure if this works, will re-examine it in part two)
For part two I hope to switch to using rust_g and BSQL binaries from GitHub releases, and add SpacemanDMM's dreamchecker to the Lints job.
Prevents github putting newlines at the end of files in the web editor (something that would make expanding the context on the diff annoying to do.
Sets the default tab size to be the same as DM.