forked from Fission-AI/OpenSpec
-
Notifications
You must be signed in to change notification settings - Fork 41
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (31 loc) · 868 Bytes
/
Makefile
File metadata and controls
43 lines (31 loc) · 868 Bytes
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
# Makefile for OpenSpec-cn
# You can override these via environment if needed
PNPM ?= pnpm
NODE ?= node
.PHONY: all install deps build link unlink clean release test
# Default: install deps, build, and link as global "openspec-cn"
all: install
# Install dependencies, build, and link
install: deps build link
# Install JS dependencies using pnpm
deps:
$(PNPM) install
# Build the project (calls the build script)
build:
$(PNPM) run build
# Link this package globally so that the "openspec-cn" command is available
link:
npm link
# Remove the global link for this package
unlink:
npm unlink --global @studyzy/openspec-cn || true
# Simple clean placeholder (extend as needed)
clean:
rm -rf node_modules dist
# Release a new version to npm (publishes @studyzy/openspec-cn)
release:
$(PNPM) run release:local
test: build
$(PNPM) test
lint:
$(PNPM) lint