-
Notifications
You must be signed in to change notification settings - Fork 24
/
Taskfile.yml
61 lines (53 loc) · 1.31 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
# SPDX-License-Identifier: MIT
# https://taskfile.dev
version: '3'
includes:
git: ./tasks/GitTasks.yml
licensed: ./tasks/LicensedTasks.yml
markdownlint: ./tasks/MarkdownlintTasks.yml
npm: ./tasks/NpmTasks.yml
yamllint: ./tasks/YamllintTasks.yml
vars:
PROJECT_NAME: extract-release-notes
tasks:
default:
cmds:
- task --list
silent: true
clean:
desc: Delete build artifacts
cmds:
- task: npm:clean
silent: true
build:
desc: Build {{.PROJECT_NAME}}
cmds:
- task: npm:build
silent: true
release:
desc: Build release
cmds:
- task: npm:release
- task: licensed:status
silent: true
lint:
desc: Run all linters
cmds:
- task: markdownlint:lint
vars:
ADDITIONAL_ARGS: '--ignore test/'
- task: yamllint:lint
silent: true
version:
desc: Show versions
cmds:
- |
set -e
printf 'git: %s\n' "$(git --version | cut -d ' ' -f 3)"
printf 'licensed: %s\n' "$(licensed version)"
printf 'ncc: %s\n' "$(ncc version)"
printf 'node: %s\n' "$(node --version | cut -c 2-)"
printf 'npm: %s\n' "$(npm --version)"
printf 'task: %s\n' "$(task --version | cut -d ' ' -f 3)"
printf 'yamllint: %s\n' "$(yamllint --version | cut -d ' ' -f 2)"
silent: true