Skip to content

Commit 01a8443

Browse files
committed
build: update tasks
1 parent f7ca44e commit 01a8443

1 file changed

Lines changed: 15 additions & 8 deletions

File tree

Taskfile.yml

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,34 +101,41 @@ tasks:
101101

102102
format:panorama:layouts:
103103
desc: Format panorama layouts
104-
cmd: bun x -- prettier --write '{{ .PANORAMA_LAYOUTS_SRC_PATH }}/**/*.xml'
104+
dir: "{{ .PANORAMA_LAYOUTS_SRC_PATH }}"
105+
cmd: bun x -- prettier --write {{ .CLI_ARGS }} "**/*.xml"
105106

106107
lint:panorama:layouts:
107108
desc: Lint panorama layouts
108109
cmd: echo "not implemented"
109110

110111
format:panorama:scripts:
111112
desc: Format panorama scripts
112-
cmd: bun x -- @biomejs/biome format --write --config-path "{{ .PANORAMA_SCRIPTS_SRC_PATH }}" "{{ .PANORAMA_SCRIPTS_SRC_PATH }}"
113+
dir: "{{ .PANORAMA_SCRIPTS_SRC_PATH }}"
114+
cmd: bun x -- "@biomejs/biome" format --write {{ .CLI_ARGS }}
113115

114116
lint:panorama:scripts:
115117
desc: Lint panorama scripts
116-
cmd: bun x -- @biomejs/biome check --config-path "{{ .PANORAMA_SCRIPTS_SRC_PATH }}" "{{ .PANORAMA_SCRIPTS_SRC_PATH }}"
118+
dir: "{{ .PANORAMA_SCRIPTS_SRC_PATH }}"
119+
cmd: bun x -- "@biomejs/biome" check {{ .CLI_ARGS }}
117120

118121
format:panorama:styles:
119122
desc: Format panorama styles
123+
dir: "{{ .PANORAMA_STYLES_SRC_PATH }}"
120124
cmds:
121-
- bun x -- stylelint --fix "{{ .PANORAMA_STYLES_SRC_PATH }}"
122-
- bun x -- prettier --write '{{ .PANORAMA_STYLES_SRC_PATH }}/**/*.css'
125+
- bun x -- stylelint --fix {{ .CLI_ARGS }} .
126+
- bun x -- prettier --write {{ .CLI_ARGS }} "**/*.css"
123127

124128
lint:panorama:styles:
125129
desc: Lint panorama styles
126-
cmd: bun x -- stylelint "{{ .PANORAMA_STYLES_SRC_PATH }}"
130+
dir: "{{ .PANORAMA_STYLES_SRC_PATH }}"
131+
cmd: bun x -- stylelint {{ .CLI_ARGS }} .
127132

128133
format:tasks:
129134
desc: Format tasks
130-
cmd: bun x -- @biomejs/biome format --write --config-path "{{ .TASKS_SRC_PATH }}" "{{ .TASKS_SRC_PATH }}"
135+
dir: "{{ .TASKS_SRC_PATH }}"
136+
cmd: bun x -- "@biomejs/biome" format --write {{ .CLI_ARGS }}
131137

132138
lint:tasks:
133139
desc: Lint tasks
134-
cmd: bun x -- @biomejs/biome check --config-path "{{ .TASKS_SRC_PATH }}" "{{ .TASKS_SRC_PATH }}"
140+
dir: "{{ .TASKS_SRC_PATH }}"
141+
cmd: bun x -- "@biomejs/biome" check {{ .CLI_ARGS }}

0 commit comments

Comments
 (0)