-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (40 loc) Β· 1.44 KB
/
Copy pathMakefile
File metadata and controls
51 lines (40 loc) Β· 1.44 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
.PHONY: help install compile test test-contracts ci build web dev e2e-web lighthouse security-scan
help:
@echo "NoxSend β make targets"
@echo " make install Install workspace dependencies"
@echo " make compile Compile contracts (solc auto-download)"
@echo " make test @noxsend/core unit tests (vitest)"
@echo " make test-contracts Hardhat contract tests"
@echo " make ci lint + typecheck + all tests"
@echo " make build Production build of the web dApp"
@echo " make dev Run the web dApp locally (http://localhost:3000)"
@echo " make e2e-web Playwright UI E2E tests (demo mode, no wallet)"
@echo " make lighthouse Lighthouse CI audit"
@echo " make security-scan npm audit + license check"
install:
npm install
compile:
npm run compile
test:
npm test
test-contracts:
npm run test:contracts
ci:
npm run ci
build:
npm run build:web
web dev:
npm --prefix web run dev
# ββ Advanced Testing & Security βββββββββββββββββββββββββββββ
e2e-web:
@echo "π Running Playwright UI E2E tests (demo mode)..."
npx playwright test
lighthouse:
@echo "π¦ Running Lighthouse CI audit..."
npx lhci autorun
security-scan:
@echo "=== NPM AUDIT ==="
npm audit --audit-level=high || true
@echo ""
@echo "=== LICENSE CHECK ==="
npx license-checker --production --failOn "GPL-3.0;AGPL-3.0" --summary || true