aboutsummaryrefslogtreecommitdiff
path: root/installer/install-yaml-language-server.sh
diff options
context:
space:
mode:
Diffstat (limited to 'installer/install-yaml-language-server.sh')
-rwxr-xr-xinstaller/install-yaml-language-server.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/installer/install-yaml-language-server.sh b/installer/install-yaml-language-server.sh
new file mode 100755
index 0000000..015f953
--- /dev/null
+++ b/installer/install-yaml-language-server.sh
@@ -0,0 +1,17 @@
+#!/bin/bash
+
+set -e
+
+cd $(dirname $0)
+
+server_dir="../servers/yaml-language-server"
+[ -d $server_dir ] && rm -rf $server_dir
+mkdir $server_dir && cd $server_dir
+
+npm init -y
+cat <<EOF >package.json
+{"name": ""}
+EOF
+npm install yaml-language-server
+
+ln -s ./node_modules/.bin/yaml-language-server .