Cleans up tgfont build command (#69786)

Co-authored-by: Aleksej Komarov <stylemistake@gmail.com>
This commit is contained in:
AnturK
2022-09-08 16:59:46 -07:00
committed by GitHub
co-authored by Aleksej Komarov
parent 3d5fd8358b
commit c6fb4f3a47
3 changed files with 21 additions and 1 deletions
+13
View File
@@ -89,6 +89,19 @@
],
"group": "build",
"label": "tgui: sonar"
},
{
"type": "shell",
"command": "bin/tgfont",
"windows": {
"command": ".\\bin\\tgfont.cmd"
},
"problemMatcher": [
"$tsc",
"$eslint-stylish"
],
"group": "build",
"label": "tgui: rebuild tgfont"
}
]
}
+2
View File
@@ -0,0 +1,2 @@
@echo off
call "%~dp0\..\tools\build\build.bat" --wait-on-error tg-font %*
+6 -1
View File
@@ -166,7 +166,12 @@ export const TgFontTarget = new Juke.Target({
'tgui/packages/tgfont/dist/tgfont.eot',
'tgui/packages/tgfont/dist/tgfont.woff2',
],
executes: () => yarn('tgfont:build'),
executes: async () => {
await yarn('tgfont:build');
fs.copyFileSync('tgui/packages/tgfont/dist/tgfont.css', 'tgui/packages/tgfont/static/tgfont.css');
fs.copyFileSync('tgui/packages/tgfont/dist/tgfont.eot', 'tgui/packages/tgfont/static/tgfont.eot');
fs.copyFileSync('tgui/packages/tgfont/dist/tgfont.woff2', 'tgui/packages/tgfont/static/tgfont.woff2');
}
});
export const TguiTarget = new Juke.Target({