-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathMakefile
More file actions
76 lines (57 loc) · 1.48 KB
/
Makefile
File metadata and controls
76 lines (57 loc) · 1.48 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
WORKDIR = $(shell pwd)
LIBRARIES = $(shell find packages packages_generated -mindepth 1 -maxdepth 1 -type d)
build:
pnpm run build
install-dependencies:
pnpm install
build-tools:
pnpm turbo build --filter=./tools/*
release-prepare: install-dependencies build-tools
pnpm install
pnpm run build
release-check:
@if [ -n "$$(git status --porcelain --untracked-files=normal)" ]; then \
echo "Working tree must be clean before running release-check."; \
git status --short; \
exit 1; \
fi
@$(MAKE) release-prepare
@if [ -n "$$(git status --porcelain --untracked-files=normal)" ]; then \
echo "Release preparation modified the worktree. Commit generated files before publishing."; \
git status --short; \
exit 1; \
fi
format:
pnpm run format
format-check:
pnpm run format:check
format-generated:
pnpm install
pnpm biome format --write packages_generated/
pnpm biome check --write --unsafe packages_generated/
typing:
pnpm run typecheck
lint:
pnpm run lint
test:
pnpm run test
test-coverage:
pnpm run test:coverage
doc:
pnpm run doc
prebuild:
pnpm run prebuild
generate-alias:
pnpm run generateAlias
generate-packages:
pnpm run generatePackages
setup-new-products:
pnpm turbo build --filter=@scaleway/generate-packages
pnpm install
pnpm run setupNewProducts
publish: install-dependencies
pnpm run build
pnpm lerna changed
git add .
git commit -m "chore: update generated files" || true
pnpm lerna version -y --no-private --force-git-tag --create-release github