diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-26 13:56:20 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2019-12-26 13:56:20 +0900 |
commit | 70d4458905da0a22ad439884da73606a5ccc6bd2 (patch) | |
tree | 445a87c4f8fcca96cc24513b3eff19e1ac2aabb8 /installer/npm_install.cmd | |
parent | 965dad764ca5b08831638051d7ce050b49386ea1 (diff) | |
download | vim-lsp-settings-70d4458905da0a22ad439884da73606a5ccc6bd2.tar.gz vim-lsp-settings-70d4458905da0a22ad439884da73606a5ccc6bd2.tar.bz2 vim-lsp-settings-70d4458905da0a22ad439884da73606a5ccc6bd2.zip |
Check unzip command existsv0.0.1
Diffstat (limited to 'installer/npm_install.cmd')
-rw-r--r-- | installer/npm_install.cmd | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/installer/npm_install.cmd b/installer/npm_install.cmd index 7d0a122..ecb09da 100644 --- a/installer/npm_install.cmd +++ b/installer/npm_install.cmd @@ -1,21 +1,21 @@ -@echo off - -if "x%1" equ "x" goto :EOF -if "x%2" equ "x" goto :EOF - -set server_dir=..\servers\%1 -if exist "%server_dir%" rd /Q /S "%server_dir%" -md "%server_dir%" -cd /d "%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 +@echo off
+
+if "x%1" equ "x" goto :EOF
+if "x%2" equ "x" goto :EOF
+
+set server_dir=..\servers\%1
+if exist "%server_dir%" rd /Q /S "%server_dir%"
+md "%server_dir%"
+cd /d "%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
|