GitHub Sale: sign up for any paid plan this week and pay nothing until January 1, 2009!  [ hide ]

public
Fork of madrobby/scripty2
Description: This is the alpha version of script.aculo.us 2, lovingly called "scripty2".
Homepage: http://script.aculo.us/2
Clone URL: git://github.com/kommen/scripty2.git
kommen (author)
Mon May 05 07:01:41 -0700 2008
commit  20957e54d8f1c119973d0a961695dd4a659aff51
tree    6e7cd4dba6d0e1717d51828a7506abafcdf4e31f
parent  eeae6267aab5de837c6804738fc0d6e6f3ce6236
scripty2 / effects / Rakefile
100644 54 lines (51 sloc) 1.6 kb
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
require 'rake'
require 'rake/packagetask'
require 'fileutils'
 
# task :default => :test_units
#
# require '../unittest/src/jstest'
# desc "Runs all the JavaScript unit tests and collects the results"
# JavaScriptTestTask.new(:test_units) do |t|
# tests_to_run = ENV['TESTS'] && ENV['TESTS'].split(',')
# browsers_to_test = ENV['BROWSERS'] && ENV['BROWSERS'].split(',')
#
# t.mount("/lib")
# t.mount("/src")
# t.mount("/test")
#
# Dir["test/unit/*.html"].sort.each do |test_file|
# test_file = "/#{test_file}"
# test_name = test_file[/.*\/(.+?)\.html/, 1]
# t.run(test_file) unless tests_to_run && !tests_to_run.include?(test_name)
# end
#
# %w( safari firefox ie konqueror opera ).each do |browser|
# t.browser(browser.to_sym) unless browsers_to_test && !browsers_to_test.include?(browser)
# end
# end
 
desc "Make a effects.js package (temporary task until sprockets arrive)"
task :package do |t|
  files = %w(
  src/license.js
  src/base.js
  src/queue.js
  src/heartbeat.js
  src/extensions/misc.js
  src/extensions/css.js
  src/extensions/helpers.js
  src/extensions/element.js
  src/operators/base.js
  src/operators/style.js
  src/operators/scroll.js
  src/effects/base.js
  src/effects/attribute.js
  src/effects/style.js
  src/effects/morph.js
  src/effects/scroll.js
  src/effects/parallel.js
  src/transitions/transitions.js
  src/transitions/penner.js)
  FileUtils.mkdir('dist') unless File.exists?('dist')
  
  concatenated = files.map{|f| File.read(f) }.join("\n\n")
  File.open('dist/effects.js', 'w+') { |dist| dist << concatenated }
end