Socket
Socket
Sign inDemoInstall

generator-langium

Package Overview
Dependencies
356
Maintainers
4
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.0 to 2.1.0

templates/web/index.html

16

package.json
{
"name": "generator-langium",
"version": "2.0.0",
"version": "2.1.0",
"description": "Yeoman generator for Langium - the language engineering tool",

@@ -38,15 +38,15 @@ "homepage": "https://langium.org",

"lodash": "~4.17.21",
"which": "~2.0.2",
"yeoman-generator": "~5.7.0"
"which": "~3.0.1",
"yeoman-generator": "~5.9.0"
},
"devDependencies": {
"@types/lodash": "~4.14.191",
"@types/which": "~2.0.1",
"@types/lodash": "~4.14.197",
"@types/which": "~3.0.0",
"@types/yeoman-generator": "~5.2.11",
"@types/yeoman-test": "~4.0.3",
"yeoman-test": "~7.3.0"
"yeoman-test": "~7.4.0"
},
"volta": {
"node": "18.17.0",
"npm": "9.5.1"
"node": "18.17.1",
"npm": "9.6.7"
},

@@ -53,0 +53,0 @@ "repository": {

@@ -13,4 +13,4 @@ {

"chalk": "~5.3.0",
"commander": "~10.0.0"
"commander": "~11.0.0"
}
}
#!/usr/bin/env node
import '../out/cli/main';
import main from '../out/cli/main.js';
main();

@@ -9,3 +9,10 @@ import type { Model } from '../language/generated/ast.js';

import { NodeFileSystem } from 'langium/node';
import * as url from 'node:url';
import * as fs from 'node:fs/promises';
import * as path from 'node:path';
const __dirname = url.fileURLToPath(new URL('.', import.meta.url));
const packagePath = path.resolve(__dirname, '..', '..', 'package.json');
const packageContent = await fs.readFile(packagePath, 'utf-8');
export const generateAction = async (fileName: string, opts: GenerateOptions): Promise<void> => {

@@ -25,5 +32,3 @@ const services = create<%= LanguageName %>Services(NodeFileSystem).<%= LanguageName %>;

program
// eslint-disable-next-line @typescript-eslint/no-var-requires
.version(require('../../package.json').version);
program.version(JSON.parse(packageContent).version);

@@ -30,0 +35,0 @@ const fileExtensions = <%= LanguageName %>LanguageMetaData.fileExtensions.join(', ');

@@ -18,12 +18,12 @@ {

"dependencies": {
"langium": "~2.0.0"
"langium": "~2.1.0"
},
"devDependencies": {
"@types/node": "~16.18.11",
"@typescript-eslint/parser": "~5.58.0",
"@typescript-eslint/eslint-plugin": "~5.58.0",
"eslint": "~8.33.0",
"langium-cli": "~2.0.0",
"typescript": "~5.0.4"
"@types/node": "~16.18.41",
"@typescript-eslint/parser": "~6.4.1",
"@typescript-eslint/eslint-plugin": "~6.4.1",
"eslint": "~8.47.0",
"langium-cli": "~2.1.0",
"typescript": "~5.1.6"
}
}

@@ -24,3 +24,3 @@ # Welcome to your Langium VS Code Extension

* Verify that syntax highlighting, validation, completion etc. are working as expected.
* Run `./bin/cli` to see options for the CLI; `./bin/cli generate <file>` generates code for a given DSL file.
* Run `node ./bin/cli` to see options for the CLI; `node ./bin/cli generate <file>` generates code for a given DSL file.

@@ -27,0 +27,0 @@ ## Make changes

@@ -7,3 +7,6 @@ .vscode/*

out/
src/language/generated/
static/bundle/
static/monaco-editor-workers/
static/worker/
syntaxes/
src/language/generated/

@@ -19,3 +19,3 @@ {

"scopeName": "source.<%= language-id %>",
"path": "./syntaxes/<%= language-id %>.tmLanguage.json"
"path": "syntaxes/<%= language-id %>.tmLanguage.json"
}]

@@ -33,9 +33,10 @@ },

"dependencies": {
"vscode-languageclient": "~8.0.2"
"vscode-languageclient": "~9.0.1",
"vscode-languageserver": "~9.0.1"
},
"devDependencies": {
"@types/vscode": "~1.67.0",
"concurrently": "^7.6.0",
"esbuild": "^0.18.14"
"concurrently": "~8.2.1",
"esbuild": "~0.19.2"
}
}
{
"scripts": {
"build:worker": "esbuild --minify ./out/language/main-browser.js --bundle --format=iife --outfile=./public/<%= language-id %>-server-worker.js",
"prepare:public": "shx mkdir -p ./public && shx cp -fr ./src/static/* ./public/",
"copy:monaco-editor-wrapper": "shx cp -fr ./node_modules/monaco-editor-wrapper/bundle ./public/monaco-editor-wrapper",
"copy:monaco-workers": "shx cp -fr ./node_modules/monaco-editor-workers/dist/ ./public/monaco-editor-workers",
"copy:monarch-syntax": "shx cp -fr ./out/syntaxes ./public/syntaxes",
"build:web": "npm run build && npm run build:monarch && npm run prepare:public && npm run build:worker && npm run copy:monaco-editor-wrapper && npm run copy:monaco-workers && npm run copy:monarch-syntax",
"prepare:static": "node ./scripts/prepare.js",
"build:web": "npm run build && npm run prepare:static && npm run build:monarch && npm run build:worker && npm run build:bundle",
"build:monarch": "tsc -b tsconfig.monarch.json",
"serve": "node ./out/web/app.js"
"build:bundle": "vite --config ./vite.bundle.config.ts build",
"build:worker": "esbuild --minify ./out/language/main-browser.js --bundle --format=iife --outfile=./static/worker/<%= language-id %>-server-worker.js",
"dev": "vite",
"dev:debug": "vite --debug --force",
"serve": "npm run dev"
},
"dependencies": {
"express": "~4.18.2",
"monaco-editor-workers": "~0.34.2",
"monaco-editor-wrapper": "~1.6.0",
"vscode-languageclient": "~8.0.2"
"@codingame/monaco-vscode-editor-service-override": "~1.83.2",
"@codingame/monaco-vscode-keybindings-service-override": "~1.83.2",
"monaco-editor-workers": "~0.44.0",
"monaco-editor-wrapper": "~3.3.0",
"monaco-languageclient": "~6.6.0",
"vscode": "npm:@codingame/monaco-vscode-api@>=1.83.2 <1.84.0"
},
"devDependencies": {
"@types/express": "^4.17.17",
"shx": "^0.3.4",
"esbuild": "^0.18.6"
"vite": "~4.4.11"
}
}

@@ -15,3 +15,4 @@ {

"skipLibCheck": true,
"forceConsistentCasingInFileNames": true
"forceConsistentCasingInFileNames": true,
"rootDir": "src"
},

@@ -22,5 +23,4 @@ "include": [

"exclude": [
"out",
"node_modules"
]
}

@@ -6,3 +6,3 @@ {

"sourceMap": true,
"outDir": "out/syntaxes",
"outDir": "syntaxes",
"strict": true,

@@ -9,0 +9,0 @@ "noUnusedLocals": true,

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc