1
0
mirror of https://github.com/NginxProxyManager/nginx-proxy-manager.git synced 2025-06-19 23:20:56 +03:00
Files
.github
backend
docker
docs
frontend
scripts
ci
.common.sh
buildx
destroy-dev
docs-build
docs-upload
frontend-lint
go-multiarch-wrapper
install-s6
sqlite
start-dev
stop-dev
test-dev
wait-healthy
test
.dockerignore
.gitignore
.version
DEV-README.md
Jenkinsfile
LICENSE
README.md
nginx-proxy-manager/scripts/frontend-lint

18 lines
560 B
Bash
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#!/bin/bash -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
. "$DIR/.common.sh"
# Ensure docker-compose exists
if hash docker 2>/dev/null; then
cd "${DIR}/.."
echo -e "${BLUE} ${CYAN}Linting Frontend ...${RESET}"
docker run --rm -e CI=true -v "$(pwd)/frontend:/app/frontend" -w /app/frontend node:latest sh -c "yarn install && yarn eslint src;chown -R $(id -u):$(id -g) /app/frontend"
RES=$?
echo -e "${BLUE} ${GREEN}Linting Frontend Complete${RESET}"
exit $RES
else
echo -e "${RED} docker command is not available${RESET}"
exit 1
fi