Build script repair
This commit is contained in:
parent
365b3d8949
commit
91f325ffd4
1 changed files with 4 additions and 4 deletions
8
build.sh
8
build.sh
|
@ -1,5 +1,5 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
SCRIPTDIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||||
WD=`pwd`
|
WD=`pwd`
|
||||||
# get the current vuejs mode
|
# get the current vuejs mode
|
||||||
VUEMODE=`$SCRIPTDIR/vuemode.sh query`
|
VUEMODE=`$SCRIPTDIR/vuemode.sh query`
|
||||||
|
@ -11,13 +11,13 @@ fi
|
||||||
$SCRIPTDIR/vuemode.sh prod
|
$SCRIPTDIR/vuemode.sh prod
|
||||||
|
|
||||||
# run the grunt script in the scripts working directory
|
# run the grunt script in the scripts working directory
|
||||||
cd $SCRIPT_DIR
|
cd $SCRIPTDIR
|
||||||
grunt amd
|
grunt amd
|
||||||
|
|
||||||
# run the build php script
|
# run the build php script
|
||||||
php ${SCRIPT_DIR}/build.php $@
|
php ${SCRIPTDIR}/build.php $@
|
||||||
|
|
||||||
if [[ "$VUEMODE" == "dev"]]; then
|
if [[ "$VUEMODE" == "dev" ]]; then
|
||||||
# switch vuejs vack to original mode
|
# switch vuejs vack to original mode
|
||||||
$SCRIPTDIR/vuemode.sh $VUEMODE
|
$SCRIPTDIR/vuemode.sh $VUEMODE
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue