清理无用代码
This commit is contained in:
1 parent
7b1ad8584d
commit
b7f54cddac
26 files changed
+167
-225
No files matched your search
@@ -10,7 +10,3 @@ cd "$root_dir"
|
||||
|
||||
[ -d node_modules ] || bun install --frozen-lockfile
|
||||
bun run --cwd frontend build
|
||||
|
||||
if build_key=$(sh scripts/build-key.sh frontend 2>/dev/null); then
|
||||
printf '%s\n' "$build_key" > frontend/dist/.nodeflare-revision
|
||||
fi
|
||||
@@ -1,25 +0,0 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
case "${1:-}" in
|
||||
frontend)
|
||||
paths="frontend package.json bun.lock scripts/build-frontend.sh scripts/build-key.sh scripts/resolve-version.sh"
|
||||
;;
|
||||
backend)
|
||||
paths="backend/Cargo.toml backend/Cargo.lock backend/src backend/migrations scripts/build-backend.sh scripts/build-key.sh scripts/resolve-version.sh"
|
||||
;;
|
||||
*)
|
||||
echo "usage: $0 frontend|backend" >&2
|
||||
exit 2
|
||||
;;
|
||||
esac
|
||||
|
||||
{
|
||||
sh scripts/resolve-version.sh
|
||||
git rev-parse HEAD
|
||||
git diff --binary -- $paths
|
||||
git ls-files --others --exclude-standard -- $paths | while IFS= read -r file; do
|
||||
printf '%s ' "$file"
|
||||
git hash-object "$file"
|
||||
done
|
||||
} | cksum | awk '{ print $1 "-" $2 }'
|
||||
Reference in new issue
Block a user