feat(storybook): add one-click Windows launcher
This commit is contained in:
1 parent
d537926417
commit
c86d12bebc
3 files changed
+116
No files matched your search
@@ -0,0 +1,24 @@
|
||||
@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
|
||||
Reference in new issue
Block a user