Commit f87cb905 authored by Ole Christian Eidheim's avatar Ole Christian Eidheim

Added language server setup instructions for typescript or javascript without flow

parent 5a527f85
Pipeline #121688292 passed with stages
in 16 minutes and 43 seconds
......@@ -16,6 +16,27 @@ flow lsp' > /usr/local/bin/javascript-language-server
chmod 755 /usr/local/bin/javascript-language-server
```
* Additional setup within a JavaScript project:
* Add a `.prettierrc` file to enable style format on save
## TypeScript or JavaScript without Flow
* Prerequisites:
* Node.js
* Recommended:
* [Prettier](https://github.com/prettier/prettier)
Install language server, and create executable to enable server in juCi++:
```sh
npm install -g typescript-language-server typescript
echo '#!/bin/bash
`npm root -g`/typescript-language-server/lib/cli.js --stdio' > /usr/local/bin/javascript-language-server
chmod 755 /usr/local/bin/javascript-language-server
cp /usr/local/bin/javascript-language-server /usr/local/bin/typescript-language-server
cp /usr/local/bin/javascript-language-server /usr/local/bin/typescriptreact-language-server
```
* Additional setup within a JavaScript project:
* Add a `.prettierrc` file to enable style format on save
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment