Skip to content
This repository was archived by the owner on Dec 18, 2024. It is now read-only.

chore(scripts): update fetch-local to always build #173 #194

Merged
merged 1 commit into from
Jun 22, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 4 additions & 10 deletions tools/fetch-assets-local.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,17 +12,11 @@ elif [ -d ${MATERIAL2_LOCAL} ] ; then
baseSrcPath = ${MATERIAL2_LOCAL}
fi

# Ensure Docs Dist
if [ ! -d ${baseSrcPath}/dist/docs ] ; then
echo "- Missing /dist/docs...Running 'gulp docs'"
( cd ${baseSrcPath} && gulp docs )
fi
# Build Docs
(cd ${baseSrcPath} && gulp docs)

# Ensure Material Examples Pkg
if [ ! -d ${baseSrcPath}/dist/releases/material-examples ] ; then
echo "- Missing material-examples...Running 'gulp material-examples:build-release'"
( cd ${baseSrcPath} && gulp material-examples:build-release)
fi
# Build Examples
(cd ${baseSrcPath} && gulp material-examples:build-release)

# Base Target Path
baseTargetPath=./src/assets
Expand Down