forked from jakesgordon/javascript-snakes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Rakefile
38 lines (35 loc) · 1.13 KB
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
require 'bundler/setup'
require 'unified_assets/tasks'
UnifiedAssets::Tasks.new do |t|
t.minify = true
t.assets = {
"snakes.js" => [
'js/game/vendor/stats.js', # https://github.com/mrdoob/stats.js
'js/game/vendor/sizzle.js', # http://sizzlejs.com/
'js/game/vendor/animator.js', # http://berniesumption.com/software/animator/
'js/game/vendor/audio-fx.js', # (not public yet)
'js/game/vendor/state-machine.js', # https://github.com/jakesgordon/javascript-state-machine
'js/game/base.js',
'js/game/game.js',
'js/game/dom.js',
'js/game/menu.js',
'js/game/key.js',
'js/game/math.js',
'js/game/vector.js',
'js/snakes.js'
],
"snakes.css" => [
'css/vendor/normalize.css',
'css/snakes.css'
]
}
end
namespace :assets do
desc 'recreate sprite sheets'
task 'resprite' do
require 'sprite_factory'
SpriteFactory.library = :chunkypng
SpriteFactory.run!('images/fruit', :layout => :horizontal, :nocss => true)
SpriteFactory.run!('images/head', :layout => :horizontal, :nocss => true)
end
end