lib/generators/half_pipe/install_generator.rb in half-pipe-0.0.1 vs lib/generators/half_pipe/install_generator.rb in half-pipe-0.1.0
- old
+ new
@@ -21,10 +21,14 @@
gsub_file "config/application.rb", %r{require 'rails/all'}, railties_requires
gsub_file "app/views/layouts/application.html.erb", %r{\s*<%= javascript_include_tag "application" %>$}, ''
insert_into_file "app/views/layouts/application.html.erb", %Q{ <%= requirejs_include_tag "/scripts/application.js" %>\n }, before: "</body>"
+ gsub_file "config/environments/development.rb", "config.assets.debug = true", "config.middleware.use Rack::HalfPipe"
+
+ append_to_file ".gitignore", %w(node_modules bower_components public/scripts public/styles public/images).join("\n"), force: true
+
directory "app"
empty_directory "app/scripts"
inside "app/scripts" do
@@ -33,10 +37,11 @@
end
initializer "sass.rb" do
%Q{
require 'sass/importers/bower_importer'
- Sass.load_paths << Sass::Importers::BowerImporter.new("components")
+ require 'sass/half_pipe_functions'
+ Sass.load_paths << Sass::Importers::BowerImporter.new("bower_components")
}
end
run "npm install"