Class: Underoos::AssetsGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/underoos/assets_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_underoos_js_assetsObject



5
6
7
8
9
# File 'lib/generators/underoos/assets_generator.rb', line 5

def copy_underoos_js_assets
  copy_file 'app/assets/javascripts/underoos.js', 'app/assets/javascripts/underoos.js'
  copy_file 'app/assets/javascripts/docs.js', 'app/assets/javascripts/docs.js'
  copy_file 'app/assets/javascripts/styleguide.coffee', 'app/assets/javascripts/styleguide.coffee'
end

#copy_undeross_stylesheetsObject



24
25
26
27
28
29
30
31
32
33
# File 'lib/generators/underoos/assets_generator.rb', line 24

def copy_undeross_stylesheets
  copy_file 'app/assets/stylesheets/underoos-docs.sass'
  copy_file 'app/assets/stylesheets/underoos.sass'
  directory 'app/assets/stylesheets/base'
  directory 'app/assets/stylesheets/components'
  directory 'app/assets/stylesheets/layouts'
  directory 'app/assets/stylesheets/mixins'
  directory 'app/assets/stylesheets/polyfills'
  directory 'app/assets/stylesheets/settings'
end

#copy_vendored_js_assetsObject



11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/generators/underoos/assets_generator.rb', line 11

def copy_vendored_js_assets
  copy_file 'vendor/assets/javascripts/bootstrap-alert.js'
  copy_file 'vendor/assets/javascripts/bootstrap-button.js'
  copy_file 'vendor/assets/javascripts/bootstrap-collapse.js'
  copy_file 'vendor/assets/javascripts/bootstrap-dropdown.js'
  copy_file 'vendor/assets/javascripts/bootstrap-modal.js'
  copy_file 'vendor/assets/javascripts/bootstrap-popover.js'
  copy_file 'vendor/assets/javascripts/bootstrap-tab.js'
  copy_file 'vendor/assets/javascripts/bootstrap-tooltip.js'
  copy_file 'vendor/assets/javascripts/bootstrap-transition.js'
  copy_file 'vendor/assets/javascripts/bootstrap-typeahead.js'
end