-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (28 loc) · 1.24 KB
/
Copy pathMakefile
File metadata and controls
38 lines (28 loc) · 1.24 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
.PHONY: check test dev-host package-vsix install-local upsert-agent-local upsert-agent-global upsert-agent-all upsert-copilot-agent-local
VSCODE ?= code
DEV_WORKSPACE ?= $(CURDIR)/faro-dev.code-workspace
VSIX_PATH ?= $(CURDIR)/dist/faro.vsix
FORCE_FLAG = $(if $(filter 1 true yes,$(FORCE)),-- --force,)
check:
npm run check
test:
npm test
dev-host:
@"$(VSCODE)" --new-window --extensionDevelopmentPath="$(CURDIR)" "$(DEV_WORKSPACE)"
package-vsix:
@mkdir -p "$(dir $(VSIX_PATH))"
@npm run package:vsix -- --out "$(VSIX_PATH)"
install-local: package-vsix
@"$(VSCODE)" --install-extension "$(VSIX_PATH)" --force
upsert-agent-local:
@test "$(SCOPE)" = "local" || (echo "Use: make upsert-agent-local SCOPE=local"; exit 1)
@npm run upsert:agent-instructions:local $(FORCE_FLAG)
upsert-agent-global:
@test "$(SCOPE)" = "global" || (echo "Use: make upsert-agent-global SCOPE=global"; exit 1)
@npm run upsert:agent-instructions:global $(FORCE_FLAG)
upsert-agent-all:
@test "$(SCOPE)" = "all" || (echo "Use: make upsert-agent-all SCOPE=all"; exit 1)
@npm run upsert:agent-instructions $(FORCE_FLAG)
upsert-copilot-agent-local:
@test "$(SCOPE)" = "local" || (echo "Use: make upsert-copilot-agent-local SCOPE=local"; exit 1)
@npm run upsert:copilot-agent