mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
[misc] fix listing of services for bin/ scripts
This commit is contained in:
parent
430c284492
commit
36c03b11c8
3 changed files with 10 additions and 6 deletions
|
@ -2,19 +2,18 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
grep 'name:' config/services.js | \
|
node ./config/services.js | \
|
||||||
sed 's/.*name: "\(.*\)",/\1/' | \
|
|
||||||
while read service
|
while read service
|
||||||
do
|
do
|
||||||
pushd $service
|
pushd $service
|
||||||
echo "Compiling Service $service"
|
echo "Compiling Service $service"
|
||||||
case $service in
|
case $service in
|
||||||
web)
|
web)
|
||||||
npm run webpack:production
|
npm run webpack:production
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "$service doesn't require a compilation"
|
echo "$service doesn't require a compilation"
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
popd
|
popd
|
||||||
done
|
done
|
||||||
|
|
|
@ -2,8 +2,7 @@
|
||||||
|
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
grep 'name:' config/services.js | \
|
node ./config/services.js | \
|
||||||
sed 's/.*name: "\(.*\)",/\1/' | \
|
|
||||||
while read service
|
while read service
|
||||||
do
|
do
|
||||||
pushd $service
|
pushd $service
|
||||||
|
|
|
@ -55,3 +55,9 @@ module.exports = [
|
||||||
version: 'master',
|
version: 'master',
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
if (require.main === module) {
|
||||||
|
for (const service of module.exports) {
|
||||||
|
console.log(service.name)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue