mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-04 04:44:08 +01:00 
			
		
		
		
	Updated lintignore and move dockerfile to .dev Fix Updated contributing Fixing GA Fix contributing.md Fixing issues after review No need to change .eslintignore
		
			
				
	
	
		
			40 lines
		
	
	
		
			571 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			571 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/bash
 | 
						|
RUN="docker-compose run --rm"
 | 
						|
command=$1
 | 
						|
args=${@:2}
 | 
						|
 | 
						|
case $command in
 | 
						|
 | 
						|
sh)
 | 
						|
$RUN mermaid sh $args
 | 
						|
;;
 | 
						|
 | 
						|
install)
 | 
						|
$RUN mermaid sh -c "npx pnpm install"
 | 
						|
;;
 | 
						|
 | 
						|
test)
 | 
						|
$RUN mermaid sh -c "npx pnpm test"
 | 
						|
;;
 | 
						|
 | 
						|
lint)
 | 
						|
$RUN mermaid sh -c "npx pnpm -w run lint:fix"
 | 
						|
;;
 | 
						|
 | 
						|
help)
 | 
						|
cat <<EOF
 | 
						|
Run commonly used commands within docker containers
 | 
						|
 | 
						|
$0 install         # Equvalent of pnpm install 
 | 
						|
$0 lint            # Equvalent of pnpm -w run lint:fix
 | 
						|
$0 sh              # Open sh inside docker container for development
 | 
						|
 | 
						|
$0 help            # Show this help
 | 
						|
EOF
 | 
						|
;;
 | 
						|
 | 
						|
*)
 | 
						|
$0 help
 | 
						|
;;
 | 
						|
 | 
						|
esac |