mirror of
https://github.com/tektoncd/catalog.git
synced 2024-11-22 06:02:51 +00:00
2bae9d1479
Annotation about linux/amd64,linux/s390x,linux/ppc64le platforms was added to the latest versions of the npm, wget, write-file, tekton-catalog-publish, pytest, python-coverage tasks. Container image SHAs were updated to use the latest versions with multi-arch support for npm and wget tasks. Signed-off-by: Yulia Gaponenko <yulia.gaponenko1@de.ibm.com> |
||
---|---|---|
.. | ||
tests | ||
npm.yaml | ||
README.md |
NPM CLI
This task can be used to run npm
goals on a source code with the default environment as CI=true
and has some pre-defined scripts in package.json
file.
Install the Task
kubectl apply -f https://raw.githubusercontent.com/tektoncd/catalog/main/task/npm/0.1/npm.yaml
Parameters
-
PATH_CONTEXT: The path where
package.json
of the project is defined. (Default:"."
) -
ARGS: The npm goals you want to run. (Default:
version
) -
IMAGE: The node image you want to use. (Default: docker.io/library/node:12-alpine@sha256:12048cdfd75d944df35f3144132d9bdeee78015fbd6df765edad1be46599b110)
Workspaces
- source: The place which consists of the project.
Platforms
The Task can be run on linux/amd64
, linux/s390x
, and linux/ppc64le
platforms.
Usage
-
Apply the
git-clone
task which will help to clone the repository. -
Apply the sample run.yaml which will clone the tektoncd/hub repo and perform few npm goals:-
- install dependencies using
npm clean-install
- perform
eslint
check on the source code usingnpm run lint
. - run unit tests using
npm run test
- run build tests using
npm run build
- install dependencies using