Fix macOS onboarding issues

This commit is contained in:
Dustin Breuer 2024-02-04 18:30:51 +01:00
parent b043d79cc4
commit 337f07b865
3 changed files with 10 additions and 5 deletions

1
.npmrc
View File

@ -1,3 +1,4 @@
registry=https://registry.npmjs.org registry=https://registry.npmjs.org
auto-install-peers=true auto-install-peers=true
strict-peer-dependencies=false strict-peer-dependencies=false
package-import-method=clone-or-copy

View File

@ -1,6 +1,7 @@
dist dist
cypress/platform/xss3.html cypress/platform/xss3.html
.cache .cache
.pnpm-store
coverage coverage
# Autogenerated by PNPM # Autogenerated by PNPM
pnpm-lock.yaml pnpm-lock.yaml

11
run
View File

@ -1,4 +1,4 @@
#!/bin/bash #!/usr/bin/env bash
RUN="docker compose run --rm" RUN="docker compose run --rm"
ansi() { echo -e "\e[${1}m${*:2}\e[0m"; } ansi() { echo -e "\e[${1}m${*:2}\e[0m"; }
@ -6,7 +6,7 @@ bold() { ansi 1 "$@"; }
# italic() { ansi 3 "$@"; } # italic() { ansi 3 "$@"; }
underline() { ansi 4 "$@"; } underline() { ansi 4 "$@"; }
# strikethrough() { ansi 9 "$@"; } # strikethrough() { ansi 9 "$@"; }
# red() { ansi 31 "$@"; } red() { ansi 31 "$@"; }
name=$(basename $0) name=$(basename $0)
command=$1 command=$1
@ -38,7 +38,7 @@ cypress)
$RUN cypress $args $RUN cypress $args
;; ;;
help) help|"")
# Alignment of help message must be as it is, it will be nice looking when printed # Alignment of help message must be as it is, it will be nice looking when printed
usage=$( usage=$(
@ -99,7 +99,10 @@ echo -n -e "$usage"
;; ;;
*) *)
$name help message="$(red Unknown command: $command). See $(bold ./$name help) for available commands."
echo -n -e "$message\n" >&2
$0 help
exit 1
;; ;;
esac esac