19 lines
514 B
Batchfile
19 lines
514 B
Batchfile
@echo off
|
|
setlocal
|
|
chcp 65001 >nul
|
|
title HM Design System - Portable Test Preview
|
|
echo The server prints the actual Storybook, Dashboard and Example addresses below.
|
|
if not exist "%~dp0runtime\node\node.exe" (
|
|
where node >nul 2>nul
|
|
if errorlevel 1 (
|
|
echo ERROR: Install Node.js 20.19+ or 22.12+, then retry. No npm install is needed for preview.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
node "%~dp0preview-server.cjs"
|
|
) else (
|
|
"%~dp0runtime\node\node.exe" "%~dp0preview-server.cjs"
|
|
)
|
|
if errorlevel 1 pause
|
|
endlocal
|