Skip to content

Commit

Permalink
chore: add BUILD script
Browse files Browse the repository at this point in the history
to build everything
  • Loading branch information
VitGottwald committed Nov 27, 2023
1 parent d29b8ab commit 533117a
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
#!/usr/bin/env bash

# Fail script if any command fails
set -e

# Compile language server and dialect jars
cd server
mvn clean package --no-transfer-progress
cd -

# Copy jars
cp server/dialect-daco/target/dialect-daco.jar clients/daco-dialect-support/server/jar
cp server/dialect-idms/target/dialect-idms.jar clients/idms-dialect-support/server/jar
cp server/engine/target/server.jar clients/cobol-lsp-vscode-extension/server/jar

# Compile dialect api
cd clients/cobol-dialect-api
npm ci
npm run compile
cd -

# Build COBOL LS extension
cd clients/cobol-lsp-vscode-extension
npm ci
npm run build
cd -

# Build IMDS LS extension
cd clients/idms-dialect-support
npm ci
npm run build
cd -

# Build DACO LS extension
cd clients/daco-dialect-support
npm ci
npm run build
cd -

# Done
echo "Done building COBOL LS"

0 comments on commit 533117a

Please sign in to comment.