yarn
A set of tasks to manage npm project with yarn and Docker.
yarn template details
- Status: beta
- File: https://gitlab.com/op_so/task/task-templates/-/raw/main/Taskfile.d/yarn.yml
- Home: https://gitlab.com/op_so/task/task-templates
- License: MIT
List of tasks
Tasks | Description |
---|---|
yarn:clean |
Clean directories. (*) |
yarn:install |
Install nodejs modules with yarn. Arguments: [PULL|P=n|N] (*) |
yarn:outdated |
Check outdated npm packages. Arguments: [PULL|P=n|N] (*) |
yarn:upgrade |
Upgrade npm packages. Arguments: [PULL|P=n|N] (*) |
global variables
Variables | Description | Default value |
---|---|---|
IMAGE_NODE |
Default node image | node:lts-bookworm |
SRC_MOUNT_POINT |
Mount point of the Docker image | /data |
yarn:clean
Clean directories. (*)
[YARN] Clean directories by removing node_modules and .node_cache directories
Usage: task yarn:clean
Arguments | Description |
---|---|
- | - |
Requirements:
- None
yarn:install
Install nodejs modules with yarn. Arguments: [PULL|P=n|N] (*)
Arguments | Description |
---|---|
PULL | P |
Pull docker image (optional, by default yes) |
Nota: On error "/bin/sh: 1: cz: Permission denied - error Command failed with exit code 126."
Run yarn install
Requirements:
- docker
yarn:outdated
Check outdated npm packages. Arguments: [PULL|P=n|N] (*)
Arguments | Description |
---|---|
- | - |
Requirements:
- docker
yarn:upgrade
Upgrade npm packages. Arguments: [PULL|P=n|N] (*)
Arguments | Description |
---|---|
- | - |
Requirements:
- docker