Add state.js ES module with in-memory state (operand1, operand2, selectedOperation, result, error), getters/setters for each property, and a reset() function. Update CLAUDE.md project structure listing.
1.2 KiB
1.2 KiB
Simple Calculator
Greenfield project. Implementation is driven by the Vexa AI-SDLC pipeline (Jira project TSC).
Project Structure
/
├── index.html # Calculator UI (semantic HTML5)
├── styles.css # Responsive CSS layout and styling
├── state.js # In-memory application state manager (ES module)
├── README.md # Project overview
└── CLAUDE.md # This file
Build Commands
No build system has been configured yet. Update this section once a language/framework is chosen and dependencies are added.
Test Commands
No test suite has been configured yet. Update this section once testing infrastructure is in place.
Development Commands
No dev server or REPL is configured yet. Update this section once the implementation begins.
Architecture Notes
- Domain: Simple Calculator — arithmetic operations (add, subtract, multiply, divide at minimum).
- Stack: Plain HTML/CSS/JS — no framework or build step.
index.htmlcontains the full UI structure: operand inputs, operation buttons, calculate/clear buttons, result<output>, and an error<p role="alert">.
Code Style
No linter or formatter has been configured yet. Update this section once tooling is set up.