Skip to content

Commit 9f6fb53

Browse files
author
Tero Piirainen
committed
finalized JS minifying with Closure Compiler
1 parent ca3e6df commit 9f6fb53

23 files changed

+50
-28
lines changed

build.properties

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11

2+
# webapp root
3+
www = /opt/flowplayer/webapp/tools
4+
25
# jQuery Tools version numbers
36

47
jquery = 1.3.2
@@ -32,5 +35,3 @@ tooltip = 1.2.0
3235
tooltip.dynamic = 1.2.0
3336
tooltip.slide = 1.2.0
3437

35-
36-

build.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
<project name="jQuery.Tools" default="min">
22

33
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
4-
<property file="version.properties" prefix="v"/>
4+
<property file="build.properties" prefix="v"/>
5+
6+
<property name="www" value="${v.www}-${v.tools}"/>
7+
<property name="js" value="${www}/js"/>
58

6-
<!-- hardcoded -->
7-
<property name="www" value="/opt/flowplayer/webapp/tools-${v.tools}"/>
8-
<property name="js" value="/opt/flowplayer/webapp/js/tools/${v.tools}"/>
99

1010
<!-- minify with Closure Compiler (default mode) -->
1111
<target name="min">
@@ -31,7 +31,7 @@
3131
<arg line="--js"/>
3232
<srcfile/>
3333
<arg line="--js_output_file"/>
34-
<mapper type="glob" from="*.js" to="../build/*.min.js"/>
34+
<mapper type="glob" from="*.js" to="../build/${v.tools}/*.min.js"/>
3535
<targetfile/>
3636
</apply>
3737

src/form/form.datepick.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* @license
1+
/**
2+
* @license
23
* form.datepicker @VERSION - Pick your (HTML5) day.
34
*
45
* Copyright (c) 2010 Tero Piirainen

src/form/form.slider.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* @license
1+
/**
2+
* @license
23
* form.slider @VERSION - HTML5 slider. Implemented.
34
*
45
* Copyright (c) 2010 Tero Piirainen

src/form/form.styleable.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* @license
1+
/**
2+
* @license
23
* form.styleable @VERSION - You waited. Here it is.
34
*
45
* Copyright (c) 2010 Tero Piirainen

src/form/form.validator.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* @license
1+
/**
2+
* @license
23
* form.validator @VERSION - HTML5 is here. Now use it.
34
*
45
* Copyright (c) 2010 Tero Piirainen

src/overlay/overlay.apple.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* @license
1+
/**
2+
* @license
23
* overlay.apple @VERSION - Commercial bling bling for all of us
34
*
45
* Copyright (c) 2010 Tero Piirainen

src/overlay/overlay.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* @license
1+
/**
2+
* @license
23
* tools.overlay @VERSION - Overlay base. Extend it.
34
*
45
* Copyright (c) 2010 Tero Piirainen

src/scrollable/scrollable.autoscroll.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* @license
1+
/**
2+
* @license
23
* scrollable.autoscroll @VERSION
34
*
45
* Copyright (c) 2010 Tero Piirainen

src/scrollable/scrollable.circular.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
/* @license
1+
/**
2+
* @license
23
* scrollable.circular @VERSION - Not production ready yet.
34
*
45
* Copyright (c) 2010 Tero Piirainen

0 commit comments

Comments
 (0)