From 29fcb8a5b2a939a9b9bae61ee447a5c319519080 Mon Sep 17 00:00:00 2001 From: Echo Date: Sun, 8 Feb 2026 14:02:36 +0000 Subject: [PATCH] feat: US-001 - Setup proiect Node.js Co-Authored-By: Claude Opus 4.6 --- test-ralph-workflow/.gitignore | 1 + test-ralph-workflow/README.md | 5 ++ test-ralph-workflow/package.json | 9 ++++ test-ralph-workflow/scripts/ralph/prd.json | 48 +++++++++++++++++++ .../scripts/ralph/progress.txt | 16 +++++++ 5 files changed, 79 insertions(+) create mode 100644 test-ralph-workflow/.gitignore create mode 100644 test-ralph-workflow/README.md create mode 100644 test-ralph-workflow/package.json create mode 100644 test-ralph-workflow/scripts/ralph/prd.json create mode 100644 test-ralph-workflow/scripts/ralph/progress.txt diff --git a/test-ralph-workflow/.gitignore b/test-ralph-workflow/.gitignore new file mode 100644 index 0000000..c2658d7 --- /dev/null +++ b/test-ralph-workflow/.gitignore @@ -0,0 +1 @@ +node_modules/ diff --git a/test-ralph-workflow/README.md b/test-ralph-workflow/README.md new file mode 100644 index 0000000..89d5775 --- /dev/null +++ b/test-ralph-workflow/README.md @@ -0,0 +1,5 @@ +# hello-ralph-test + +Proiect minimal pentru testare workflow Ralph. + +Un proiect Node.js simplu care validează capacitatea Ralph de a inițializa proiecte, scrie cod funcțional și rula teste. diff --git a/test-ralph-workflow/package.json b/test-ralph-workflow/package.json new file mode 100644 index 0000000..4193865 --- /dev/null +++ b/test-ralph-workflow/package.json @@ -0,0 +1,9 @@ +{ + "name": "hello-ralph-test", + "version": "1.0.0", + "description": "Proiect minimal pentru testare workflow Ralph", + "main": "src/hello.js", + "scripts": { + "test": "echo \"No tests yet\" && exit 0" + } +} diff --git a/test-ralph-workflow/scripts/ralph/prd.json b/test-ralph-workflow/scripts/ralph/prd.json new file mode 100644 index 0000000..880089f --- /dev/null +++ b/test-ralph-workflow/scripts/ralph/prd.json @@ -0,0 +1,48 @@ +{ + "projectName": "hello-ralph-test", + "branchName": "main", + "description": "Proiect minimal pentru testare workflow Ralph", + "userStories": [ + { + "id": "US-001", + "title": "Setup proiect Node.js", + "description": "Ca developer, vreau un proiect Node.js minimal cu package.json pentru că validez că Ralph poate initializa proiecte", + "priority": 1, + "acceptanceCriteria": [ + "package.json există cu name=\"hello-ralph-test\", version=\"1.0.0\"", + "README.md există cu descriere proiect", + ".gitignore există cu node_modules/" + ], + "passes": true, + "notes": "package.json, README.md, .gitignore create. Proiect inițializat." + }, + { + "id": "US-002", + "title": "Funcție hello simpla", + "description": "Ca user, vreau o funcție hello(name) care returnează salut pentru că validez că Ralph poate scrie cod funcțional", + "priority": 2, + "acceptanceCriteria": [ + "src/hello.js există", + "Funcție hello(name) returnează \"Hello, {name}!\"", + "Exportată ca module.exports = { hello }", + "Funcția trimite toLowerCase pe name" + ], + "passes": false, + "notes": "" + }, + { + "id": "US-003", + "title": "Test pentru hello", + "description": "Ca developer, vreau un test simplu pentru funcția hello pentru că validez quality checks Ralph", + "priority": 3, + "acceptanceCriteria": [ + "package.json include \"test\" script și dev dependency jest", + "tests/hello.test.js există", + "Test verifică hello(\"World\") === \"Hello, world!\"", + "npm test passes" + ], + "passes": false, + "notes": "" + } + ] +} diff --git a/test-ralph-workflow/scripts/ralph/progress.txt b/test-ralph-workflow/scripts/ralph/progress.txt new file mode 100644 index 0000000..94d4cdf --- /dev/null +++ b/test-ralph-workflow/scripts/ralph/progress.txt @@ -0,0 +1,16 @@ +# Ralph Progress Log +Started: Sun Feb 8 14:01:10 UTC 2026 +Project: hello-ralph-test +--- + +## Iterație: 2026-02-08T14:02:00Z +### Story implementat: US-001 - Setup proiect Node.js +### Status: Complete + +### Learnings: +- Branch-ul PRD era `main`, dar repo-ul avea doar `master`. Am creat branch `main`. +- Proiect minimal: package.json, README.md, .gitignore. + +### Next steps: +- US-002: Implementare funcție hello(name) în src/hello.js +---