Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,6 @@ pip-delete-this-directory.txt
# see python README.md why this is required:
go/buf/
go/tests/mocks/buf

# js
node_modules/
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ BUILDDATE := $(shell date -Iseconds)
VERSION := $(or ${VERSION},$(shell git describe --tags --exact-match 2> /dev/null || git symbolic-ref -q --short HEAD || git rev-parse --short HEAD))
LOCALBIN ?= $(shell pwd)/bin

all: proto generate test
all: proto generate test build

release: proto generate test
release: proto generate test build

.PHONY: proto
proto: protolint
Expand All @@ -27,3 +27,7 @@ generate:
.PHONY: test
test:
$(MAKE) -C go test

.PHONY: build
build:
make -C js build VERSION=$(VERSION)
24 changes: 24 additions & 0 deletions bun.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"lockfileVersion": 1,
"workspaces": {
"": {
"name": "@metal-stack/api",
"dependencies": {
"@bufbuild/protobuf": "^2.10.1",
"@connectrpc/connect-web": "^2.1.1",
},
"devDependencies": {
"typescript": "^5.9.3",
},
},
},
"packages": {
"@bufbuild/protobuf": ["@bufbuild/protobuf@2.10.1", "", {}, "sha512-ckS3+vyJb5qGpEYv/s1OebUHDi/xSNtfgw1wqKZo7MR9F2z+qXr0q5XagafAG/9O0QPVIUfST0smluYSTpYFkg=="],

"@connectrpc/connect": ["@connectrpc/connect@2.1.1", "", { "peerDependencies": { "@bufbuild/protobuf": "^2.7.0" } }, "sha512-JzhkaTvM73m2K1URT6tv53k2RwngSmCXLZJgK580qNQOXRzZRR/BCMfZw3h+90JpnG6XksP5bYT+cz0rpUzUWQ=="],

"@connectrpc/connect-web": ["@connectrpc/connect-web@2.1.1", "", { "peerDependencies": { "@bufbuild/protobuf": "^2.7.0", "@connectrpc/connect": "2.1.1" } }, "sha512-J8317Q2MaFRCT1jzVR1o06bZhDIBmU0UAzWx6xOIXzOq8+k71/+k7MUF7AwcBUX+34WIvbm5syRgC5HXQA8fOg=="],

"typescript": ["typescript@5.9.3", "", { "bin": { "tsc": "bin/tsc", "tsserver": "bin/tsserver" } }, "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw=="],
}
}
16 changes: 16 additions & 0 deletions js/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.PHONY: install
install:
bun install -dd

.PHONY: clean
clean:
rm -rf metalstack

.PHONY: build
build: install
ifeq ($(CI),true)
cd .. &&\
yq e -i -o=json ".version=\"$(VERSION)\"" package.json &&\
yq e -o=json ".version" package.json
endif
cd .. && bun run build
Loading
Loading