Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
jho406 committed Dec 10, 2024
1 parent a8374d3 commit f3f34ce
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@

module Superglue
module Generators
class InstallGenerator < Rails::Generators::Base
class InstallGenerator < Rails::Generators::NamedBase
source_root File.expand_path("../templates", __FILE__)

class_option :typescript, banner: "TYPESCRIPT",
type: :boolean,
required: false,
default: false,
desc: "Use typescript"

def create_files
@use_typescript = options["typescript"]
say "Copying application.js file to #{app_js_path}"
copy_file "#{__dir__}/templates/js/application.js", "#{app_js_path}/application.js"

Expand Down

0 comments on commit f3f34ce

Please sign in to comment.