next_rails_scaffold 0.1.5 → 0.1.6

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: 61a007475e3652a12c1485ca409d7e3d3ac1ebe4e3bc14b77b2bd3846e70da4b
4
- data.tar.gz: c440c329a0c6eae1568ad570dcd3bb26f80a8959a7af16d8b9dea666b877e108
3
+ metadata.gz: ebe8e942bb0fb9b4b658d4b970be50f6ca420b9b26b02cc506550a29c06af493
4
+ data.tar.gz: c05f5a6c1fff8cfa7b0b8a54eb3b53fb294c2230251f0a627807e174210747d6
5
5
  SHA512:
6
- metadata.gz: ff1383e807e8b2587b2aaa49001d1a362bc57b774122d5e9bf83644da4f7fbaeab2b5e943a4ee51480f9e9e5149f66c25d5676c6612acdf4e3ebe359eee298ef
7
- data.tar.gz: b894860a96dec1fdbe8792700749c9fd1a58c741d39ec4ed13a7e898011c8f59c63e618af0d894864a3f53278e1fb2798676906da70440ad578cfb62037e4cdb
6
+ metadata.gz: ebc734ec72270b40483db5c51d9cd440d4f29d807557cfa233e5da403c1a44bc6ddf8650f85fce7f63953aafd1a7ee3662965ee0ec4463d0811528c9bfa16f8a
7
+ data.tar.gz: fd0c8b41f037046828eb72186d35ed67bd1cf1ffc20b53e48807d5a861c46ca68b83768eec5fd66be28c828e17a151932a9c98d412c3c7d77d6ed5e66d01bc0d
@@ -9,13 +9,6 @@ module Rails
9
9
  NODE_REQUIRED_VERSION = ">= 18.17.0"
10
10
  YARN_VERSION = "1.22.19"
11
11
  NEXT_VERSION = "14.0.2"
12
- NODULES_MODULES = [
13
- "@hookform/resolvers",
14
- "@tanstack/react-query",
15
- "axios",
16
- "react-hook-form",
17
- "zod"
18
- ].freeze
19
12
 
20
13
  argument :attributes, type: :array, default: [], banner: "field:type field:type"
21
14
 
@@ -54,8 +47,7 @@ module Rails
54
47
  empty_directory "frontend"
55
48
 
56
49
  inside("frontend") do
57
- create_next_app!
58
- install_dependencies!
50
+ install_hygen!
59
51
 
60
52
  run("npx hygen generate scaffold #{name} #{mapped_attributes.join(" ")}")
61
53
  run("yarn build")
@@ -100,11 +92,6 @@ module Rails
100
92
  run("npx hygen-add next-rails-scaffold")
101
93
  end
102
94
 
103
- def install_dependencies!
104
- install_hygen!
105
- run("yarn add #{NODULES_MODULES.join(" ")}")
106
- end
107
-
108
95
  def mapped_attributes
109
96
  attributes.map { |attr| "#{attr.name}:#{attr.type}" }
110
97
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NextRails
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.6"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: next_rails_scaffold
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raphael Araújo
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-15 00:00:00.000000000 Z
11
+ date: 2023-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails