diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-25 16:16:24 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-25 16:16:24 +0900 |
commit | 1bd8222f25a07bf48d12c020e553f0a2dd616aae (patch) | |
tree | 9b3d9ccd600482f73366399326f202a273815aab /installer/npm_install.cmd | |
parent | a7c843b879f937007c9c20751e8258e31c050cad (diff) | |
download | vim-lsp-settings-1bd8222f25a07bf48d12c020e553f0a2dd616aae.tar.gz vim-lsp-settings-1bd8222f25a07bf48d12c020e553f0a2dd616aae.tar.bz2 vim-lsp-settings-1bd8222f25a07bf48d12c020e553f0a2dd616aae.zip |
Add missing installers for Windows
Diffstat (limited to 'installer/npm_install.cmd')
-rw-r--r-- | installer/npm_install.cmd | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/installer/npm_install.cmd b/installer/npm_install.cmd new file mode 100644 index 0000000..d17c974 --- /dev/null +++ b/installer/npm_install.cmd @@ -0,0 +1,21 @@ +@echo off + +if "x%1" equ "x" goto :EOF +if "x%2" equ "x" goto :EOF + +set server_dir="..\servers\%1" +rd /Q /S "%server_dir%" 2>NUL +md "%server_dir%" +cd "%server_dir%" + +call npm init -y + +echo {"name":""}>package.json + +call npm install "%2" + +echo @echo off ^ + +call %%~dp0\node_modules\.bin\%1.cmd %%* ^ + +> %1.cmd |