From 471be20f1e1cca45dac2765132587f99df50e8d0 Mon Sep 17 00:00:00 2001 From: thejesh23 Date: Tue, 14 Jul 2026 05:47:38 -0700 Subject: [PATCH 1/3] Add Hardhat.gitignore Hardhat (https://hardhat.org/) is a widely-used development environment for Ethereum smart contracts. Its default project layout generates several directories that should not be committed. This template mirrors the .gitignore that ships in Hardhat's own example-project (packages/example-project/.gitignore in NomicFoundation/hardhat), limited to Hardhat-specific paths (generic Node.js paths such as node_modules and dist are already covered by Node.gitignore). Rules: - /artifacts, /cache: compiled contract output and compilation cache - /types: TypeChain output for @nomicfoundation/hardhat-typechain (v3) - /typechain-types: TypeChain output for @typechain/hardhat (v2) - /ignition/deployments: Hardhat Ignition deployment output --- community/Hardhat.gitignore | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 community/Hardhat.gitignore diff --git a/community/Hardhat.gitignore b/community/Hardhat.gitignore new file mode 100644 index 00000000..7bda0ba1 --- /dev/null +++ b/community/Hardhat.gitignore @@ -0,0 +1,19 @@ +# Hardhat +# https://hardhat.org/ +# +# Recommended: Node.gitignore + +# Compilation artifacts +/artifacts + +# Compilation cache +/cache + +# TypeChain-generated types +# Default for @nomicfoundation/hardhat-typechain (Hardhat 3) +/types +# Default for @typechain/hardhat (Hardhat 2) +/typechain-types + +# Hardhat Ignition deployment output +/ignition/deployments From dfa58ab9a52c4e11a0a7338e2f3c88857f8887c0 Mon Sep 17 00:00:00 2001 From: Thejesh <35212698+thejesh23@users.noreply.github.com> Date: Sat, 7 Nov 2026 18:47:33 -0800 Subject: [PATCH 2/3] Move Hardhat.gitignore to community/JavaScript/ --- community/{ => JavaScript}/Hardhat.gitignore | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename community/{ => JavaScript}/Hardhat.gitignore (100%) diff --git a/community/Hardhat.gitignore b/community/JavaScript/Hardhat.gitignore similarity index 100% rename from community/Hardhat.gitignore rename to community/JavaScript/Hardhat.gitignore From c7ac6bd6c61f8f969947d9252acf65330c83e0ed Mon Sep 17 00:00:00 2001 From: Thejesh <35212698+thejesh23@users.noreply.github.com> Date: Sat, 7 Nov 2026 18:47:33 -0800 Subject: [PATCH 3/3] Comment out /ignition/deployments by default Hardhat's versioning guide recommends committing Ignition deployment output, so leave it tracked unless the user opts out. --- community/JavaScript/Hardhat.gitignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/community/JavaScript/Hardhat.gitignore b/community/JavaScript/Hardhat.gitignore index 7bda0ba1..5e0221f0 100644 --- a/community/JavaScript/Hardhat.gitignore +++ b/community/JavaScript/Hardhat.gitignore @@ -16,4 +16,5 @@ /typechain-types # Hardhat Ignition deployment output -/ignition/deployments +# Uncomment if you don't wish to track your deployments in version control +# /ignition/deployments