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