From 3b810312a6f78e6c35867a86f4d78d4125407760 Mon Sep 17 00:00:00 2001 From: Pushkar Modi <116958355+Pushkar111@users.noreply.github.com> Date: Sat, 13 Dec 2025 15:34:16 +0530 Subject: [PATCH] fix(scripts): add npm scripts for Hardhat development workflow - Added standard Hardhat scripts (node, compile, test, clean) - Added 'dev' script to start local Hardhat node - Added web frontend shortcuts (web:dev, web:build, web:start, web:lint) - Enables consistent npm-style workflow for contributors Fixes #100 --- package.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index db8e6c82..fe5ee9dd 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,17 @@ { "name": "hardhat-project", + "scripts": { + "node": "hardhat node", + "compile": "hardhat compile", + "test": "hardhat test", + "test:coverage": "hardhat coverage", + "clean": "hardhat clean", + "dev": "hardhat node", + "web:dev": "cd web && npm run dev", + "web:build": "cd web && npm run build", + "web:start": "cd web && npm start", + "web:lint": "cd web && npm run lint" + }, "devDependencies": { "@nomicfoundation/hardhat-toolbox": "^5.0.0", "hardhat": "^2.22.17" @@ -9,4 +21,4 @@ "@radix-ui/react-separator": "^1.1.7", "sonner": "^2.0.5" } -} +} \ No newline at end of file