Skip to content

Commit ff8aaa6

Browse files
authored
Merge pull request #173 from per1234/sort-tasks
Sort tasks alphabetically
2 parents 81e40f9 + c22374c commit ff8aaa6

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

Taskfile.yml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ includes:
55
dist: ./DistTasks.yml
66

77
vars:
8+
# Path of the project's primary Go module:
9+
DEFAULT_GO_MODULE_PATH: ./
10+
DEFAULT_GO_PACKAGES:
11+
sh: |
12+
echo $(
13+
cd {{default .DEFAULT_GO_MODULE_PATH .GO_MODULE_PATH}} &&
14+
go list ./... | tr '\n' ' ' ||
15+
echo '"ERROR: Unable to discover Go packages"'
16+
)
817
# Path of the primary npm-managed project:
918
DEFAULT_NPM_PROJECT_PATH: ./
1019
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/release-go-task/Taskfile.yml
@@ -28,15 +37,6 @@ vars:
2837
-X {{.CONFIGURATION_PACKAGE}}.commit={{.COMMIT}}
2938
-X {{.CONFIGURATION_PACKAGE}}.date={{.TIMESTAMP}}
3039
'
31-
# Path of the project's primary Go module:
32-
DEFAULT_GO_MODULE_PATH: ./
33-
DEFAULT_GO_PACKAGES:
34-
sh: |
35-
echo $(
36-
cd {{default .DEFAULT_GO_MODULE_PATH .GO_MODULE_PATH}} &&
37-
go list ./... | tr '\n' ' ' ||
38-
echo '"ERROR: Unable to discover Go packages"'
39-
)
4040
4141
tasks:
4242
build:
@@ -77,30 +77,6 @@ tasks:
7777
# This is an "umbrella" task used to call any documentation generation processes the project has.
7878
# It can be left empty if there are none.
7979

80-
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-general-formatting-task/Taskfile.yml
81-
general:check-formatting:
82-
desc: Check basic formatting style of all files
83-
cmds:
84-
- |
85-
if ! which ec &>/dev/null; then
86-
echo "ec not found or not in PATH."
87-
echo "Please install: https://github.com/editorconfig-checker/editorconfig-checker#installation"
88-
exit 1
89-
fi
90-
- ec
91-
92-
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-prettier-formatting-task/Taskfile.yml
93-
general:format-prettier:
94-
desc: Format all supported files with Prettier
95-
deps:
96-
- task: npm:install-deps
97-
cmds:
98-
- |
99-
npx \
100-
prettier \
101-
--write \
102-
.
103-
10480
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-dependencies-task/Taskfile.yml
10581
general:cache-dep-licenses:
10682
desc: Cache dependency license metadata
@@ -129,6 +105,30 @@ tasks:
129105
cmds:
130106
- licensed status
131107

108+
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-general-formatting-task/Taskfile.yml
109+
general:check-formatting:
110+
desc: Check basic formatting style of all files
111+
cmds:
112+
- |
113+
if ! which ec &>/dev/null; then
114+
echo "ec not found or not in PATH."
115+
echo "Please install: https://github.com/editorconfig-checker/editorconfig-checker#installation"
116+
exit 1
117+
fi
118+
- ec
119+
120+
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-prettier-formatting-task/Taskfile.yml
121+
general:format-prettier:
122+
desc: Format all supported files with Prettier
123+
deps:
124+
- task: npm:install-deps
125+
cmds:
126+
- |
127+
npx \
128+
prettier \
129+
--write \
130+
.
131+
132132
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/spell-check-task/Taskfile.yml
133133
general:check-spelling:
134134
desc: Check for commonly misspelled words

0 commit comments

Comments
 (0)