Skip to content

Commit c6704fe

Browse files
committed
added js client
1 parent 48e63cc commit c6704fe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

100 files changed

+37387
-2
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,3 +41,6 @@ pip-delete-this-directory.txt
4141
# see python README.md why this is required:
4242
go/buf/
4343
go/tests/mocks/buf
44+
45+
# js
46+
node_modules/

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ BUILDDATE := $(shell date -Iseconds)
55
VERSION := $(or ${VERSION},$(shell git describe --tags --exact-match 2> /dev/null || git symbolic-ref -q --short HEAD || git rev-parse --short HEAD))
66
LOCALBIN ?= $(shell pwd)/bin
77

8-
all: proto generate test
8+
all: proto generate test build
99

10-
release: proto generate test
10+
release: proto generate test build
1111

1212
.PHONY: proto
1313
proto: protolint
@@ -27,3 +27,7 @@ generate:
2727
.PHONY: test
2828
test:
2929
$(MAKE) -C go test
30+
31+
.PHONY: build
32+
build:
33+
make -C js build VERSION=$(VERSION)

bun.lock

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"lockfileVersion": 1,
3+
"workspaces": {
4+
"": {
5+
"name": "@metal-stack/api",
6+
"dependencies": {
7+
"@bufbuild/protobuf": "^2.10.1",
8+
"@connectrpc/connect-web": "^2.1.1",
9+
},
10+
"devDependencies": {
11+
"typescript": "^5.9.3",
12+
},
13+
},
14+
},
15+
"packages": {
16+
"@bufbuild/protobuf": ["@bufbuild/[email protected]", "", {}, "sha512-ckS3+vyJb5qGpEYv/s1OebUHDi/xSNtfgw1wqKZo7MR9F2z+qXr0q5XagafAG/9O0QPVIUfST0smluYSTpYFkg=="],
17+
18+
"@connectrpc/connect": ["@connectrpc/[email protected]", "", { "peerDependencies": { "@bufbuild/protobuf": "^2.7.0" } }, "sha512-JzhkaTvM73m2K1URT6tv53k2RwngSmCXLZJgK580qNQOXRzZRR/BCMfZw3h+90JpnG6XksP5bYT+cz0rpUzUWQ=="],
19+
20+
"@connectrpc/connect-web": ["@connectrpc/[email protected]", "", { "peerDependencies": { "@bufbuild/protobuf": "^2.7.0", "@connectrpc/connect": "2.1.1" } }, "sha512-J8317Q2MaFRCT1jzVR1o06bZhDIBmU0UAzWx6xOIXzOq8+k71/+k7MUF7AwcBUX+34WIvbm5syRgC5HXQA8fOg=="],
21+
22+
"typescript": ["[email protected]", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
23+
}
24+
}

js/Makefile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.PHONY: install
2+
install:
3+
bun install -dd
4+
5+
.PHONY: clean
6+
clean:
7+
rm -rf metalstack
8+
9+
.PHONY: build
10+
build: install
11+
ifeq ($(CI),true)
12+
cd .. &&\
13+
yq e -i -o=json ".version=\"$(VERSION)\"" package.json &&\
14+
yq e -o=json ".version" package.json
15+
endif
16+
cd .. && bun run build

0 commit comments

Comments
 (0)