nova-cli 0.2.3 → 0.2.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53123f326f497bb337df7002d55935867e2f00fc9b19160cd9069c8a42fe4343
|
4
|
+
data.tar.gz: 4041e88ce82242013e0ca9099b042968cf287002b3e359b0491c08863913f939
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81696123b344b64628625ed5771a75fcfaa785757926ff78eb731d9c81f46ef0a5204095cccdbd14cf310f430c8001eddca915b7738a7fe03706f675d6041aa4
|
7
|
+
data.tar.gz: 4e966b66be6933036997e6e9c83783c0ea02dc62550f16a26b1a264f4a2a86293df3aad0a9a1de70f67f2f9282845eb3506bd919493595e060101cb0c9fe2b3c
|
data/README.md
CHANGED
@@ -60,7 +60,7 @@ When you run `nova new [app_name]`, it creates the following structure:
|
|
60
60
|
Nova now includes two foundational tasks by default:
|
61
61
|
|
62
62
|
### Task 1: Generate Application
|
63
|
-
- Sets up Rails 8 with PostgreSQL, Tailwind CSS, RSpec, and
|
63
|
+
- Sets up Rails 8 with PostgreSQL, Tailwind CSS, RSpec, and Capybara
|
64
64
|
- Configures Flowbite for UI components
|
65
65
|
- Creates a hello world page to verify setup
|
66
66
|
- Based on battle-tested Rails application setup
|
@@ -122,10 +122,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
122
122
|
|
123
123
|
---
|
124
124
|
|
125
|
-
## Prompt Library
|
126
|
-
|
127
|
-
Explore a collection of example prompts for various development tasks in our [Prompt Library](./prompt-library/). These can be adapted for use with AI assistants to help with common setup and generation tasks.
|
128
|
-
|
129
|
-
---
|
130
|
-
|
131
125
|
For questions or suggestions, please contact Ryan Francis (ryan@launchpadlab.com).
|
data/lib/nova/templates/nova.mdc
CHANGED
@@ -49,7 +49,7 @@ You are working in a Nova project that follows a structured product development
|
|
49
49
|
- Keep methods under 10 lines (use POROs if needed)
|
50
50
|
- Name POROs as verbs with single `call` method
|
51
51
|
- Components should follow design system
|
52
|
-
- Write E2E tests with
|
52
|
+
- Write E2E tests with Capybara
|
53
53
|
|
54
54
|
### Task Management
|
55
55
|
- Work through tasks sequentially in /tasks
|
@@ -1,7 +1,7 @@
|
|
1
1
|
# Generate Rails Application
|
2
2
|
|
3
3
|
## Task Overview
|
4
|
-
In the code/ directory generate a Rails 8 application with PostgreSQL, Tailwind CSS, Rspec, Flowbite, and
|
4
|
+
In the code/ directory generate a Rails 8 application with PostgreSQL, Tailwind CSS, Rspec, Flowbite, and Capybara to serve as the foundation for the project.
|
5
5
|
|
6
6
|
## Prerequisites
|
7
7
|
- Review PRD and technical requirements in ../1_big-picture/
|
@@ -39,14 +39,14 @@ In the code/ directory generate a Rails 8 application with PostgreSQL, Tailwind
|
|
39
39
|
- [ ] 4.4 Add Flowbite tooltip component to test integration
|
40
40
|
- [ ] 4.5 Verify page loads at `http://localhost:3000/hello`
|
41
41
|
|
42
|
-
- [ ] 5.0 Set up
|
43
|
-
- [ ] 5.1
|
44
|
-
- [ ] 5.2 Create simple
|
45
|
-
- [ ] 5.3 Add
|
46
|
-
- [ ] 5.4 Verify tests run: `
|
42
|
+
- [ ] 5.0 Set up Capybara for E2E Testing
|
43
|
+
- [ ] 5.1 Configure Capybara in `spec/rails_helper.rb`
|
44
|
+
- [ ] 5.2 Create simple system test for Hello World page in `spec/system/hello_world_spec.rb`
|
45
|
+
- [ ] 5.3 Add selenium-webdriver to Gemfile if not present: `bundle add selenium-webdriver --group test`
|
46
|
+
- [ ] 5.4 Verify tests run: `bundle exec rspec spec/system`
|
47
47
|
|
48
48
|
- [ ] 6.0 Final Setup & Verification
|
49
|
-
- [ ] 6.1 Verify all tests pass (RSpec
|
49
|
+
- [ ] 6.1 Verify all tests pass (RSpec including system tests)
|
50
50
|
- [ ] 6.2 Verify server starts cleanly: `bin/dev`
|
51
51
|
- [ ] 6.3 Create git commit for baseline setup
|
52
52
|
|
@@ -60,13 +60,13 @@ In the code/ directory generate a Rails 8 application with PostgreSQL, Tailwind
|
|
60
60
|
| `app/javascript/application.js` | JS entry point | 3.2 | ⏳ |
|
61
61
|
| `app/controllers/pages_controller.rb` | Static pages controller | 4.1 | ⏳ |
|
62
62
|
| `app/views/pages/hello.html.erb` | Hello world view | 4.3 | ⏳ |
|
63
|
-
| `
|
64
|
-
| `package.json` | Node.js scripts | 5.3 | ⏳ |
|
63
|
+
| `spec/system/hello_world_spec.rb` | System test | 5.2 | ⏳ |
|
65
64
|
|
66
65
|
### Files to Modify
|
67
66
|
| File Path | Changes | Task Ref | Status |
|
68
67
|
|-----------|---------|----------|--------|
|
69
68
|
| `config/routes.rb` | Add hello route | 4.2 | ⏳ |
|
69
|
+
| `spec/rails_helper.rb` | Configure Capybara | 5.1 | ⏳ |
|
70
70
|
|
71
71
|
## Notes
|
72
72
|
- Follow Tailwind v4 documentation as many conventions have changed from v3
|
@@ -105,7 +105,7 @@ These are NOT throwaway prototype pages. Create production-ready routes, control
|
|
105
105
|
- [ ] 10.0 Testing and Validation
|
106
106
|
- [ ] 10.1 Write controller tests
|
107
107
|
- [ ] 10.2 Create system tests for user flows
|
108
|
-
- [ ] 10.3 Add E2E tests with
|
108
|
+
- [ ] 10.3 Add E2E tests with Capybara
|
109
109
|
- [ ] 10.4 Test all responsive breakpoints
|
110
110
|
- [ ] 10.5 Validate accessibility
|
111
111
|
|
data/lib/nova.rb
CHANGED