mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-27 19:29:38 +02:00
build: build .langium
file using generate
from langium-cli
This commit is contained in:
@@ -53,7 +53,7 @@ const handler = (e) => {
|
||||
};
|
||||
|
||||
const main = async () => {
|
||||
generateLangium();
|
||||
await generateLangium();
|
||||
await mkdir('stats').catch(() => {});
|
||||
const packageNames = Object.keys(packageOptions) as (keyof typeof packageOptions)[];
|
||||
// it should build `parser` before `mermaid` because it's a dependecy
|
||||
|
@@ -79,7 +79,7 @@ function sendEventsToAll() {
|
||||
}
|
||||
|
||||
async function createServer() {
|
||||
generateLangium();
|
||||
await generateLangium();
|
||||
handleFileChange();
|
||||
const app = express();
|
||||
chokidar
|
||||
@@ -93,7 +93,7 @@ async function createServer() {
|
||||
return;
|
||||
}
|
||||
if (/\.langium$/.test(path)) {
|
||||
generateLangium();
|
||||
await generateLangium();
|
||||
}
|
||||
console.log(`${path} changed. Rebuilding...`);
|
||||
handleFileChange();
|
||||
|
Reference in New Issue
Block a user