Class: BackboneGenerator::SetupGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- BackboneGenerator::SetupGenerator
- Defined in:
- lib/generators/backbone_generator/setup_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_development_gems ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/generators/backbone_generator/setup_generator.rb', line 13 def add_development_gems testing_gems = <<-TESTING_GEMS group :development, :test do # Jasmine gem 'jasmine-rails' gem 'jasmine-headless-webkit', '~> 0.8.4' # Guard gem 'growl' gem 'rb-fsevent' gem 'guard-rspec' gem 'guard-jasmine-headless-webkit' # brew install qt --build-from-source end group :test do gem 'therubyracer', :platform => :ruby end TESTING_GEMS append_to_file 'Gemfile', testing_gems say testing_gems run 'bundle'# in_root { `bundle` } end |
#print_tree ⇒ Object
39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 |
# File 'lib/generators/backbone_generator/setup_generator.rb', line 39 def print_tree tree = <<-TREE Gemfile (updated) Guardfile app/assets/javascripts ├── application.js └── shared ├── core_extentions │ └── collections_extentions.coffee ├── helpers └── utils spec/javascripts ├── fixtures ├── helpers │ ├── association_helpers.coffee │ ├── common_helpers.coffee │ ├── fake_host.coffee │ └── headless_webkit_helper.coffee └── support └── jasmine.yml vendor/javascripts ├── backbone │ ├── backbone-1.1.0.js │ ├── backbone-bind-to-1.1.0.coffee │ ├── backbone-handlebars-1.0.0.coffee │ ├── backbone-query-0.2.3.coffee │ ├── backbone-relational-0.8.6.js │ ├── handlebars-1.1.2.js │ └── underscore-1.5.2.js ├── browser_compatibility │ ├── json2.js │ └── localstorage-polyfill.js ├── jquery │ ├── jquery-1.10.2.js │ ├── jquery-ui-1.10.3.js │ ├── jquery.easing-1.3.js │ └── jquery_ujs.js └── testing ├── backbone-factory.js ├── jasmine-jquery-1.5.93.js ├── jasmine-sinon-0.2.1.js ├── mock-ajax-2.0.0.js └── sinon-1.7.3.js TREE say tree end |
#setup_app ⇒ Object
9 10 11 |
# File 'lib/generators/backbone_generator/setup_generator.rb', line 9 def setup_app directory '.' end |