Skip to content

Commit fab8e10

Browse files
committed
Update Install Script
1 parent cdd6ede commit fab8e10

2 files changed

Lines changed: 8 additions & 24 deletions

File tree

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ npm install
2525
To build the language server, package the extension, and install it in your local VS Code instance, you can run the provided script from the repository root:
2626

2727
```bash
28-
./install.sh <version>
28+
./install.sh
2929
```
3030

31-
Replace `<version>` with the version number in [client/package.json](./client/package.json).
31+
Use `./install.sh --skip-server` to package and install the extension without rebuilding the language server.
3232

3333
### Releasing
3434

install.sh

Lines changed: 6 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,11 @@
11
#!/bin/bash
2-
VERSION=$1
32
SKIP_SERVER=false
43

5-
# check if version argument provided
6-
if [ -z "$VERSION" ]; then
7-
echo "Usage: $0 1.2.3 [--skip-server]"
8-
exit 1
9-
fi
10-
114
# check for flags
12-
if [ "$2" == "--skip-server" ]; then
5+
if [ "$1" == "--skip-server" ]; then
136
SKIP_SERVER=true
14-
fi
15-
16-
# check valid version format
17-
if [[ ! $VERSION =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
18-
echo "Version must be in format 1.2.3"
19-
exit 1
20-
fi
21-
22-
# check if version present in package.json
23-
if ! grep -q "\"version\": \"$VERSION\"" ./client/package.json; then
24-
echo "Version $VERSION not found in package.json"
7+
elif [ -n "$1" ]; then
8+
echo "Usage: $0 [--skip-server]"
259
exit 1
2610
fi
2711

@@ -36,6 +20,6 @@ fi
3620

3721
# build and install vscode extension
3822
cd client
39-
npx vsce package
40-
code --install-extension liquid-java-$VERSION.vsix
41-
cd ..
23+
npx vsce package --out liquid-java.vsix
24+
code --install-extension liquid-java.vsix
25+
cd ..

0 commit comments

Comments
 (0)