-
Notifications
You must be signed in to change notification settings - Fork 0
/
taskfile.yaml
103 lines (89 loc) · 1.82 KB
/
taskfile.yaml
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
92
93
94
95
96
97
98
99
100
101
102
103
version: '3'
env:
TRAME_DISABLE_V3_WARNING: 1
FILE: validation
tasks:
venv:
cmds:
- python3.9 -m venv .venv
- |
source .venv/bin/activate
pip install -U pip
pip install trame trame-client trame-server black pre-commit
pip install .
pre-commit install
status:
- test -d .venv
py-lint:
internal: true
cmds:
- |
source .venv/bin/activate
python -m black trame_markdown trame examples
web-build:
internal: true
dir: vue-components
deps: [web-setup]
cmds:
- npm run lint
- npm run build
sources:
- src/**/*.js
generates:
- ../trame_markdown/module/serve/trame-markdown.umd.js
web-lint:
internal: true
deps: [web-setup]
dir: vue-components
cmds:
- npm run lint
web-setup:
internal: true
dir: vue-components
cmds:
- npm i
sources:
- package.json
generates:
- node_modules/.package-lock.json
web:
deps: [web-build]
cmds:
- |
source .venv/bin/activate
pip install .
sources:
- trame_markdown/module/serve/trame-markdown.umd.js
- trame_markdown/**/*.py
generates:
- .venv/lib/python3.9/site-packages/trame_markdown/__init__.py
run:
internal: true
deps: [web]
env:
VUE_VERSION: vue{{.VUE}}
cmds:
- |
source .venv/bin/activate
python ./examples/{{.FILE}}.py --server
run2:
cmds:
- task: run
vars:
VUE: 2
run3:
cmds:
- task: run
vars:
VUE: 3
check:
cmds:
- |
source .venv/bin/activate
pre-commit run --all-files
lint:
deps: [web-lint, py-lint]
clean:
cmds:
- rm -rf .venv
- rm -rf vue-components/node_modules