Updated vulnerable dependancy

This commit is contained in:
Jamie Curnow 2018-05-09 09:47:51 +10:00
parent f4544778a7
commit f86e91bef2
4 changed files with 23 additions and 3 deletions

View File

@ -16,5 +16,5 @@ fi
cd "$CODEBASE" cd "$CODEBASE"
docker-compose run --no-deps --rm -w /srv/manager app gulp $@ /usr/local/bin/docker-compose run --no-deps --rm -w /srv/manager app gulp $@
exit $? exit $?

View File

@ -16,5 +16,5 @@ fi
cd "$CODEBASE" cd "$CODEBASE"
docker-compose run --no-deps --rm -w /srv/manager app npm $@ /usr/local/bin/docker-compose run --no-deps --rm -w /srv/manager app npm $@
exit $? exit $?

20
bin/yarn Executable file
View File

@ -0,0 +1,20 @@
#!/bin/bash
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if hash realpath 2>/dev/null; then
export CODEBASE=$(realpath $SCRIPT_DIR/..)
elif hash grealpath 2>/dev/null; then
export CODEBASE=$(grealpath $SCRIPT_DIR/..)
else
export CODEBASE=$(readlink -e $SCRIPT_DIR/..)
fi
if [ -z "$CODEBASE" ]; then
echo "Unable to determine absolute codebase directory"
exit 1
fi
cd "$CODEBASE"
/usr/local/bin/docker-compose run --no-deps --rm -w /srv/manager app yarn $@
exit $?

View File

@ -38,7 +38,7 @@
"gulp-concat-util": "^0.5.5", "gulp-concat-util": "^0.5.5",
"gulp-ejs": "^3.0.1", "gulp-ejs": "^3.0.1",
"gulp-imagemin": "^3.3.0", "gulp-imagemin": "^3.3.0",
"gulp-sass": "^3.2.1", "gulp-sass": "^4.0.1",
"gulp-util": "^3.0.8", "gulp-util": "^3.0.8",
"image-size": "^0.6.1", "image-size": "^0.6.1",
"jquery": "^3.2.1", "jquery": "^3.2.1",