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 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" 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"