I broke up with neovim....vim is my best friend now
This commit is contained in:
19
dot_vim/plugged/vim-lsp-settings/installer/yarn_install.cmd
Normal file
19
dot_vim/plugged/vim-lsp-settings/installer/yarn_install.cmd
Normal file
@@ -0,0 +1,19 @@
|
||||
@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"
|
||||
Reference in New Issue
Block a user