mirror of
https://github.com/mattn/vim-lsp-settings.git
synced 2025-12-17 12:00:29 +01:00
14 lines
348 B
Bash
Executable File
14 lines
348 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -e
|
|
|
|
if [ ! -f package.json ]; then
|
|
# Avoid the problem of not being able to install the same package as name in package.json.
|
|
# Create an empty package.json.
|
|
npm init -y
|
|
echo '{"name": ""}' >package.json
|
|
fi
|
|
|
|
npm install "graphql-language-service-cli"
|
|
ln -s "./node_modules/.bin/graphql-lsp" graphql-language-server
|