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 e53c5a6 commit 9998f73
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 @@ -92,8 +96,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 bin/pip3-install
_dc_run js yarn install
_dc_run web bin/pip3-install
}

function pip3 {
Expand All @@ -102,7 +106,7 @@ function pip3 {

function pip3:outdated {
# List any installed packages that are outdated
pip3 list --outdated
_dc_run web pip3 list --outdated
}

function yarn {
Expand All @@ -111,7 +115,7 @@ function yarn {

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

function yarn:build:js {
Expand Down

0 comments on commit 9998f73

Please sign in to comment.