rolemodel-rails 2.7.0 → 2.7.1
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/README.md +1 -0
- data/lib/generators/rolemodel/core_setup/README.md +20 -11
- data/lib/generators/rolemodel/core_setup/USAGE +10 -6
- data/lib/generators/rolemodel/core_setup/core_setup_generator.rb +7 -0
- data/lib/generators/rolemodel/ui_components/README.md +2 -1
- data/lib/rolemodel/utility/task_tools.rb +1 -1
- data/lib/rolemodel/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b95ac3ec58a4a00a09e5777f82d033bedf584615a874de02f32cdfcc353ef5b7
|
|
4
|
+
data.tar.gz: 760c16f159ed100048c949bb01e94f5ac4d4a8e46a2aa3c2d64f5f30ff6ced93
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c72e0e6e196fb8e5b09447cb439126d4112f76746f4f1e017d858cfa93265f2c2131a8a81b35d4181e182f79dc4c1819c76e43a114253dacc43b0a729f96645f
|
|
7
|
+
data.tar.gz: 865f6f41f36e2060d4328ca7756a6688c8ed886d6db9a42ba1975a1c0d0f996a36857227ac862be7e780f1938af1c8d6e8094654009cd3306dbffe9427657b3e
|
data/README.md
CHANGED
|
@@ -121,6 +121,7 @@ Generators that leave behind conventions a coding agent needs to follow also ins
|
|
|
121
121
|
| `rolemodel:turbo:modals` | `turbo-modals` |
|
|
122
122
|
| `rolemodel:turbo:form` | `dynamic-forms` |
|
|
123
123
|
| `rolemodel:soft_destroyable` | `soft-destroyable` |
|
|
124
|
+
| `rolemodel:core_setup` | `polymorphic-parent-resources`, `rake-tasks` |
|
|
124
125
|
|
|
125
126
|
## Utilities
|
|
126
127
|
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
# Core Setup Generator
|
|
2
2
|
|
|
3
|
+
[USAGE](./USAGE)
|
|
4
|
+
|
|
3
5
|
Runs the core generators every new Rails app should have. Unlike
|
|
4
6
|
`rolemodel:all`, this skips the app-specific extras (React, SaaS/Devise,
|
|
5
7
|
GoodJob, Kaminari, etc.) so you get just the standard baseline — a new Rails
|
|
@@ -9,21 +11,28 @@ app you can push straight to Heroku right after generation.
|
|
|
9
11
|
|
|
10
12
|
- A freshly generated Rails app
|
|
11
13
|
|
|
14
|
+
## Options
|
|
15
|
+
|
|
16
|
+
- `--material`, `--phosphor`, `--tabler`, `--feather`, `--lucide`, or `--custom`
|
|
17
|
+
picks the Optics icon library up front. Without one, the icons generator asks.
|
|
18
|
+
- `--skip-deployable` skips Heroku, Sentry, and Lograge.
|
|
19
|
+
|
|
12
20
|
## What you get
|
|
13
21
|
|
|
14
|
-
- [GitHub](../github) — standard GitHub configuration
|
|
15
|
-
- [Heroku](../heroku) — standard Heroku deployment configuration
|
|
16
|
-
- [Readme](../readme) — standard project README
|
|
17
|
-
- [Webpack](../webpack) — Webpack v5 for JS and CSS
|
|
18
|
-
- [Sentry](../sentry) — error monitoring for Ruby and JavaScript
|
|
19
22
|
- [Slim](../slim) — Slim templates
|
|
20
|
-
- [
|
|
21
|
-
|
|
22
|
-
- [Testing](../testing) — RSpec, FactoryBot, parallel_tests, TestProf
|
|
23
|
-
(pass `--js-runner` to include jasmine-playwright-runner)
|
|
23
|
+
- [Webpack](../webpack) — Webpack v5 for JS and CSS
|
|
24
|
+
- [Optics](../optics) — Optics design system and icons
|
|
24
25
|
- [SimpleForm](../simple_form) — SimpleForm with our configuration
|
|
25
26
|
- [Tom Select](../tom_select) — Tom Select with a Stimulus controller and SimpleForm inputs
|
|
27
|
+
- [Testing](../testing) — RSpec, FactoryBot, parallel_tests, and TestProf
|
|
28
|
+
- [Turbo](../turbo) — Turbo 8 setup, confirm dialogs, modals, and dynamic forms
|
|
29
|
+
- [Flash](../ui_components/flash) — flash messages
|
|
30
|
+
- [GitHub](../github) — standard GitHub configuration
|
|
31
|
+
- [Readme](../readme) — standard project README
|
|
26
32
|
- [Linters](../linters) — Rubocop and ESLint
|
|
27
|
-
- [
|
|
28
|
-
- [
|
|
33
|
+
- [Heroku](../heroku) — standard Heroku deployment configuration
|
|
34
|
+
- [Sentry](../sentry) — error monitoring for Ruby and JavaScript
|
|
29
35
|
- [Lograge](../lograge) — condensed request logging
|
|
36
|
+
- The [`polymorphic-parent-resources`](https://github.com/RoleModel/skills/tree/main/skills/polymorphic-parent-resources)
|
|
37
|
+
and [`rake-tasks`](https://github.com/RoleModel/skills/tree/main/skills/rake-tasks) agent skills for
|
|
38
|
+
`resource_for` and `Rolemodel::Utility::TaskTools`, installed into `.agents/skills`
|
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
Description:
|
|
2
2
|
Runs the core generators every new Rails app should have
|
|
3
3
|
|
|
4
|
-
Sets up
|
|
5
|
-
|
|
6
|
-
and Lograge.
|
|
4
|
+
Sets up Slim, Webpack, Optics, SimpleForm, Tom Select, testing (RSpec &
|
|
5
|
+
friends), Turbo, flash messages, GitHub config, README, linters, Heroku
|
|
6
|
+
deployment, Sentry, and Lograge. It also installs the agent skills for
|
|
7
|
+
resource_for and TaskTools. The result is an app that is ready to push
|
|
8
|
+
directly to Heroku.
|
|
7
9
|
|
|
8
|
-
Pass
|
|
9
|
-
|
|
10
|
+
Pass an icon library flag (--material, --phosphor, --tabler, --feather,
|
|
11
|
+
--lucide, or --custom) to choose the Optics icons up front.
|
|
12
|
+
|
|
13
|
+
Pass --skip-deployable to skip Heroku, Sentry, and Lograge.
|
|
10
14
|
|
|
11
15
|
Example:
|
|
12
|
-
rails generate rolemodel:core_setup
|
|
16
|
+
rails generate rolemodel:core_setup --material
|
|
@@ -6,6 +6,13 @@ module Rolemodel
|
|
|
6
6
|
|
|
7
7
|
class_option :skip_deployable, type: :boolean, default: false, desc: 'skip generators for app deployment (Heroku, Sentry, Lograge)'
|
|
8
8
|
|
|
9
|
+
def install_agent_skills
|
|
10
|
+
say 'Installing agent skills for the rolemodel_rails utilities', :green
|
|
11
|
+
|
|
12
|
+
install_skill 'polymorphic-parent-resources'
|
|
13
|
+
install_skill 'rake-tasks'
|
|
14
|
+
end
|
|
15
|
+
|
|
9
16
|
def run_the_core_generators
|
|
10
17
|
generate 'rolemodel:slim'
|
|
11
18
|
generate 'rolemodel:webpack'
|
data/lib/rolemodel/version.rb
CHANGED