From 2a4adc83c9ad442585f5143685b5ecdd12bda7cb Mon Sep 17 00:00:00 2001 From: Sebastien Braun Date: Wed, 14 Apr 2021 22:53:48 +0200 Subject: [PATCH 1/3] Do not call obsolete postinstall script. The `vscode.d.ts` file is not installed by the `postinstall` script of the `vscode` package anymore. It is now contained in `@types/vscode` on NPM. See https://code.visualstudio.com/updates/v1_36#_splitting-vscode-package-into-typesvscode-and-vscodetest --- client/package.json | 1 - 1 file changed, 1 deletion(-) diff --git a/client/package.json b/client/package.json index acd6bf4..5d4cd57 100644 --- a/client/package.json +++ b/client/package.json @@ -8,7 +8,6 @@ }, "main": "dist/src/index.js", "scripts": { - "postinstall": "node ./node_modules/vscode/bin/install" }, "dependencies": { "vscode-languageclient": "^6.1.1" From 9d81b38d0b5369b8319680df47bdf1c6bf7bfc9c Mon Sep 17 00:00:00 2001 From: Sebastien Braun Date: Wed, 14 Apr 2021 23:29:53 +0200 Subject: [PATCH 2/3] Make "npm run build" actually build something The `imba build` command referenced in the `build` script does not work. What actually needs to be built seem to be the `client/dist/src/index.js` and `server/dist/src/index.js` files. This change builds these files explicitly. --- package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index bccce70..4162fbb 100644 --- a/package.json +++ b/package.json @@ -184,7 +184,9 @@ "scripts": { "dev:bootstrap": "lerna bootstrap", "watch": "imba watch", - "build": "imba build", + "build:client": "cd client && imba build -m -S src/index.imba", + "build:server": "cd server && imba build -m -S src/index.imba", + "build": "npm run build:client && npm run build:server", "prod:version": "lerna version", "build-theme": "imba scripts/compile-theme.imba", "test": "node server/test.js" From 3f2f4358d93acad01211b4763c4caa8fc8c57125 Mon Sep 17 00:00:00 2001 From: Sebastien Braun Date: Thu, 15 Apr 2021 08:58:02 +0200 Subject: [PATCH 3/3] Add build instructions to Development.md --- Development.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Development.md b/Development.md index 21b2a4d..5e0ffe5 100644 --- a/Development.md +++ b/Development.md @@ -10,6 +10,15 @@ npm install -g lerna # yarn global add lerna npm run dev:bootstrap # yarn dev:bootstrap ``` +### Compiling the code + +To compile the imba code to javascript, use the `build` script in the root +directory: + +``` +npm run build +``` + ### Creating a Local Version While you can build your changes manually and copy over files into your