Add touch events

This commit is contained in:
2014-12-16 22:14:47 +01:00
parent 9b72ff173f
commit 6a8d517727
14 changed files with 2140 additions and 53 deletions
+5 -1
View File
@@ -1,7 +1,11 @@
#!/usr/bin/env ruby
extensions = %w[jpg jpeg png js css gif svg json woff eot ttf otf ]
start_time = Time.now
Dir.glob(File.join('public/assets/**', "*.{#{extensions.join(',')}}")).each do |asset_path|
next unless asset_path =~ /-[a-f0-9]{32}\.(#{extensions.join('|')})\Z/
dedigest_path = asset_path.sub(/-[a-f0-9]{32}/, '')
`mv '#{asset_path}' '#{dedigest_path}' 2>/dev/null`
#`mv '#{asset_path}' '#{dedigest_path}' 2>/dev/null`
`mv '#{asset_path}' '#{dedigest_path}'`
end
end_time = Time.now
puts "Dedigested assets in #{(end_time - start_time).round} seconds}"
+5 -1
View File
@@ -1,4 +1,5 @@
#!/usr/bin/env ruby
start_time = Time.now
require 'active_support/all'
require 'uglifier'
require 'fileutils'
@@ -42,4 +43,7 @@ remove 'user/app/application.js' # embedded in flat/application
gsub_file 'user/foundation/application.css', /url\(("?)\/assets/, 'url(\1../..'
gsub_all_scripts 'src="/assets', 'src="./assets'
compress_js 'user/flat/application.js'
#compress_js 'user/flat/application.js'
end_time = Time.now
puts "Converted assets for mobile in #{(end_time - start_time).round} seconds"