From a6808c5485853a86e7ffaf5cd802bc9e4ee563b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raphael=20Ara=C3=BAjo?= Date: Thu, 16 Nov 2023 08:51:46 -0300 Subject: [PATCH] Restored create app action --- Gemfile.lock | 2 +- lib/generators/rails/next_rails/next_rails_generator.rb | 1 + lib/next_rails/version.rb | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index fc30558..0bf38dc 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - next_rails_scaffold (0.1.6) + next_rails_scaffold (0.1.7) rails (~> 7.1.2) GEM diff --git a/lib/generators/rails/next_rails/next_rails_generator.rb b/lib/generators/rails/next_rails/next_rails_generator.rb index f90790a..f8e859f 100644 --- a/lib/generators/rails/next_rails/next_rails_generator.rb +++ b/lib/generators/rails/next_rails/next_rails_generator.rb @@ -47,6 +47,7 @@ def create_frontend_project empty_directory "frontend" inside("frontend") do + create_next_app! install_hygen! run("npx hygen generate scaffold #{name} #{mapped_attributes.join(" ")}") diff --git a/lib/next_rails/version.rb b/lib/next_rails/version.rb index 5588613..ad8af9c 100644 --- a/lib/next_rails/version.rb +++ b/lib/next_rails/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module NextRails - VERSION = "0.1.6" + VERSION = "0.1.7" end