clean script and better linking

This commit is contained in:
Mario Romano 2016-07-05 15:46:26 +01:00
parent 15198c7991
commit 51b7b77a94
3 changed files with 37 additions and 1 deletions

19
scripts/npm-clean.sh Executable file
View File

@ -0,0 +1,19 @@
#!/usr/bin/env bash
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
echo "====== clean component: ${PACKAGE} ====="
cd ../ng2-components/${PACKAGE}
npm run clean
cd ../../scripts/
done
cd ./../demo-shell-ng2
npm run clean

View File

@ -1,4 +1,21 @@
#!/usr/bin/env bash
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
cd ../ng2-components/${PACKAGE}; npm version patch ; cd ../../scripts/
done
./update-version.sh ^0.1.0
./npm-link-demo-shell.sh
cd ../demo-shell-ng2
#!/bin/sh

View File

@ -13,4 +13,4 @@ then
fi
echo "====== RENAMING 0.0.0-PLACEHOLDER to N.N.N version ======"
find ././../ng2-components/ -type f -name package.json -print0 | xargs -0 sed -i '' "s/0\\.0\\.0-PLACEHOLDER/${VERSION}/g"
find ././../ -type f -name package.json -print0 | xargs -0 sed -i '' "s/0\\.0\\.0-PLACEHOLDER/${VERSION}/g"