Files
vim-lsp-settings-mirror/installer/yarn_install.cmd
2021-08-25 00:03:56 +09:00

20 lines
265 B
Batchfile

@echo off
if "x%1" equ "x" goto :EOF
if "x%2" equ "x" goto :EOF
if not exist package.json (
call yarn init -y
echo {"name":""}>package.json
)
call yarn add "%2"
echo @echo off ^
call ^"%%~dp0\node_modules\.bin\%1.cmd^" %%* ^
> "%1.cmd"