Permalink
Browse files

add unified:experimental task

  • Loading branch information...
1 parent dd209f0 commit d1a69fda56488dc78393c96caa689ca5075b4478 @madrobby committed Jun 16, 2010
Showing with 19 additions and 7 deletions.
  1. +18 −6 Rakefile
  2. +1 −1 src/s2.js
View
@@ -95,12 +95,24 @@ task :min do
end
desc "Generate a unified minified version of Prototype and scripty2"
-task :unified => [:dist, :min] do
- unified = IO.read(File.join(SCRIPTY2_DIST_DIR,'prototype.js')) + IO.read(File.join(SCRIPTY2_DIST_DIR,'s2.js'))
- File.open(File.join(SCRIPTY2_RELEASE_DIR,'prototype.s2.js'), 'w') do |file|
- file.write unified
- end
- minify File.join(SCRIPTY2_RELEASE_DIR,'prototype.s2.js'), File.join(SCRIPTY2_DIST_DIR,'prototype.s2.min.js')
+task :unified => ['unified:default']
+namespace :unified do
+ task :default => [:dist, :min] do
+ unified = IO.read(File.join(SCRIPTY2_DIST_DIR,'prototype.js')) + IO.read(File.join(SCRIPTY2_DIST_DIR,'s2.js'))
+ File.open(File.join(SCRIPTY2_RELEASE_DIR,'prototype.s2.js'), 'w') do |file|
+ file.write unified
+ end
+ minify File.join(SCRIPTY2_RELEASE_DIR,'prototype.s2.js'), File.join(SCRIPTY2_DIST_DIR,'prototype.s2.min.js')
+ end
+
+ desc "Generate a unified minified version of Prototype and scripty2, including experimental UI controls."
+ task :experimental => ['dist:experimental', :min] do
+ unified = IO.read(File.join(SCRIPTY2_DIST_DIR,'prototype.js')) + IO.read(File.join(SCRIPTY2_DIST_DIR,'s2.js'))
+ File.open(File.join(SCRIPTY2_RELEASE_DIR,'prototype.s2.js'), 'w') do |file|
+ file.write unified
+ end
+ minify File.join(SCRIPTY2_RELEASE_DIR,'prototype.s2.js'), File.join(SCRIPTY2_DIST_DIR,'prototype.s2.min.js')
+ end
end
def doc_from_sources(sources)
View
@@ -35,4 +35,4 @@ var S2 = {
//= require "extensions/element"
//= require "addons/helpers"
-//= require "addons/zoom"
+//= require "addons/zoom"

0 comments on commit d1a69fd

Please sign in to comment.