25 lines
493 B
Batchfile
25 lines
493 B
Batchfile
@echo off
|
|
setlocal EnableExtensions DisableDelayedExpansion
|
|
chcp 65001 >nul
|
|
title HMDesign - Storybook
|
|
pushd "%~dp0"
|
|
if errorlevel 1 goto root_error
|
|
node scripts\start-storybook.mjs
|
|
if errorlevel 1 goto fail
|
|
popd
|
|
endlocal
|
|
exit /b 0
|
|
:fail
|
|
echo.
|
|
echo ERROR: Storybook could not start. Review the error above.
|
|
echo Check Node.js/npm, dependency installation, and port availability.
|
|
popd
|
|
pause
|
|
endlocal
|
|
exit /b 1
|
|
:root_error
|
|
echo ERROR: Cannot access the launcher folder.
|
|
pause
|
|
endlocal
|
|
exit /b 1
|