Merge pull request #688 from reasonerjt/dev

jsminify's basedir should be configurable
This commit is contained in:
Daniel Jiang 2016-08-17 16:54:32 +08:00 committed by GitHub
commit 0da29e5305

View File

@ -1,12 +1,18 @@
#!/bin/bash #!/bin/bash
set -e set -e
echo "This shell will minify the Javascript in Harbor project." echo "This shell will minify the Javascript in Harbor project."
echo "Usage: #jsminify [src] [dest]" echo "Usage: #jsminify [src] [dest] [basedir]"
#prepare workspace #prepare workspace
rm -rf $2 /tmp/harbor.app.temp.js rm -rf $2 /tmp/harbor.app.temp.js
BASEPATH=/go/bin if [ -z $3 ]
then
BASEPATH=/go/bin
else
BASEPATH=$3
fi
#concat the js files from js include file #concat the js files from js include file
echo "Concat js files..." echo "Concat js files..."