rails_app_generator 0.1.1 → 0.1.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 +4 -4
- data/.builders/generators/project-plan.rb +9 -1
- data/.rubocop.yml +1 -0
- data/CHANGELOG.md +22 -0
- data/after_templates/rag_bootstrap/component-modal.html +18 -0
- data/after_templates/rag_bootstrap.rb +1 -0
- data/after_templates/rag_simple.rb +2 -13
- data/after_templates/rag_tailwind.rb +2 -4
- data/after_templates/rag_tailwind_daisyui/index.html.erb +181 -0
- data/after_templates/rag_tailwind_daisyui.rb +25 -0
- data/after_templates/rag_tailwind_hotwire/home/controller.rb +9 -0
- data/after_templates/rag_tailwind_hotwire/home/helper.rb +7 -0
- data/after_templates/rag_tailwind_hotwire/home/increment.html.erb +4 -0
- data/after_templates/rag_tailwind_hotwire/home/index.html +5 -0
- data/after_templates/rag_tailwind_hotwire.rb +23 -0
- data/after_templates/rag_tailwind_hotwire_form/_contact.html.erb +8 -0
- data/after_templates/rag_tailwind_hotwire_form/_count.html.erb +1 -0
- data/after_templates/rag_tailwind_hotwire_form/_flash.html.erb +6 -0
- data/after_templates/rag_tailwind_hotwire_form/_form.html.erb +16 -0
- data/after_templates/rag_tailwind_hotwire_form/_list.html.erb +19 -0
- data/after_templates/rag_tailwind_hotwire_form/application.html.erb +23 -0
- data/after_templates/rag_tailwind_hotwire_form/application.js +30 -0
- data/after_templates/rag_tailwind_hotwire_form/application.tailwind.css +111 -0
- data/after_templates/rag_tailwind_hotwire_form/application_helper.rb +15 -0
- data/after_templates/rag_tailwind_hotwire_form/contact.rb +5 -0
- data/after_templates/rag_tailwind_hotwire_form/contacts_controller.rb +98 -0
- data/after_templates/rag_tailwind_hotwire_form/create.turbo_stream.erb +4 -0
- data/after_templates/rag_tailwind_hotwire_form/edit.html.erb +12 -0
- data/after_templates/rag_tailwind_hotwire_form/index.html.erb +5 -0
- data/after_templates/rag_tailwind_hotwire_form/new.html.erb +12 -0
- data/after_templates/rag_tailwind_hotwire_form/show.html.erb +16 -0
- data/after_templates/rag_tailwind_hotwire_form/update.turbo_stream.erb +2 -0
- data/after_templates/rag_tailwind_hotwire_form.rb +54 -0
- data/after_templates/rag_tailwind_hotwire_form_search/_contact.html.erb +8 -0
- data/after_templates/rag_tailwind_hotwire_form_search/_count.html.erb +1 -0
- data/after_templates/rag_tailwind_hotwire_form_search/_flash.html.erb +6 -0
- data/after_templates/rag_tailwind_hotwire_form_search/_form.html.erb +16 -0
- data/after_templates/rag_tailwind_hotwire_form_search/_list.html.erb +19 -0
- data/after_templates/rag_tailwind_hotwire_form_search/_theme_changer.html.erb +35 -0
- data/after_templates/rag_tailwind_hotwire_form_search/application.html.erb +25 -0
- data/after_templates/rag_tailwind_hotwire_form_search/application.js +40 -0
- data/after_templates/rag_tailwind_hotwire_form_search/application.tailwind.css +111 -0
- data/after_templates/rag_tailwind_hotwire_form_search/application_helper.rb +15 -0
- data/after_templates/rag_tailwind_hotwire_form_search/contact.rb +13 -0
- data/after_templates/rag_tailwind_hotwire_form_search/contacts_controller.rb +72 -0
- data/after_templates/rag_tailwind_hotwire_form_search/create.turbo_stream.erb +4 -0
- data/after_templates/rag_tailwind_hotwire_form_search/edit.html.erb +12 -0
- data/after_templates/rag_tailwind_hotwire_form_search/index.html.erb +16 -0
- data/after_templates/rag_tailwind_hotwire_form_search/new.html.erb +12 -0
- data/after_templates/rag_tailwind_hotwire_form_search/show.html.erb +16 -0
- data/after_templates/rag_tailwind_hotwire_form_search/update.turbo_stream.erb +2 -0
- data/after_templates/rag_tailwind_hotwire_form_search.rb +66 -0
- data/docs/project-plan/project.drawio +50 -26
- data/docs/project-plan/project_done.svg +1 -1
- data/docs/project-plan/project_in_progress.svg +1 -1
- data/docs/project-plan/project_todo.svg +1 -1
- data/lib/rails_app_generator/app_generator.rb +34 -0
- data/lib/rails_app_generator/cli/diff.rb +10 -8
- data/lib/rails_app_generator/diff/open_in_editor.rb +1 -1
- data/lib/rails_app_generator/diff/processor.rb +8 -1
- data/lib/rails_app_generator/version.rb +1 -1
- data/package-lock.json +1019 -85
- data/package.json +4 -1
- data/profiles/rag-tailwind-daisyui.json +10 -0
- data/profiles/rag-tailwind-hotwire-form-search.json +13 -0
- data/profiles/rag-tailwind-hotwire-form.json +13 -0
- data/profiles/rag-tailwind-hotwire.json +12 -0
- metadata +51 -2
data/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "rails_app_generator",
|
3
|
-
"version": "0.1.
|
3
|
+
"version": "0.1.4",
|
4
4
|
"description": "Create new Rails Application with custom opinions",
|
5
5
|
"scripts": {
|
6
6
|
"release": "semantic-release"
|
@@ -10,5 +10,8 @@
|
|
10
10
|
"@semantic-release/changelog": "^6.0.1",
|
11
11
|
"@semantic-release/git": "^10.0.1",
|
12
12
|
"semantic-release": "^19.0.3"
|
13
|
+
},
|
14
|
+
"dependencies": {
|
15
|
+
"daisyui": "^2.20.0"
|
13
16
|
}
|
14
17
|
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{
|
2
|
+
"args": {
|
3
|
+
"app_path": "tailwind_daisyui",
|
4
|
+
"destination_root": "/Users/davidcruwys/dev/kgems/rails_app_generator/a/rag"
|
5
|
+
},
|
6
|
+
"opts": {
|
7
|
+
"skip_test": true,
|
8
|
+
"template": "/Users/davidcruwys/dev/kgems/rails_app_generator/after_templates/rag_tailwind_daisyui.rb"
|
9
|
+
}
|
10
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"args": {
|
3
|
+
"app_path": "tailwind_hotwire_form_search",
|
4
|
+
"destination_root": "/Users/davidcruwys/dev/kgems/rails_app_generator/a/rag"
|
5
|
+
},
|
6
|
+
"opts": {
|
7
|
+
"skip_test": true,
|
8
|
+
"template": "/Users/davidcruwys/dev/kgems/rails_app_generator/after_templates/rag_tailwind_hotwire_form_search.rb",
|
9
|
+
"note": "tailwind needs to be installed manually because of the custom tailwind plugins",
|
10
|
+
"XXX-css": "tailwind",
|
11
|
+
"javascript": "esbuild"
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,13 @@
|
|
1
|
+
{
|
2
|
+
"args": {
|
3
|
+
"app_path": "tailwind_hotwire_form",
|
4
|
+
"destination_root": "/Users/davidcruwys/dev/kgems/rails_app_generator/a/rag"
|
5
|
+
},
|
6
|
+
"opts": {
|
7
|
+
"skip_test": true,
|
8
|
+
"template": "/Users/davidcruwys/dev/kgems/rails_app_generator/after_templates/rag_tailwind_hotwire_form.rb",
|
9
|
+
"note": "tailwind needs to be installed manually because of the custom tailwind plugins",
|
10
|
+
"XXX-css": "tailwind",
|
11
|
+
"javascript": "esbuild"
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,12 @@
|
|
1
|
+
{
|
2
|
+
"args": {
|
3
|
+
"app_path": "tailwind_hotwire",
|
4
|
+
"destination_root": "/Users/davidcruwys/dev/kgems/rails_app_generator/a/rag"
|
5
|
+
},
|
6
|
+
"opts": {
|
7
|
+
"skip_test": true,
|
8
|
+
"template": "/Users/davidcruwys/dev/kgems/rails_app_generator/after_templates/rag_tailwind_hotwire.rb",
|
9
|
+
"css": "tailwind",
|
10
|
+
"javascript": "esbuild"
|
11
|
+
}
|
12
|
+
}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_app_generator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Cruwys
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-07-
|
11
|
+
date: 2022-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bootsnap
|
@@ -156,6 +156,7 @@ files:
|
|
156
156
|
- after_templates/rag_bootstrap/component-cards-styled.html
|
157
157
|
- after_templates/rag_bootstrap/component-footer.html
|
158
158
|
- after_templates/rag_bootstrap/component-hero.html
|
159
|
+
- after_templates/rag_bootstrap/component-modal.html
|
159
160
|
- after_templates/rag_bootstrap/component-nav.html
|
160
161
|
- after_templates/rag_bootstrap/custom-bootstrap-import.scss
|
161
162
|
- after_templates/rag_bootstrap/custom-using-css.css
|
@@ -174,6 +175,50 @@ files:
|
|
174
175
|
- after_templates/rag_tailwind/component-nav.html
|
175
176
|
- after_templates/rag_tailwind/component-section-begin.html
|
176
177
|
- after_templates/rag_tailwind/component-section-end.html
|
178
|
+
- after_templates/rag_tailwind_daisyui.rb
|
179
|
+
- after_templates/rag_tailwind_daisyui/index.html.erb
|
180
|
+
- after_templates/rag_tailwind_hotwire.rb
|
181
|
+
- after_templates/rag_tailwind_hotwire/home/controller.rb
|
182
|
+
- after_templates/rag_tailwind_hotwire/home/helper.rb
|
183
|
+
- after_templates/rag_tailwind_hotwire/home/increment.html.erb
|
184
|
+
- after_templates/rag_tailwind_hotwire/home/index.html
|
185
|
+
- after_templates/rag_tailwind_hotwire_form.rb
|
186
|
+
- after_templates/rag_tailwind_hotwire_form/_contact.html.erb
|
187
|
+
- after_templates/rag_tailwind_hotwire_form/_count.html.erb
|
188
|
+
- after_templates/rag_tailwind_hotwire_form/_flash.html.erb
|
189
|
+
- after_templates/rag_tailwind_hotwire_form/_form.html.erb
|
190
|
+
- after_templates/rag_tailwind_hotwire_form/_list.html.erb
|
191
|
+
- after_templates/rag_tailwind_hotwire_form/application.html.erb
|
192
|
+
- after_templates/rag_tailwind_hotwire_form/application.js
|
193
|
+
- after_templates/rag_tailwind_hotwire_form/application.tailwind.css
|
194
|
+
- after_templates/rag_tailwind_hotwire_form/application_helper.rb
|
195
|
+
- after_templates/rag_tailwind_hotwire_form/contact.rb
|
196
|
+
- after_templates/rag_tailwind_hotwire_form/contacts_controller.rb
|
197
|
+
- after_templates/rag_tailwind_hotwire_form/create.turbo_stream.erb
|
198
|
+
- after_templates/rag_tailwind_hotwire_form/edit.html.erb
|
199
|
+
- after_templates/rag_tailwind_hotwire_form/index.html.erb
|
200
|
+
- after_templates/rag_tailwind_hotwire_form/new.html.erb
|
201
|
+
- after_templates/rag_tailwind_hotwire_form/show.html.erb
|
202
|
+
- after_templates/rag_tailwind_hotwire_form/update.turbo_stream.erb
|
203
|
+
- after_templates/rag_tailwind_hotwire_form_search.rb
|
204
|
+
- after_templates/rag_tailwind_hotwire_form_search/_contact.html.erb
|
205
|
+
- after_templates/rag_tailwind_hotwire_form_search/_count.html.erb
|
206
|
+
- after_templates/rag_tailwind_hotwire_form_search/_flash.html.erb
|
207
|
+
- after_templates/rag_tailwind_hotwire_form_search/_form.html.erb
|
208
|
+
- after_templates/rag_tailwind_hotwire_form_search/_list.html.erb
|
209
|
+
- after_templates/rag_tailwind_hotwire_form_search/_theme_changer.html.erb
|
210
|
+
- after_templates/rag_tailwind_hotwire_form_search/application.html.erb
|
211
|
+
- after_templates/rag_tailwind_hotwire_form_search/application.js
|
212
|
+
- after_templates/rag_tailwind_hotwire_form_search/application.tailwind.css
|
213
|
+
- after_templates/rag_tailwind_hotwire_form_search/application_helper.rb
|
214
|
+
- after_templates/rag_tailwind_hotwire_form_search/contact.rb
|
215
|
+
- after_templates/rag_tailwind_hotwire_form_search/contacts_controller.rb
|
216
|
+
- after_templates/rag_tailwind_hotwire_form_search/create.turbo_stream.erb
|
217
|
+
- after_templates/rag_tailwind_hotwire_form_search/edit.html.erb
|
218
|
+
- after_templates/rag_tailwind_hotwire_form_search/index.html.erb
|
219
|
+
- after_templates/rag_tailwind_hotwire_form_search/new.html.erb
|
220
|
+
- after_templates/rag_tailwind_hotwire_form_search/show.html.erb
|
221
|
+
- after_templates/rag_tailwind_hotwire_form_search/update.turbo_stream.erb
|
177
222
|
- bin/console
|
178
223
|
- bin/setup
|
179
224
|
- docs/project-plan.md
|
@@ -248,6 +293,10 @@ files:
|
|
248
293
|
- profiles/rag-bootstrap.json
|
249
294
|
- profiles/rag-import-map.json
|
250
295
|
- profiles/rag-simple.json
|
296
|
+
- profiles/rag-tailwind-daisyui.json
|
297
|
+
- profiles/rag-tailwind-hotwire-form-search.json
|
298
|
+
- profiles/rag-tailwind-hotwire-form.json
|
299
|
+
- profiles/rag-tailwind-hotwire.json
|
251
300
|
- profiles/rag-tailwind.json
|
252
301
|
- sig/rails_app_generator.rbs
|
253
302
|
- templates/README.md.erb
|