Add rake task to update emoij.coffee.
This commit is contained in:
parent
71cf203b83
commit
7e2faa22e4
6
Rakefile
6
Rakefile
|
@ -28,3 +28,9 @@ namespace :ember do
|
|||
system 'cp tmp/ember.js/dist/ember.js assets/javascripts/vendor/ember.js'
|
||||
end
|
||||
end
|
||||
|
||||
task :update_emojis do
|
||||
s = Dir.glob('assets/images/emoji/*.png').map {|png| png.split('/', 4)[3].gsub('.png', '')}.map{|png| "'#{png}'"}.join(", ")
|
||||
e = "@EmojiDictionary = [#{s}]"
|
||||
File.open("assets/scripts/config/emoij.coffee", "w") {|f| f.write(e) }
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue
Block a user