From 9d8966ba85a38765e8f6006e3b8039cbc9e74857 Mon Sep 17 00:00:00 2001 From: Mario Romano Date: Tue, 12 Jul 2016 16:42:23 +0100 Subject: [PATCH] fix start link script --- scripts/npm-link-demo-shell.sh | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/scripts/npm-link-demo-shell.sh b/scripts/npm-link-demo-shell.sh index af832a4591..300327b4ad 100755 --- a/scripts/npm-link-demo-shell.sh +++ b/scripts/npm-link-demo-shell.sh @@ -2,22 +2,41 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +#LINK CORE +echo "====== linking component: ng2-alfresco-core =====" +cd "$DIR/../ng2-components/ng2-alfresco-core" +npm link + +#LINK DATATABLE +echo "====== linking component: ng2-alfresco-datatable =====" +cd "$DIR/../ng2-components/ng2-alfresco-datatable" +npm link ng2-alfresco-core +npm link + +#LINK DOCUMENTLIST +echo "====== linking component: ng2-alfresco-documentlist =====" +cd "$DIR/../ng2-components/ng2-alfresco-documentlist" +npm link ng2-alfresco-core +npm link ng2-alfresco-datatable +npm link + +#LINK ALL THE OTHERS COMPONENTS 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 + echo "====== linking component: ${PACKAGE} =====" + cd "$DESTDIR" + npm link ng2-alfresco-core + npm link done -cd "$DIR/../demo-shell-ng2" +#LINK ALL THE COMPONENTS INSIDE THE DEMOSHELL +cd "$DIR/../demo-shell-ng2" for PACKAGE in \ ng2-alfresco-core \ ng2-alfresco-datatable \