-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
82 lines (67 loc) · 1.7 KB
/
Makefile
File metadata and controls
82 lines (67 loc) · 1.7 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
# Include external make configurations
include .make/tag.mk
# Application name
APP_NAME := ts-websocket-client
# Set default target to help
.DEFAULT_GOAL := help
# Remove dist folder
rmdist:
@echo "Removing dist folder..."
@pnpm rmdist
# Clean project
clean:
@echo "Cleaning project..."
@pnpm clean
# Build the package
build: rmdist
@echo "Building package..."
@pnpm build
# Run development server
dev:
@echo "Starting development server..."
@pnpm dev
# Serve the built application
serve:
@echo "Serving the application..."
@pnpm serve
# Run tests
test:
@echo "Running tests..."
@pnpm test
# Update version
version-up:
@echo "Updating version..."
@pnpm version-up
# Run pre-commit checks
pre:
@echo "Running pre-commit checks..."
@pnpm pre-commit
# Run linter
lint:
@echo "Running linter..."
@pnpm lint
# Format code
format:
@echo "Formatting code..."
@pnpm format
# Run all checks
check: lint format
@echo "Running all checks..."
@pnpm check
# Help target
help:
@echo "Available targets:"
@echo " clean - Clean project (remove node_modules and lock file)"
@echo " rmdist - Remove dist folder"
@echo " build - Build the package"
@echo " dev - Start development server"
@echo " serve - Serve the built application"
@echo " test - Run the test suite"
@echo " version-up - Update version"
@echo " pre - Run pre-commit checks"
@echo " lint - Run linter"
@echo " format - Format code"
@echo " check - Run all checks (lint and format)"
@echo " help - Show this help message"
# Declare phony targets
.PHONY: clean rmdist build dev serve test version-up pre lint format check help