mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-22 06:02:51 +00:00
5a3e5f630f
- Initially all tags were mapped to categories in Hub, for e.g. config.yaml: https://github.com/tektoncd/hub/blob/master/config.yaml, so whenever a new tag was added in a task it was mapped to a category called `others`. Hence before every release we had to manually map these new tags to some category, hence after the discussion in Catalog and Hub WG, a proposal was created for adding a category as an annotation. - PR to update the TEP-0003-Tekton Catalog Organization: https://github.com/tektoncd/community/pull/352 Signed-off-by: Puneet Punamiya <ppunamiy@redhat.com>
40 lines
1.1 KiB
YAML
40 lines
1.1 KiB
YAML
apiVersion: tekton.dev/v1beta1
|
|
kind: Task
|
|
metadata:
|
|
name: prettier
|
|
labels:
|
|
app.kubernetes.io/version: "0.1"
|
|
annotations:
|
|
tekton.dev/pipelines.minVersion: "0.12.1"
|
|
tekton.dev/categories: Code Quality
|
|
tekton.dev/tags: editor
|
|
spec:
|
|
description: >-
|
|
This Task is for running Prettier code formatter against the provided
|
|
source code in the Workspace.
|
|
|
|
By default this Task will check the format of files in the root of your
|
|
Workspace.Run the prettier code formatter against provided source code.
|
|
See https://prettier.io for more information.
|
|
|
|
workspaces:
|
|
- name: source
|
|
mountPath: /source
|
|
params:
|
|
- name: args
|
|
type: array
|
|
description: Prettier arguments used to run Prettier.
|
|
default:
|
|
- "--check"
|
|
- "."
|
|
- name: prettierImage
|
|
type: string
|
|
description: Prettier image used to run Prettier.
|
|
default: docker.io/elnebuloso/prettier:2.1.1@sha256:a42d03000e17d343f57ec156820d64934c76d9a0d2ce4abd602f92fd18d5e6d4 #tag: 2.1.1
|
|
steps:
|
|
- name: check
|
|
image: $(params.prettierImage)
|
|
workingDir: "$(workspaces.source.path)"
|
|
command: [prettier]
|
|
args: ["$(params.args[*])"]
|