Sha256: 5d653c9c9c6a5a5314b9f889f8b42c8135d9ee03504fdb8694c436e151e1f8f2
Contents?: true
Size: 751 Bytes
Versions: 4
Compression:
Stored size: 751 Bytes
Contents
require "rails/generators" require "rails/generators/base" module Flame module Generators class Base < Rails::Generators::Base private # @param [Array] packages # @return [void] # @example # yarn_install(["vite", "react", "react-dom"]) def yarn_install(packages) run("yarn add #{packages.join(" ")} --silent") end # @param [Array] packages # @return [void] # @example # yarn_install_dev(["vite", "react", "react-dom"]) def yarn_install_dev(packages) run("yarn add -D #{packages.join(" ")} --silent") end class << self def source_root File.expand_path("../../../templates", __dir__) end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
flamerb-0.3.0 | lib/flame/generators/base.rb |
flamerb-0.2.3 | lib/flame/generators/base.rb |
flamerb-0.2.0 | lib/flame/generators/base.rb |
flamerb-0.1.3 | lib/flame/generators/base.rb |