From 67e47429bf952795cdbcc4209a0bb6a63651e804 Mon Sep 17 00:00:00 2001 From: Markus Rudolph Date: Wed, 20 Mar 2024 10:45:29 +0100 Subject: [PATCH] Remove ESBuild file, Renaming data to constants --- hugo/content/playground/common.ts | 2 +- hugo/content/playground/{data.ts => constants.ts} | 0 hugo/package.json | 2 +- hugo/sql.esbuild.mjs | 8 -------- 4 files changed, 2 insertions(+), 10 deletions(-) rename hugo/content/playground/{data.ts => constants.ts} (100%) delete mode 100644 hugo/sql.esbuild.mjs diff --git a/hugo/content/playground/common.ts b/hugo/content/playground/common.ts index a5fe6017..fbf825aa 100644 --- a/hugo/content/playground/common.ts +++ b/hugo/content/playground/common.ts @@ -8,7 +8,7 @@ import { HelloWorldGrammar, LangiumTextMateContent, DSLInitialContent, -} from "./data.js"; +} from "./constants.js"; import { decompressFromEncodedURIComponent } from 'lz-string'; import { Disposable } from "vscode-languageserver"; import { render } from './Tree.js'; diff --git a/hugo/content/playground/data.ts b/hugo/content/playground/constants.ts similarity index 100% rename from hugo/content/playground/data.ts rename to hugo/content/playground/constants.ts diff --git a/hugo/package.json b/hugo/package.json index 7b46358e..fbc78ff0 100644 --- a/hugo/package.json +++ b/hugo/package.json @@ -15,7 +15,7 @@ "build:worker/playground-langium": "esbuild ./content/playground/langium-worker.ts --bundle --format=iife --outfile=./static/playground/libs/worker/langiumServerWorker.js", "build:worker/playground-user": "esbuild ./content/playground/user-worker.ts --bundle --format=iife --outfile=./static/playground/libs/worker/userServerWorker.js", "build:worker/playground-common": "esbuild ./content/playground/common.ts --bundle --format=esm --outfile=./static/playground/libs/worker/common.js", - "build:worker/sql": "node sql.esbuild.mjs", + "build:worker/sql": "esbuild ./assets/scripts/sql/language-server.ts --bundle --format=iife --outfile=./static/showcase/libs/worker/sqlServerWorker.js", "build:worker/minilogo": "esbuild ../node_modules/langium-minilogo/out/language-server/main-browser.js --bundle --format=iife --outfile=./static/showcase/libs/worker/minilogoServerWorker.js", "build:static": "npm run clean:static && npm run build:worker/statemachine && npm run build:worker/domainmodel && npm run build:worker/sql && npm run build:worker/minilogo && npm run build:worker/arithmetics && npm run build:worker/playground-common && npm run build:worker/playground-langium && npm run build:worker/playground-user && npm run copy:monaco-workers", "build": "npm run build:static && cross-env NODE_ENV=production hugo --config ./config.toml -b / -d ../public --gc --minify ", diff --git a/hugo/sql.esbuild.mjs b/hugo/sql.esbuild.mjs deleted file mode 100644 index a4637b78..00000000 --- a/hugo/sql.esbuild.mjs +++ /dev/null @@ -1,8 +0,0 @@ -import * as esbuild from 'esbuild'; - -await esbuild.build({ - entryPoints: ['./assets/scripts/sql/language-server.ts'], - bundle: true, - format: "iife", - outfile: './static/showcase/libs/worker/sqlServerWorker.js', -}) \ No newline at end of file