-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
43 lines (35 loc) · 1 KB
/
Copy pathMakefile
File metadata and controls
43 lines (35 loc) · 1 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
# Node.js Temporal Stability Package
# Mark Merritt <mark@marktmerritt.com>
.PHONY: all test clean install uninstall package help
# Default target
all: test
# Run tests
test:
npm test
# Clean up generated files and temporary test files
clean:
rm -f /tmp/timestamp-stability-*.txt
rm -f /tmp/timestamp-test-*.txt
rm -f /tmp/js-patch-test.txt
rm -rf node_modules/
find . -name '*.log' -delete
find . -name '.DS_Store' -delete
# Install globally via npm
install:
npm install -g .
# Uninstall global package
uninstall:
npm uninstall -g node-stability
# Build package (for distribution)
package: clean test
npm pack
# Show help
help:
@echo "Available targets:"
@echo " all - Run tests (default)"
@echo " test - Run test suite"
@echo " clean - Remove temporary files and build artifacts"
@echo " install - Install globally via npm"
@echo " uninstall - Remove global installation"
@echo " package - Create distributable tarball"
@echo " help - Show this help message"