Compare commits

...

2 commits

Author SHA1 Message Date
0e82470a86 chore(tool): fallar en errores
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-12-20 17:30:35 -03:00
376b23b93e chore(tool): ser más silencioso y fallar al bajar feeds 2022-12-20 17:29:56 -03:00

14
tool
View file

@ -1,18 +1,22 @@
#!/bin/sh
build_ts() {
./node_modules/.bin/esbuild compilar.ts --target=node18 --outdir=build.js --sourcemap
./node_modules/.bin/esbuild compilar.ts --target=node18 --outdir=build.js --sourcemap || exit $?
}
build() {
build_ts
node --enable-source-maps build.js/compilar.js
node --enable-source-maps build.js/compilar.js || exit $?
}
check() {
./node_modules/.bin/tsc --noEmit
./node_modules/.bin/tsc --noEmit || exit $?
}
refresh_feed() {
echo "Refreshing $1"
busybox wget -qO "cached-feeds/$1.xml" "$2" || exit $?
}
refresh_feeds() {
wget -nv -O cached-feeds/fauno.xml https://fauno.endefensadelsl.org/feed.xml
wget -nv -O cached-feeds/copiona.xml https://copiona.com/feed.xml
refresh_feed fauno https://fauno.endefensadelsl.org/feed.xml
refresh_feed copiona https://copiona.com/feed.xml
}
fatal() {