-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yaml
More file actions
91 lines (72 loc) · 1.75 KB
/
Taskfile.yaml
File metadata and controls
91 lines (72 loc) · 1.75 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
83
84
85
86
87
88
89
90
91
# https://taskfile.dev
version: '3'
vars:
GOLANG_CI_LINT_VERSION: v1.59.1
tasks:
default:
desc: Run all tests
cmd: task test-all
build:
desc: Build WASM module
dir: .
cmd: GOOS=js GOARCH=wasm go build -o lib/ygo.wasm
build-verbose:
desc: Build WASM module with verbose output
dir: .
cmd: GOOS=js GOARCH=wasm go build -v -o lib/ygo.wasm
test-basic:
desc: Run basic WASM tests
dir: tests/wasm
cmd: node --test basic.test.mjs
test-yjs:
desc: Run yjs framework tests
dir: tests/yjs
cmd: node run-tests.mjs
yjs:
desc: Run official yjs test suite
dir: ../../yjs
cmd: node tests/index.js
test-yjs-official:
desc: Run adapted yjs official tests
dir: tests/yjs-official
cmd: node --test *.test.mjs
test-encoding:
desc: Run Array/Map encoding tests
dir: tests/wasm
cmd: node array-map-encoding.test.mjs
test-xml:
desc: Run XML type tests
dir: tests/wasm
cmd: node --test xml-basic.test.mjs
test-all:
desc: Run all tests
deps:
- test-basic
- test-yjs
- test-encoding
- test-xml
build-test:
desc: Build WASM and run all tests
deps:
- build
- test-all
watch:
desc: Watch for changes and rebuild
deps:
- build
cmd: echo "Watching for changes..." && find . -name "*.go" -not -path "./lib/*" | entr -r sh -c "task build-test"
clean:
desc: Clean build artifacts
cmd: rm -f lib/ygo.wasm
lint:
desc: Run Go linter
cmd: gofmt -l . && go vet ./...
format:
desc: Format Go code
cmd: gofmt -w .
status:
desc: Show git status
cmd: git status
todo:
desc: Show upcoming tasks from PROJECT_SUMMARY.md
cmd: grep -A 5 "## 未来方向" PROJECT_SUMMARY.md