chore(dgeni): test for api DIR before clearining it

This commit is contained in:
perry
2016-04-20 16:38:12 -05:00
parent 2061d97f0d
commit 3a22f26b2d

View File

@ -37,7 +37,9 @@ function run {
./node_modules/.bin/gulp demos --production=true
# process new docs
rm -R $DOCS_DEST/api
if [ -d "$DOCS_DEST/api" ]; then
rm -R $DOCS_DEST/api
fi
./node_modules/.bin/gulp docs --doc-version="$VERSION_NAME"
# compile sass vars json for ionic-site docs