-
Notifications
You must be signed in to change notification settings - Fork 0
/
Taskfile.yml
56 lines (48 loc) · 1.14 KB
/
Taskfile.yml
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
version: 3
tasks:
clean:
desc: Clean
cmds:
- rm -rf build dist
install:
cmds:
- pnpm install
- pnpm prune
build:
desc: Build
deps: [ install ]
cmds:
- pnpm build
typedoc:
desc: Generate typedoc
deps: [ install ]
cmds:
- rm -rf build/typedoc
- pnpm run typedoc
site-build:
desc: Site - Build
deps: [ story-build, typedoc ]
cmds:
- rm -rf build/site
- mkdir -p build/site/leaflet-tracksymbol2
- cp -r build/histoire/* build/site/leaflet-tracksymbol2/
- cp -r build/typedoc build/site/leaflet-tracksymbol2/
- cp -r examples build/site/leaflet-tracksymbol2/
- touch build/site/leaflet-tracksymbol2/.nojekyll
generates:
- build/site/*
site-serve:
desc: Site - Serve
deps: [ site-build ]
cmds:
- caddy file-server --root build/site --listen 127.0.0.1:8080
site-publish:
desc: Site - Publish
deps: [ site-build ]
cmds:
- gh-pages --dotfiles --dist build/site/leaflet-tracksymbol2
npm-publish:
desc: NPM - Publish
deps: [ build ]
cmds:
- pnpm publish --access public