mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-14 06:43:25 +08:00
Fix macOS onboarding issues
This commit is contained in:
parent
b043d79cc4
commit
337f07b865
1
.npmrc
1
.npmrc
@ -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
|
||||||
|
@ -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
|
||||||
@ -12,4 +13,4 @@ stats
|
|||||||
packages/mermaid/src/config.type.ts
|
packages/mermaid/src/config.type.ts
|
||||||
# Ignore the files creates in /demos/dev except for example.html
|
# Ignore the files creates in /demos/dev except for example.html
|
||||||
demos/dev/**
|
demos/dev/**
|
||||||
!/demos/dev/example.html
|
!/demos/dev/example.html
|
||||||
|
11
run
11
run
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user