Skip to content

Commit f3796f4

Browse files
committed
add readme
1 parent 114567e commit f3796f4

File tree

1 file changed

+36
-1
lines changed

1 file changed

+36
-1
lines changed

README.md

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,36 @@
1-
# context-mapper-language-server
1+
![Context Mapper](https://raw.githubusercontent.com/wiki/ContextMapper/context-mapper-dsl/logo/cm-logo-github-small.png)
2+
# ContextMapper DSL Language Server
3+
[ContextMapper](https://contextmapper.org/) is an open source tool providing a Domain-specific Language based on Domain-Driven Design (DDD) patterns for context mapping and service decomposition.
4+
5+
## System Requirements
6+
The ContextMapper language server is implemented with Langium. To run the language server the following tools have to be installed locally:
7+
* [Node.js](https://nodejs.org/en/download) (v22)
8+
9+
## Build and/or Run the language server
10+
11+
### Requirements
12+
To build the language server the following tools have to be installed locally:
13+
* [corepack](https://github.com/nodejs/corepack): Corepack is needed to install yarn v4. For that corepack has to be enabled with `corepack enable`.
14+
(Corepack is included in v22 of Node.js)
15+
16+
### Build
17+
To build the language server, the Langium resources have to be generated first:
18+
```bash
19+
yarn langium:generate
20+
```
21+
Then you can execute:
22+
```bash
23+
yarn build
24+
```
25+
26+
### Bundle
27+
For distribution, the language server is bundled into a single file using `ncc`. To bundle the language server execute:
28+
```bash
29+
yarn bundle:language-server
30+
```
31+
32+
### Running the language server
33+
To execute the bundled language server execute:
34+
```bash
35+
node cml-ls/index.js --stdio
36+
```

0 commit comments

Comments
 (0)