-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
82 lines (70 loc) · 2.22 KB
/
Makefile
File metadata and controls
82 lines (70 loc) · 2.22 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
# Makefile for TypeScript Template Engine
# This Makefile provides targets for development, testing, building, and publishing
# Default target
.PHONY: all
all: sync-version generate-syntaxes build test build publish
# Testing
.PHONY: test
test:
deno task test
# Generate syntax highlighting configurations
.PHONY: generate-syntaxes
generate-syntaxes:
deno task generate:syntaxes
# Build all
.PHONY: build
build: build-extension
# Sync version from deno.json to vscode-extension/package.json
.PHONY: sync-version
sync-version:
deno run -A sync-version.ts
# Build VSCode extension
.PHONY: build-extension
build-extension: generate-syntaxes
deno task build:extension
# Publish to all platforms
.PHONY: publish
publish: build publish-jsr publish-extension
# Publish to VSCode Marketplace
.PHONY: publish-extension
publish-extension: build-extension
@command -v vsce >/dev/null 2>&1 || npm install -g @vscode/vsce
cd vscode-extension && vsce publish
# Publish to JSR
.PHONY: publish-jsr
publish-jsr:
@echo "Publishing to JSR..."
deno publish
# Clean build artifacts
.PHONY: clean
clean:
@echo "Cleaning build artifacts..."
rm -rf npm
rm -rf vscode-extension/*.vsix
# Demo
.PHONY: demo
demo:
deno task demo
# Help
.PHONY: help
help:
@echo "TypeScript Template Engine Makefile"
@echo ""
@echo "Usage:"
@echo " make [target]"
@echo ""
@echo "Targets:"
@echo " all Do everything: generate, test, build, and publish (default target)"
@echo " dev Run the development server"
@echo " test Run tests"
@echo " generate-tests Generate test files for all supported languages"
@echo " generate-syntaxes Generate syntax highlighting configurations"
@echo " sync-version Sync version from deno.json to vscode-extension/package.json"
@echo " build Build all packages (core, gen, and VSCode extension)"
@echo " build-extension Build the VSCode extension"
@echo " publish Publish all packages to all platforms"
@echo " publish-jsr Publish @tmpl/gen to JSR"
@echo " publish-extension Publish to VSCode Marketplace"
@echo " clean Clean build artifacts"
@echo " demo Run the demo"
@echo " help Show this help information"