diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 00000000..53bf997e --- /dev/null +++ b/.prettierignore @@ -0,0 +1,4 @@ +*.js +*.html +*.scss +*.md \ No newline at end of file diff --git a/src/build-n-publish.sh b/src/build-n-publish.sh index 965065ef..40195c43 100755 --- a/src/build-n-publish.sh +++ b/src/build-n-publish.sh @@ -3,6 +3,7 @@ pkgName="relay-webapp" pkgVersion=${1:-"v0.0.0-build0"} cdnBaseUrl=${2:-"//cdn.fromdoppler.com/$pkgName"} +# shellcheck disable=SC2034 cdnUrl="$cdnBaseUrl/$pkgVersion" # Exit immediately if a command exits with a non-zero status. @@ -10,6 +11,7 @@ set -e # Lines added to get the script running in the script path shell context # reference: http://www.ostricher.com/2014/10/the-right-way-to-get-the-directory-of-a-bash-script/ +# shellcheck disable=SC2046,SC2086 cd $(dirname $0) # To avoid issues with MINGW and Git Bash, see: @@ -18,11 +20,13 @@ cd $(dirname $0) export MSYS_NO_PATHCONV=1 export MSYS2_ARG_CONV_EXCL="*" +# shellcheck disable=SC2086 ./build-w-docker.sh $pkgVersion $cdnBaseUrl # Force pull the latest image version due to the cache not always is pruned immediately after an update is uploaded to docker hub docker pull dopplerrelay/doppler-relay-akamai-publish +# shellcheck disable=SC2046,SC2006 docker run --rm \ -e AKAMAI_CDN_HOSTNAME \ -e AKAMAI_CDN_USERNAME \ diff --git a/src/run-w-docker.sh b/src/run-w-docker.sh index d94e8bf9..da8c7218 100755 --- a/src/run-w-docker.sh +++ b/src/run-w-docker.sh @@ -5,6 +5,7 @@ set -e # Lines added to get the script running in the script path shell context # reference: http://www.ostricher.com/2014/10/the-right-way-to-get-the-directory-of-a-bash-script/ +# shellcheck disable=SC2046,SC2086 cd $(dirname $0) # To avoid issues with MINGW and Git Bash, see: @@ -13,6 +14,7 @@ cd $(dirname $0) export MSYS_NO_PATHCONV=1 export MSYS2_ARG_CONV_EXCL="*" +# shellcheck disable=SC2046,SC2006 docker run --rm \ -v /`pwd`:/work \ -p 3000:3000 \