-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun.bat
More file actions
57 lines (47 loc) · 1.02 KB
/
Copy pathrun.bat
File metadata and controls
57 lines (47 loc) · 1.02 KB
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
57
@echo off
setlocal
echo ========================================
echo Project Helper Script (Windows)
echo ========================================
if "%1"=="install" goto install
if "%1"=="build" goto build
if "%1"=="dev" goto dev
if "%1"=="docker" goto docker
if "%1"=="test" goto test
if "%1"=="lint" goto lint
goto help
:install
echo Installing dependencies...
call npm install
goto end
:build
echo Building project...
call npm run build
goto end
:dev
echo Starting development server...
call npm run dev
goto end
:docker
echo Running in Docker...
docker-compose up --build
goto end
:test
echo Running tests...
call npm run test
goto end
:lint
echo Running linter...
call npm run lint
goto end
:help
echo Usage: run.bat {install|build|dev|docker|test|lint}
echo.
echo install - Install Node.js dependencies
echo build - Build the project for production
echo dev - Run local development server
echo docker - Build and run in Docker container
echo test - Run tests
echo lint - Run linter
:end
endlocal