Socket
Book a DemoInstallSign in
Socket

langium-domainmodel-dsl

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

langium-domainmodel-dsl

Example language built with Langium

4.0.0
latest
Source
npmnpm
Version published
Maintainers
0
Created
Source

Domain Model Example

Generator CLI

The Domain Model Example features a generator that you can run via cli.

  • Ensure the complete project was properly built, otherwise run npm install once in the root of the Langium project. That is enough, since we use npm workspaces to manage all of our npm projects as one monorepo.
  • Run npm run build (again in the root directly) to actually generate the JavaScript code from the TypeScript sources.
  • Use node ./bin/cli from the domainmodel directory to run the cli. Follow the instructions or use node ./bin/cli generate <full-path-to-dmodel-file>, e.g.
cd examples/domainmodel
node ./bin/cli generate example/blog.dmodel

produces this result:

Java classes generated successfully: generated/blog

The generator produces a Java class for each Entity and setter-getter methods for each Feature.

You also can use domainmodel-cli as a replacement for node ./bin/cli, if you install the cli globally.

  • Run npm install -g ./ from the domainmodel directory.
  • Use domainmodel-cli to run the cli. Follow the instructions or use domainmodel-cli generate <full-path-to-dmodel-file>.

VSCode Extension

Please use the VSCode run configuration "Run Domainmodel Extension" to launch a new VSCode instance including the extension for this language. Afterwards, use the run configuration "Attach" to attach the debugger to the running language server.

FAQs

Package last updated on 31 Jul 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.