Skip to content

Commit

Permalink
Merge pull request #351 from TypedDevs/docs/add-bashdep-to-installation
Browse files Browse the repository at this point in the history
Add bashdep to installation
  • Loading branch information
Chemaclass authored Oct 5, 2024
2 parents 247ef16 + a2c6ec3 commit eb66072
Showing 1 changed file with 47 additions and 16 deletions.
63 changes: 47 additions & 16 deletions docs/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,53 @@ We try to keep it stable, but there is no promise that we won't change functions
Committing (or not) this file to your project it's up to you. In the end, it is a dev dependency.
:::

## bashdep

You can manage your dependencies using [bashdep](https://github.com/Chemaclass/bashdep),
a simple dependency manager for bash.

::: code-group
```bash-vue [install-dependencies.sh]
# Ensure bashdep is installed
[ ! -f lib/bashdep ] && {
mkdir -p lib
curl -sLo lib/bashdep \
https://github.com/Chemaclass/bashdep/releases/download/0.1/bashdep
chmod +x lib/bashdep
}
# Add latest bashunit release to your dependencies
DEPENDENCIES=(
"https://github.com/TypedDevs/bashunit/releases/download/{{ pkg.version }}/bashunit"
)
# Load, configure and run bashdep
source lib/bashdep
bashdep::setup dir="lib" silent=false
bashdep::install "${DEPENDENCIES[@]}"
```
```[Output]
Downloading 'bashunit' to 'lib'...
> bashunit installed successfully in 'lib'
```
:::

## Brew

You can install **bashunit** globally in your macOS (or Linux) using brew.

```bash
brew install bashunit
```

## MacPorts

On macOS, you can also install **bashunit** via [MacPorts](https://www.macports.org):

```bash
sudo port install bashunit
```

## GitHub Actions

```yaml
Expand Down Expand Up @@ -82,22 +129,6 @@ jobs:
Get inspiration from the pipelines running on the bashunit-project itself: https://github.com/TypedDevs/bashunit/blob/main/.github/workflows/tests.yml
:::
## Brew
You can install **bashunit** globally in your macOS (or Linux) using brew.
```bash
brew install bashunit
```

## MacPorts

On macOS, you can also install **bashunit** via [MacPorts](https://www.macports.org):

```bash
sudo port install bashunit
```

<script setup>
import pkg from '../package.json'
</script>

0 comments on commit eb66072

Please sign in to comment.