Compare commits
2 commits
18934e366b
...
0e82470a86
Author | SHA1 | Date | |
---|---|---|---|
0e82470a86 | |||
376b23b93e |
1 changed files with 9 additions and 5 deletions
14
tool
14
tool
|
@ -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() {
|
||||
|
|
Reference in a new issue