-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
98 lines (76 loc) · 3.68 KB
/
Copy pathMakefile
File metadata and controls
98 lines (76 loc) · 3.68 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
SWIFT ?= swift
NPM ?= npm
CLI := fp-progress
PACKAGE_PATH := native
RAYCAST_PATH := raycast
INTERVAL ?= 10
.PHONY: help build test clean list status status-json watch watch-json raycast-install raycast-dev raycast-check raycast-sync-native raycast-verify-native raycast-bundle-swift-debug raycast-bundle-swift raycast-build raycast-lint raycast-store-lint raycast-typecheck raycast-publish
help:
@printf "Important targets:\n"
@printf " make test Run Swift tests\n"
@printf " make status Show current File Provider progress\n"
@printf " make raycast-dev Build ignored debug helper and open Raycast dev mode\n"
@printf " make raycast-check Build the Store bundle and run Raycast/ESLint/TypeScript checks\n"
@printf " make raycast-publish Build, validate, and publish the Raycast extension\n"
@printf "\n"
@printf "Useful CLI targets:\n"
@printf " make build Build the Swift package\n"
@printf " make list List discovered File Provider domains\n"
@printf " make status-json Show current progress status as JSON\n"
@printf " make watch Watch progress, waiting INTERVAL seconds between polls\n"
@printf " make watch-json Watch JSON progress, waiting INTERVAL seconds between polls\n"
@printf " Example: make watch INTERVAL=30\n"
@printf "\n"
@printf "Raycast helper targets:\n"
@printf " make raycast-install Install Raycast extension dependencies\n"
@printf " make raycast-build Sync native source, bundle release helper, and build extension\n"
@printf " make raycast-lint Run Raycast lint, ESLint, and TypeScript checks\n"
@printf " make raycast-sync-native Mirror native/ into ignored raycast/native/ for Store packaging\n"
@printf " make raycast-verify-native Verify raycast/native/ matches native/\n"
@printf "\n"
@printf "Low-level/debug targets:\n"
@printf " make raycast-bundle-swift-debug Bundle debug Swift helper\n"
@printf " make raycast-bundle-swift Bundle release Swift helper\n"
@printf " make raycast-store-lint Run strict Raycast Store metadata lint\n"
@printf " make raycast-typecheck Run Raycast TypeScript checks only\n"
@printf " make clean Remove SwiftPM and Raycast Swift build artifacts\n"
build:
$(SWIFT) build --package-path $(PACKAGE_PATH)
test:
$(SWIFT) test --package-path $(PACKAGE_PATH)
list:
$(SWIFT) run --package-path $(PACKAGE_PATH) $(CLI) list
status:
$(SWIFT) run --package-path $(PACKAGE_PATH) $(CLI) status
status-json:
$(SWIFT) run --package-path $(PACKAGE_PATH) $(CLI) status --json
watch:
$(SWIFT) run --package-path $(PACKAGE_PATH) $(CLI) watch --interval $(INTERVAL)
watch-json:
$(SWIFT) run --package-path $(PACKAGE_PATH) $(CLI) watch --json --interval $(INTERVAL)
raycast-install:
cd $(RAYCAST_PATH) && $(NPM) install
raycast-dev:
cd $(RAYCAST_PATH) && $(NPM) run dev
raycast-sync-native:
cd $(RAYCAST_PATH) && $(NPM) run sync-native
raycast-verify-native:
cd $(RAYCAST_PATH) && $(NPM) run verify-native
raycast-bundle-swift-debug: raycast-sync-native
cd $(RAYCAST_PATH) && $(NPM) run package-swift -- debug
raycast-bundle-swift: raycast-sync-native
cd $(RAYCAST_PATH) && $(NPM) run package-swift -- release
raycast-build: raycast-bundle-swift
cd $(RAYCAST_PATH) && $(NPM) run build
raycast-lint:
cd $(RAYCAST_PATH) && $(NPM) run lint
raycast-check: raycast-build raycast-lint
raycast-store-lint:
cd $(RAYCAST_PATH) && $(NPM) run lint:store
raycast-typecheck:
cd $(RAYCAST_PATH) && $(NPM) run typecheck
raycast-publish:
cd $(RAYCAST_PATH) && $(NPM) run publish
clean:
$(SWIFT) package --package-path $(PACKAGE_PATH) clean
rm -rf $(RAYCAST_PATH)/.raycast-swift-build