This repository has been archived by the owner on Oct 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathTaskfile.yml
75 lines (66 loc) · 1.46 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
version: 3
tasks:
install-dependencies:
desc: Install project dependencies
deps:
- install-mix-dependencies
- install-npm-dependencies
format:
desc: Format the project
deps:
- install-dependencies
cmds:
- mix format
- npx prettier --write .
elixir-check-format:
desc: Check the format of the project (Elixir)
deps:
- install-mix-dependencies
cmds:
- mix compile --warnings-as-errors
- mix format --check-formatted
elixir-test:
desc: Run the test suite (Elixir)
deps:
- install-mix-dependencies
env:
MIX_ENV: test
cmds:
- mix compile --warnings-as-errors
- mix test
node-ci:
desc: Run the CI pipeline (node)
deps:
- install-npm-dependencies
cmds:
- npx prettier --check .
- npx tsc --noEmit -p .
build:
desc: Build the hooks
deps:
- install-npm-dependencies
cmd: npx tsup hooks/index.ts --format cjs,esm --dts --out-dir hooks/dist
publish:
desc: Publish a new package version
deps:
- install-dependencies
- build
cmds:
- mix hex.publish
- npm publish
install-mix-dependencies:
internal: true
cmd: mix deps.get
sources:
- mix.exs
- mix.lock
generates:
- deps/**/*
install-npm-dependencies:
internal: true
cmd: npm install
sources:
- package.json
- package-lock.json
generates:
- node_modules/**/*