kopia lustrzana https://github.com/c9/core
link them in install-sdk
rodzic
fc8f90e8e9
commit
ee7e2c7ad0
|
@ -51,25 +51,36 @@ resetColor=$'\e[0m'
|
|||
updateNodeModules() {
|
||||
echo "${magenta}--- Running npm install --------------------------------------------${resetColor}"
|
||||
"$NPM" install --production
|
||||
|
||||
|
||||
for i in $(git show HEAD:node_modules/); do
|
||||
if [ "$i" != tree ] && [ "$i" != "HEAD:node_modules/" ]; then
|
||||
[ -d node_modules/$i ] || git checkout HEAD -- node_modules/$i;
|
||||
fi
|
||||
done
|
||||
|
||||
for pkg in kaefer smith; do
|
||||
pushd packages/$pkg
|
||||
npm link --production
|
||||
popd
|
||||
pushd node_modules
|
||||
rm -rf $pkg
|
||||
npm link $pkg
|
||||
popd
|
||||
done
|
||||
|
||||
rm -f package-lock.json
|
||||
|
||||
|
||||
echo "${magenta}--------------------------------------------------------------------${resetColor}"
|
||||
}
|
||||
|
||||
updateCore() {
|
||||
if [ "$NO_PULL" ]; then
|
||||
if [ "$NO_PULL" ]; then
|
||||
return 0;
|
||||
fi
|
||||
|
||||
|
||||
# without this git merge fails on windows
|
||||
mv ./scripts/install-sdk.sh './scripts/.#install-sdk-tmp.sh'
|
||||
rm -f ./scripts/.install-sdk-tmp.sh
|
||||
rm -f ./scripts/.install-sdk-tmp.sh
|
||||
cp './scripts/.#install-sdk-tmp.sh' ./scripts/install-sdk.sh
|
||||
git checkout -- ./scripts/install-sdk.sh
|
||||
|
||||
|
|
Ładowanie…
Reference in New Issue