Improve asset building process
After running ./gulp for every project, we delete node_modules.
This commit is contained in:
@@ -105,11 +105,23 @@ if [ ! -e $GULP -o gulpfile.js -nt $GULP ]; then
|
|||||||
touch $GULP # installer doesn't always touch this after a build, so we do.
|
touch $GULP # installer doesn't always touch this after a build, so we do.
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pushd $DEPLOYDIR/pillar; ./gulp --production; popd;
|
|
||||||
pushd $DEPLOYDIR/attract; ./gulp --production; popd;
|
|
||||||
pushd $DEPLOYDIR/flamenco; ./gulp --production; popd;
|
# List of projects
|
||||||
pushd $DEPLOYDIR/pillar-svnman; ./gulp --production; popd;
|
declare -a proj=("pillar" "attract" "flamenco" "pillar-svnman" "blender-cloud")
|
||||||
pushd $DEPLOYDIR/blender-cloud; ./gulp --production; popd;
|
|
||||||
|
# Run ./gulp for every project
|
||||||
|
for i in "${proj[@]}"
|
||||||
|
do
|
||||||
|
pushd $DEPLOYDIR/$i; ./gulp --production; popd;
|
||||||
|
done
|
||||||
|
|
||||||
|
# Remove node_modules (only after all projects with interdependencies have been built)
|
||||||
|
for i in "${proj[@]}"
|
||||||
|
do
|
||||||
|
pushd $DEPLOYDIR/$i; rm -r node_modules; popd;
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "==================================================================="
|
echo "==================================================================="
|
||||||
|
Reference in New Issue
Block a user