Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 76 lines (65 sloc) 2.218 kb
5d47d9b @madrobby Added beginnings of unittest.js; cleaned up effects2.js; added packag…
madrobby authored
1 #mostly borrowed from the rails Rakefile
2
3 require 'rake'
4
5 PKG_NAME = 'scriptaculous-js'
6 PKG_BUILD = ENV['PKG_BUILD'] ? '.' + ENV['PKG_BUILD'] : ''
3afcdec @madrobby script.aculo.us: 1.5_rc4
madrobby authored
7 PKG_VERSION = '1.5_rc4' + PKG_BUILD
5d47d9b @madrobby Added beginnings of unittest.js; cleaned up effects2.js; added packag…
madrobby authored
8 PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
9 PKG_DESTINATION = ENV["RAILS_PKG_DESTINATION"] || "dist"
10
11 desc "Default Task"
12 task :default => [ :clean, :fresh_scriptaculous, :package ]
13
14 task :clean do
15 rm_rf PKG_DESTINATION
16 end
17
18 PKG_FILES = FileList[
19 'CHANGELOG',
20 'README',
21 'MIT-LICENSE',
b6df43c @madrobby script.aculo.us: Added a main scriptaculous.js file to load in the ot…
madrobby authored
22 'src/scriptaculous.js',
5d47d9b @madrobby Added beginnings of unittest.js; cleaned up effects2.js; added packag…
madrobby authored
23 'src/dragdrop.js',
b375425 @madrobby Included Ajax.Autocompleter, refactoring, fixes
madrobby authored
24 'src/effects.js',
6d3a5e4 @madrobby script.aculo.us: minor restructuring fixes
madrobby authored
25 'src/controls.js',
26 'src/unittest.js',
a194aae @madrobby script.aculo.us: Synced to Rails 1.0 release candidate, update to Pro…
madrobby authored
27 'src/builder.js',
a202805 @madrobby script.aculo.us: updates for 1.5_rc1 release
madrobby authored
28 'src/slider.js',
29 'src/unittest.js',
30 'lib/prototype.js',
31 'test/**/*.html',
32 'test/**/*.css',
33 'test/**/*.png'
5d47d9b @madrobby Added beginnings of unittest.js; cleaned up effects2.js; added packag…
madrobby authored
34 ]
35
a202805 @madrobby script.aculo.us: updates for 1.5_rc1 release
madrobby authored
36 DIRS = %w( src lib test test/functional test/unit )
37
5d47d9b @madrobby Added beginnings of unittest.js; cleaned up effects2.js; added packag…
madrobby authored
38 desc "Make a ready-for-packaging distribution dir"
39 task :fresh_scriptaculous do
40 mkdir PKG_DESTINATION
41 mkdir File.join(PKG_DESTINATION, PKG_FILE_NAME)
a202805 @madrobby script.aculo.us: updates for 1.5_rc1 release
madrobby authored
42 mkdir_p DIRS.map { |dir| File.join(PKG_DESTINATION, PKG_FILE_NAME, dir) }
43 PKG_FILES.each { |file| cp file, File.join(PKG_DESTINATION, PKG_FILE_NAME, file) }
5d47d9b @madrobby Added beginnings of unittest.js; cleaned up effects2.js; added packag…
madrobby authored
44 end
45
46 desc "Packages the fresh script.aculo.us scripts"
47 task :package do
48 system %{cd #{PKG_DESTINATION}; tar -czvf #{PKG_FILE_NAME}.tar.gz #{PKG_FILE_NAME}}
49 system %{cd #{PKG_DESTINATION}; zip -r #{PKG_FILE_NAME}.zip #{PKG_FILE_NAME}}
50 system %{cd #{PKG_DESTINATION}; tar -c #{PKG_FILE_NAME} | bzip2 --best > #{PKG_FILE_NAME}.tar.bz2 }
51 end
52
7f3813a @madrobby script.aculo.us: updates to Ajax.InPlaceEditor, self running automate…
madrobby authored
53 require 'src/javascripttest'
54 desc "Runs all the JavaScript unit tests and collects the results"
55 JavaScriptTestTask.new(:unittest) do |t|
56 t.mount("/lib")
57 t.mount("/src")
58 t.mount("/test")
59
60 t.run("/test/unit/unittest_test.html")
a0e9ea7 @madrobby script.aculo.us: automatic unit testing support for Firefox/Konqueror…
madrobby authored
61 t.run("/test/unit/effects_test.html")
e3ae13e @madrobby Made builder_test.html unit test work with Safari, fixed (one of two)…
madrobby authored
62 t.run("/test/unit/ajax_autocompleter_test.html")
7f3813a @madrobby script.aculo.us: updates to Ajax.InPlaceEditor, self running automate…
madrobby authored
63 t.run("/test/unit/ajax_inplaceeditor_test.html")
cbfdecd @madrobby script.aculo.us: Removed Builder code from effects.js, removed Object…
madrobby authored
64 t.run("/test/unit/slider_test.html")
7f3813a @madrobby script.aculo.us: updates to Ajax.InPlaceEditor, self running automate…
madrobby authored
65 t.run("/test/unit/string_test.html")
66 t.run("/test/unit/builder_test.html")
4167d27 @madrobby script.aculo.us: Finetuning unittest.js + even more unit tests
madrobby authored
67 t.run("/test/unit/element_test.html")
807ef0e @madrobby script.aculo.us: Make Droppables.remove accept DOM IDs in addition to…
madrobby authored
68 t.run("/test/unit/dragdrop_test.html")
be246fe @madrobby script.aculo.us: V1.5_rc2 release
madrobby authored
69 t.run("/test/unit/sortable_test.html")
cdfd65b @madrobby script.aculo.us: new Position.clone unit test, checks for Konqueror, …
madrobby authored
70 t.run("/test/unit/position_clone_test.html")
7f3813a @madrobby script.aculo.us: updates to Ajax.InPlaceEditor, self running automate…
madrobby authored
71
72 t.browser(:safari)
73 t.browser(:firefox)
d19f249 @madrobby script.aculo.us: Support for automatic unit testing on windows (IE/Fi…
madrobby authored
74 t.browser(:ie)
a0e9ea7 @madrobby script.aculo.us: automatic unit testing support for Firefox/Konqueror…
madrobby authored
75 t.browser(:konqueror)
7f3813a @madrobby script.aculo.us: updates to Ajax.InPlaceEditor, self running automate…
madrobby authored
76 end
Something went wrong with that request. Please try again.