-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclean.bat
More file actions
56 lines (45 loc) · 993 Bytes
/
Copy pathclean.bat
File metadata and controls
56 lines (45 loc) · 993 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
@echo off
setlocal
cd /d "%~dp0"
set "REMOVE_ALL=0"
:parse_args
if "%~1"=="" goto args_done
if /I "%~1"=="-All" (
set "REMOVE_ALL=1"
)
shift
goto parse_args
:args_done
echo [STEP] cleaning generated artifacts
if exist "build" (
echo [STEP] remove build
rmdir /s /q "build"
)
if exist "frontend\dist" (
echo [STEP] remove frontend\dist
rmdir /s /q "frontend\dist"
)
if exist "frontend\wailsjs" (
echo [STEP] remove frontend\wailsjs
rmdir /s /q "frontend\wailsjs"
)
if exist "frontend\.vite" (
echo [STEP] remove frontend\.vite
rmdir /s /q "frontend\.vite"
)
if exist "coverage.out" (
echo [STEP] remove coverage.out
del /f /q "coverage.out"
)
if exist "frontend\package.json.md5" (
echo [STEP] remove frontend\package.json.md5
del /f /q "frontend\package.json.md5"
)
if "%REMOVE_ALL%"=="1" (
if exist "frontend\node_modules" (
echo [STEP] remove frontend\node_modules
rmdir /s /q "frontend\node_modules"
)
)
echo [STEP] clean complete
exit /b 0