-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
57 lines (47 loc) · 1.36 KB
/
Copy pathTaskfile.yml
File metadata and controls
57 lines (47 loc) · 1.36 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
# https://taskfile.dev/usage/
version: "3"
vars:
httpcSrcUrl: https://raw.githubusercontent.com/cao7113/req_client/refs/heads/main/notes/httpc.ex
includes:
c: ./Taskfile-cluster.yml
tasks:
default: mix test
# --dbg pry
sh: iex --erl "-kernel shell_history enabled" -S mix
build: |
mix build
ls -l _build/*.ez
up: mix up
# iex -S mix test test/hello_elixir_test.exs:6 -b
slow-test: mix test --slowest 10
stale-test: mix test --stale
# https://hexdocs.pm/mix/Mix.Tasks.Test.html#module-file-system-watchers
smart-test: fswatch lib test | mix test --listen-on-stdin --stale
hc.copy: |
mix h.hc.mget {{.httpcSrcUrl}} > lib/ehelper/httpc.ex
mix format
hc.get:
mix h.hc.mget {{.httpcSrcUrl}}
rel: mix release --overwrite --force
# pub:
# # prefer to use CI
# desc: publish hex package
# cmds:
# - mix hex.publish --yes --replace
# env:
# HEX_API_KEY: $HEX_API_KEY
doc: mix docs
doc.pub: mix hex.publish docs --yes
# https://www.erlang.org/doc/apps/inets/http_server.html#serving-files-from-the-command-line
doc.s: erl -S httpd serve doc
## Git ops
ops.up: mix git_ops.release --yes && git push --follow-tags
prj.info: mix git_ops.project_info
ops.init: mix git_ops.release --initial
deps: |
mix do up + h.deps
## Setup
setup: |
mise install
mix deps.get
mix test