[MIRROR] Add tgui fix target (#9050)

Co-authored-by: Heroman3003 <31296024+Heroman3003@users.noreply.github.com>
Co-authored-by: CHOMPStation2 <chompsation2@gmail.com>
This commit is contained in:
CHOMPStation2
2024-09-27 09:56:27 -07:00
committed by GitHub
parent b5438823d6
commit 64a23d7617
2 changed files with 16 additions and 0 deletions

2
bin/tgui-fix.cmd Normal file
View File

@@ -0,0 +1,2 @@
@echo off
call "%~dp0\..\tools\build\build.bat" --wait-on-error tgui-fix %*

View File

@@ -409,6 +409,20 @@ export const TguiBenchTarget = new Juke.Target({
executes: () => yarn('tgui:bench'),
});
export const TguiPrettierFix = new Juke.Target({
dependsOn: [YarnTarget],
executes: () => yarn('tgui:prettier-fix'),
});
export const TguiEslintFix = new Juke.Target({
dependsOn: [YarnTarget],
executes: () => yarn('tgui:eslint-fix'),
});
export const TguiFix = new Juke.Target({
dependsOn: [TguiPrettierFix, TguiEslintFix],
});
export const TestTarget = new Juke.Target({
dependsOn: [DmTestTarget, TguiTestTarget],
});