Sha256: f09274994e802039cdb16e16c68e0fe6ebf59efeda84ccd2cbcca877c7788f18
Contents?: true
Size: 803 Bytes
Versions: 1
Compression:
Stored size: 803 Bytes
Contents
require 'generators/happy_seed/happy_seed_generator' module HappySeed module Generators class ReactGenerator < HappySeedGenerator source_root File.expand_path('../templates', __FILE__) def self.fingerprint gem_available?( 'react_on_rails' ) end def install_react return if already_installed gem 'react_on_rails' Bundler.with_clean_env do run "bundle install --without production" end say_status :react, "Adding files to git", :green git add: "." git commit: "-a -m 'Adding react_on_rails'" generate 'react_on_rails:install' system "npm install" directory "." say_status :react, "Now run: foreman start -f Procfile.dev", :green end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
happy_seed-0.0.21 | lib/generators/happy_seed/react/react_generator.rb |