Skip to content

Commit

Permalink
Merge branch 'release/1.7.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
muloem committed Sep 25, 2014
2 parents 032b2ec + 77bdf49 commit 591a399
Show file tree
Hide file tree
Showing 27 changed files with 246 additions and 3,983 deletions.
50 changes: 27 additions & 23 deletions Dashboard/Assetfile
100755 → 100644
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,28 @@ class HandlebarsFilter < Filter
end
end

class CSSMinFilter < Filter
def generate_output(inputs, output)
inputs.each do |input|
result = input.read
result.gsub!(/href="css\/(.*)\.css"/, 'href="css/\1.min.css"') # index.html
result.gsub!(/url\("(.*?).css"\)/, 'url("\1.min.css")') # screen.css
output.write(result)
end
end
end

output '../GAE/war/admin'
input 'app' do


match 'css/main.scss' do
scss
end

match 'dashboard.html' do
if ENV['RAKEP_MODE'] == 'production'
filter CSSMinFilter
end
copy 'index.html'
end

Expand All @@ -57,19 +75,6 @@ input 'app' do
concat 'js/app.js'
end

# match 'js/vendor/**/*.js' do
# filter LoaderFilter,
# :module_id_generator => proc { |input|
# input.path.sub(/^js\/vendor\//, "vendor/").sub(/\.js$/, '')
# }

# if ENV['RAKEP_MODE'] == 'production'
# filter EmberAssertFilter
# uglify {|input| input}
# end
# concat 'js/app.js'
# end

match 'js/plugins/**/*.js' do
if ENV['RAKEP_MODE'] == 'production'
uglify {|input| input}
Expand Down Expand Up @@ -98,18 +103,17 @@ input 'app' do
end
end

match "css/**/*" do
concat do |input|
input
match "css/**/*.css" do
if ENV['RAKEP_MODE'] == 'production'
yui_css
filter CSSMinFilter
else
concat do |input|
input
end
end
end

# match "js/vendor/**/*.js" do
# concat do |input|
# input
# end
# end

end

output '../GAE/war/vendorjs'
Expand Down
31 changes: 27 additions & 4 deletions Dashboard/AssetfilePublic
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,28 @@ class HandlebarsFilter < Filter
end
end

class CSSMinFilter < Filter
def generate_output(inputs, output)
inputs.each do |input|
result = input.read
result.gsub!(/href="\/publicmap\/css\/(.*)\.css"/, 'href="/publicmap/css/\1.min.css"') # index.html
result.gsub!(/url\("(.*?).css"\)/, 'url("\1.min.css")') # screen.css
output.write(result)
end
end
end

output '../GAE/war/publicmap'
input 'app' do


match 'css/main.scss' do
scss
end

match 'public.html' do
if ENV['RAKEP_MODE'] == 'production'
filter CSSMinFilter
end
copy '../index.html'
end

Expand Down Expand Up @@ -110,9 +128,14 @@ input 'app' do
end
end

match "css/**/*" do
concat do |input|
input
match "css/**/*.css" do
if ENV['RAKEP_MODE'] == 'production'
yui_css
filter CSSMinFilter
else
concat do |input|
input
end
end
end

Expand Down
105 changes: 0 additions & 105 deletions Dashboard/app/css/form.css

This file was deleted.

7 changes: 0 additions & 7 deletions Dashboard/app/css/library.css

This file was deleted.

Loading

0 comments on commit 591a399

Please sign in to comment.