From 6a75ffeb0425eb49b168edf8981b8c807c1d35ec Mon Sep 17 00:00:00 2001 From: "Yifeng \"Evan\" Wang" <7312949+doodlewind@users.noreply.github.com> Date: Wed, 22 Jul 2026 14:10:27 +0800 Subject: [PATCH] chore: mark the generated JS as linguist-generated MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The JavaScript under crates/pocket-pi/js/ is build output — esbuild's bundle of pi plus the runtime glue transpiled from js/src/**.ts — committed only so cargo builds Rust-only (it's include_str!'d). GitHub was counting it as source. Mark it generated so language stats + diffs reflect that the real sources are TypeScript. Co-Authored-By: Claude Opus 4.8 --- .gitattributes | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 .gitattributes diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..3b9e644 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,8 @@ +# The JavaScript under crates/pocket-pi/js/ is GENERATED by `node js/build.mjs` +# from the TypeScript sources in js/src/ (plus the esbuild bundle of pi). It is +# committed only so `cargo` builds Rust-only (the crate embeds it via +# include_str!) — it is build output, not source. Mark it generated so GitHub's +# language stats and diffs treat it as such; the real sources are the .ts. +crates/pocket-pi/js/*.js linguist-generated=true +crates/pocket-pi/js/node/*.js linguist-generated=true +crates/pocket-pi/js/pi-full/*.js linguist-generated=true