-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathco-develop.cmd
More file actions
28 lines (24 loc) · 839 Bytes
/
co-develop.cmd
File metadata and controls
28 lines (24 loc) · 839 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
@echo off
cd /d "%~dp0"
echo Setting up local specpress link for co-development...
echo.
echo Prerequisites:
echo - specpress repo cloned at ..\specpress (sibling of this repo)
echo - npm install run in the specpress repo
echo.
rem Ensure all dependencies are installed (including specpress from npm)
call npm install
rem Replace the npm-installed specpress with a junction to the local repo
if exist node_modules\specpress rmdir /s /q node_modules\specpress
mklink /J node_modules\specpress "%~dp0..\specpress"
echo.
echo Verifying link...
findstr "fileResolver" node_modules\specpress\lib\md2docx\md2docx.js >nul 2>&1
if %errorlevel% equ 0 (
echo OK: node_modules\specpress points to local repo.
) else (
echo ERROR: Link verification failed.
exit /b 1
)
echo.
echo Done. Press F5 to launch the Extension Development Host.