Skip to content

Commit

Permalink
Run package manager commands independently
Browse files Browse the repository at this point in the history
  • Loading branch information
nickjj committed Jan 3, 2025
1 parent 969e647 commit f3a97ad
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions run
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ function _dc {
docker compose "${DC}" ${TTY} "${@}"
}

function _dc_run {
DC="run" _dc --no-deps --rm "${@}"
}

# -----------------------------------------------------------------------------

function cmd {
Expand Down Expand Up @@ -75,8 +79,8 @@ function deps:install {

[ -z "${no_build}" ] && docker compose down && docker compose build

DC="run" _dc --no-deps --rm js yarn install
DC="run" _dc --no-deps --rm web yarn install
_dc_run js yarn install
_dc_run web yarn install
}

function yarn {
Expand All @@ -85,7 +89,7 @@ function yarn {

function yarn:outdated {
# List any installed packages that are outdated
yarn outdated
_dc_run web yarn outdated
}

function yarn:frontend {
Expand All @@ -94,7 +98,7 @@ function yarn:frontend {

function yarn:outdated:frontend {
# List any installed front-end packages that are outdated
yarn:frontend outdated
_dc_run js yarn outdated
}

function yarn:build:js {
Expand Down

0 comments on commit f3a97ad

Please sign in to comment.