chore: fix package.json, add dev tooling, and configure API proxy - #32
Merged
KarenZita01 merged 1 commit intoJul 26, 2026
Conversation
- Add npm scripts: format, format:check, typecheck, clean, analyze, validate, storybook, build-storybook, gen:api, gen:contracts, dev:proxy, test, postinstall - Add devDependencies: concurrently, husky, openapi-typescript, prettier, tsx - Add API proxy rewrites in next.config.ts for /api/* → localhost:3001 - Create scripts/generate-contract-types.ts for Soroban contract type generation - Create scripts/dev-proxy.ts as a dev proxy scaffold - Add .nvmrc pinning Node.js 20.x for consistent development - Add .vscode/launch.json with debug configurations for Next.js and validation - Add .prettierrc for consistent code formatting - Set up Husky with pre-commit hook running typecheck + lint - Update .gitignore with contract-specs/ entry Closes EquipChain#29
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR addresses Issue #29, fixing developer tooling gaps and improving the developer experience for the EquipChain frontend.
Changes
package.json
format/format:check— Prettier formatting for consistencytypecheck— TypeScript type checking (tsc --noEmit)clean— Remove build artifacts (.nextandnode_modules)analyze— Bundle analysis withANALYZE=true next buildvalidate— Full validation pipeline: typecheck → lint → buildtest— Test placeholder (no tests configured yet)storybook/build-storybook— Storybook integration scripts (for future use)gen:api— OpenAPI TypeScript client generationgen:contracts— Soroban contract type generationdev:proxy— Dev server with API proxy (uses concurrently)postinstall— Husky hook setupconcurrently— Run multiple commands in parallelhusky— Git hooks for pre-commit validationopenapi-typescript— API client type generationprettier— Code formattingtsx— TypeScript execution (for scripts)next.config.ts
rewrites()configuration to proxy/api/*requests tohttp://localhost:3001/api/*during developmentNew Files
.prettierrc— Prettier configuration (no semicolons, double quotes, trailing commas).nvmrc— Pins Node.js to version 20.x for consistent development environments.vscode/launch.json— VS Code debug configurations for Next.js server, client, full-stack, typecheck, and validatescripts/generate-contract-types.ts— TypeScript script that reads Soroban contract spec JSON and generates TypeScript type definitionsscripts/dev-proxy.ts— Scaffold for custom development proxy behaviorGit Hooks
typecheckandlintbefore every commit.gitignore
contract-specs/to prevent local contract specs from being committedVerification
All CI checks pass locally:
npm install— No warnings or errorsnpm run typecheck— Zero TypeScript errorsnpm run lint— Zero ESLint errors or warningsnpm run build— Next.js production build succeedsCloses
Closes #29
Closes #29