alfresco-ng2-components/scripts/npm-link-demo-shell.sh
Bindu Wavell daafa2877b scripts can be run from anywhere
updated all scripts except update-version.sh to be able to
run from anywhere. Previously you had to be in the scripts
directory to run them.

fixes #361
2016-07-05 17:43:59 -06:00

34 lines
759 B
Bash
Executable File

#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
for PACKAGE in \
ng2-alfresco-core \
ng2-alfresco-datatable \
ng2-alfresco-documentlist \
ng2-alfresco-login \
ng2-alfresco-search \
ng2-alfresco-upload \
ng2-alfresco-viewer
do
DESTDIR="$DIR/../ng2-components/${PACKAGE}"
echo "====== linking component: ${DESTDIR} ====="
npm link ${DESTDIR} --access public
done
cd "$DIR/../demo-shell-ng2"
for PACKAGE in \
ng2-alfresco-core \
ng2-alfresco-datatable \
ng2-alfresco-documentlist \
ng2-alfresco-login \
ng2-alfresco-search \
ng2-alfresco-upload \
ng2-alfresco-viewer
do
DESTDIR="$DIR/../ng2-components/${PACKAGE}"
echo "====== demo shell linking: ${PACKAGE} ====="
npm link ${PACKAGE}
done