Permalink
Browse files

add javascripts

  • Loading branch information...
xdite committed Oct 7, 2012
1 parent d04b121 commit 7dd73984fa01afe3ab376b3fa7d5e8082ba653d0
@@ -30,5 +30,14 @@ def create_application_layout
:force => true
end
def create_common_javascripts
directory 'javascripts', 'app/assets/javascripts'
end
def add_jquery_ui
inject_into_file 'app/assets/javascripts/application.js',
"//= require jquery-ui\n", :before => '//= require_tree .'
end
end
end
@@ -14,6 +14,8 @@ def bootstrapers_customization
invoke :remove_files_we_dont_need
invoke :setup_development_environment
invoke :create_bootstrapers_views
invoke :create_common_javascripts
invoke :add_jquery_ui
end
def remove_files_we_dont_need
@@ -32,6 +34,16 @@ def create_bootstrapers_views
build :create_application_layout
end
def create_common_javascripts
say 'Pulling in some common javascripts'
build :create_common_javascripts
end
def add_jquery_ui
say 'Add jQuery ui to the standard application.js'
build :add_jquery_ui
end
protected
def get_builder_class
No changes.

0 comments on commit 7dd7398

Please sign in to comment.