xonecas.io
211
Ze

zen / commit 3a5e01c

cleaned up

xonecas2011-01-26 3a5e01ccf987c49e30099ebce4dabadbfffd1071 parent c41b013

52 files changed

This diff is too big to show in full. The first 1000 lines are below, and every file is listed with its counts.

README.md+0−129
@@ -1,129 +0,0 @@
1-# HTML5 Boilerplate [http://html5boilerplate.com](http://html5boilerplate.com)
2-
3-## Changelog:
4-
5-### v.0.9.5 : October 25th, 2010
6-
7-Major changes:
8-
9-<ul>
10-<li>Removed <code>-webkit-font-smoothing: antialiased;</code> it makes monospace too thin.</li>
11-<li>IE conditional classes have moved from the <code>&lt;body&gt;</code> tag to the <code>&lt;html&gt;</code> tag ( #44 ).</li>
12-<li>Dropped <code>text-rendering: <a href="http://www.aestheticallyloyal.com/public/optimize-legibility/">optimizeLegibility</a></code> as it breaks small-caps, looks odd on Linux machines, and goes invisible on WebOS.</li>
13-<li>Added a IE6 call for the minified <code>dd_belatedpng</code>.</li>
14-<li>Revised viewport declaration to allow user scaling and clear Webkit console errors ( #37 ).</li>
15-<li>Updated Modernizr to 1.6 </li>
16-<li>Added <code>web.config</code> file for Microsoft IIS</li>
17-<li>Beta release of the <a href="http://github.com/paulirish/html5-boilerplate/wiki/Build-script">Build Script</a> (this is HUGE)</li>
18-<li>New project scaffolding <a href="http://github.com/paulirish/html5-boilerplate/wiki/makep.sh">bash script</a>.</li>
19-</ul>
20-
21-#### General
22-* Updated Modernizr to 1.6 (smaller and faster)
23-* Added web.config file for Microsoft IIS. Now forcing latest IE version and ChromeFrame, if installed.
24-* Added favicon and default icon for iOS.
25-* Updated crossdomain.xml wording for better security guidelines ( #124 ).
26-* Expires value for nginx.conf corrected.
27-* License clarified.
28-
29-#### style.css
30-* Removed -webkit-font-smoothing: antialiased; as it made monospace too thin.
31-* Updated fonts normalization to YUI 3.2.0 PR1.
32-* Table Header set explicitly for IE6 and table row now has page-break: avoid in print CSS.
33-* text-shadow:none !important set for all text in print css.
34-* Removed scrollbar from textareas in IE.
35-* Fixed textarea stylings and form field treatment for validity. Added default background-color.
36-* New robust clearfix solution without IE 5.5 hack ( #45 #126 ).
37-* Margins for form-elements explicitly set to 0 as webkit adds 2px space around form elements' chrome.
38-* Dropped text-rendering: optimizeLegibility as it breaks small-caps and looks odd on Linux machines.
39-* Lists now have a left margin of 1.8em. Default list-style-type for ordered list is decimal.
40-* Image Replacement now works with right-to-left text ( #68 ).
41-* Removed "Star Hack" for checkboxes in favor of .ie7 selector.
42-
43-#### index.html
44-* IE conditional classes have moved from the <body> tag to the <html> tag ( #44 ).
45-* Added a IE6 call for the minified dd_belatedpng.
46-* Google Analytics script will now work with SSL in IE6.
47-* Added protocol independent absolute path for cdn jquery, with improved fallback-to-local code to protect against edge case IE bug.
48-* Commented out handheld CSS ( #73 ).
49-* Mobile viewport and textsize styles adjusted per group feedback ( #37 ).
50-
51-#### .htaccess
52-* More files are served via gzip like .htc ( #55 ).
53-* Added Expires header for content types image/gif and video/webm.
54-* Fixed favicon display in IE6 ( #113 ).
55-* Corrected mimetypes for fonts.
56-* Removed caching for files of type json/xml.
57-* Better use of ifmodule for more stability in different Apache environments.
58-
59-[View full diff and commit history](http://github.com/paulirish/html5-boilerplate/compare/v0.9.1...v0.9.5)
60-
61-
62-#### Contributors
63-Shi Chuan, Rob Larsen, Ivan Nikolić, Mikko Tikkanen, Velir, Paul Neave, Weston Ruter, Jeffrey Barke, Robert Meissner, SirFunk, Philip von Bargen, Kroc Camen, Rick Waldron, Andreas Madsen, Marco d'Itri, Adeelejaz, James Rosen, Dave DeSandro, Ken Newman, Daniel Lenz, Swaroop C H, Yann Mainier, Joe Sak, Irakli, Rob Flaherty, Jeff Starr, Mike Lamb, Holek, Aaron Peters, Kaelig, Meander, Charlie Ussery, Ciney, Région Wallonne, Sirupsen, and Paul Hayes.
64-
65-
66-
67-### v.0.9.1 : August 13th, 2010
68-* HTML5 Boilerplate is now in the Public Domain
69-* Nginx configuration added
70-* Font stacks (sans-serif and monospace) simplified
71-* Very accessible a:focus styles.
72-* Corrected IE=edge,chromeframe enabling (As a result, the base HTML [does not validate](http://bit.ly/cGSSgr))
73-* ServerSideIncludes disabled by default.
74-* Apache config bugfixes
75-* Conditional body tag class combined
76-* dd_belatedPNG updated to 0.0.8. Redundant BackgroundImageCache fix removed.
77-
78-[View full diff and commit history](http://github.com/paulirish/html5-boilerplate/compare/v0.9...v0.9.1)
79-
80-##### Thanks:
81-
82-voodootikigod, garowetz, fearphage, christopherjacob, mathias byenens, daniel harttman, rse, chris dary, erik dahlstrom, timwillison, kenneth nordahl, riddle, elcuervo, andreas kuckartz, 3rdEden, riley willis, majic3
83-
84-### v0.9 : August 10th, 2010 - Initial release
85-
86-
87-## License:
88-
89-Major components:
90-
91-* Modernizr: MIT/BSD license
92-* jQuery: MIT/GPL license
93-* DD_belatedPNG: MIT license
94-* YUI Profiling: BSD license
95-* HTML5Doctor CSS reset: Public Domain
96-* CSS Reset Reloaded: Public Domain
97-
98-Everything else:
99-
100-* [The Unlicense](http://unlicense.org) (aka: public domain)
101-
102-
103-## Summary:
104-
105-This is a set of files that a front-end developer can use to get started on a website, with following included:
106-
107-1. Cross-browser compatible (IE6, yeah we got that.)
108-2. HTML5 ready. Use the new tags with certainty.
109-3. Optimal caching and compression rules for grade-A performance
110-4. Best practice site configuration defaults
111-5. Think there's too much? The HTML5 Boilerplate is delete-key friendly. :)
112-6. Mobile browser optimizations
113-7. Progressive enhancement graceful degredation ........ yeah yeah we got that
114-8. IE specific classes for maximum cross-browser control
115-9. Want to write unit tests but lazy? A full, hooked up test suite is waiting for you.
116-10. Javascript profiling.. in IE6 and IE7? Sure, no problem.
117-11. Console.log nerfing so you won't break anyone by mistake.
118-12. Never go wrong with your doctype or markup!
119-13. An optimal print stylesheet, performance optimized
120-14. iOS, Android, Opera Mobile-adaptable markup and CSS skeleton.
121-15. IE6 pngfix baked in.
122-16. jQuery, waiting for you
123-
124-## Releases
125-
126-There are two releases: a documented release, which is exactly what you see here, and a "stripped" release, with most of the descriptive comments stripped out.
127-
128-Watch the [current tickets](http://github.com/paulirish/html5-boilerplate/issues) to view the areas of active development.
129-
build/build.xml+0−636
@@ -1,636 +0,0 @@
1-<?xml version="1.0"?>
2-<project name="Boilerplate Build" default="build" basedir="../"> <!-- one back since we're in build/ -->
3-
4-
5- <!-- Load in Ant-Contrib to give us access to some very useful tasks! -->
6- <!-- the .jar file is located in the tools directory -->
7- <taskdef resource="net/sf/antcontrib/antcontrib.properties">
8- <classpath>
9- <pathelement location="${basedir}/build/tools/ant-contrib-1.0b3.jar"/>
10- </classpath>
11- </taskdef>
12-
13-
14- <!-- load property files -->
15- <property file="build/config/project.properties"/>
16- <property file="build/config/default.properties"/>
17-
18- <!-- merge the stylesheet properties -->
19- <var name="stylesheet-files" value="${file.stylesheets}, ${file.default.stylesheets}"/>
20-
21- <!-- merge the pages properties -->
22- <var name="page-files" value="${file.pages}, ${file.pages.default.include}"/>
23-
24-
25-
26- <!--
27- *************************************************
28- * BASE TARGETS *
29- *************************************************
30- -->
31- <target name="basics">
32- <if>
33- <equals arg1="${env}" arg2="dev"/>
34- <then>
35- <!-- Build a dev environment -->
36- <echo message="Building a Development Environment..."/>
37- <antcall target="-rev"/>
38- <antcall target="-clean"/>
39- <antcall target="-copy"/>
40- </then>
41-
42- <elseif>
43- <equals arg1="${env}" arg2="test"/>
44- <then>
45- <!-- Build a test environment -->
46- <echo message="Building a Test Environment..."/>
47- <antcall target="-rev"/>
48- <antcall target="-clean"/>
49- <antcall target="-copy"/>
50- <antcall target="-usemin"/>
51- <antcall target="-js.all.minify"/>
52- <antcall target="-js.main.concat"/>
53- <antcall target="-js.mylibs.concat"/>
54- <antcall target="-js.scripts.concat"/>
55- <antcall target="-js.delete"/>
56- <antcall target="-css"/>
57- <antcall target="-html"/>
58- </then>
59- </elseif>
60-
61- <else>
62- <!-- Build a production environment -->
63- <echo message="Building a Production Environment..."/>
64- <antcall target="-rev"/>
65- <antcall target="-clean"/>
66- <antcall target="-copy"/>
67- <antcall target="-usemin"/>
68- <antcall target="-js.all.minify"/>
69- <antcall target="-js.main.concat"/>
70- <antcall target="-js.mylibs.concat"/>
71- <antcall target="-js.scripts.concat"/>
72- <antcall target="-js.delete"/>
73- <antcall target="-strip-console.log"/>
74- <antcall target="-css"/>
75- <antcall target="-html"/>
76- </else>
77- </if>
78- </target>
79-
80-
81- <target name="text">
82- <if>
83- <equals arg1="${env}" arg2="dev"/>
84- <then>
85- <!-- Build a dev environment -->
86- <echo message="Building a Development Environment..."/>
87- <antcall target="-rev"/>
88- <antcall target="-clean"/>
89- <antcall target="-copy"/>
90- </then>
91-
92- <elseif>
93- <equals arg1="${env}" arg2="test"/>
94- <then>
95- <!-- Build a test environment -->
96- <echo message="Building a Test Environment..."/>
97- <antcall target="-rev"/>
98- <antcall target="-clean"/>
99- <antcall target="-copy"/>
100- <antcall target="-usemin"/>
101- <antcall target="-js.all.minify"/>
102- <antcall target="-js.main.concat"/>
103- <antcall target="-js.mylibs.concat"/>
104- <antcall target="-js.scripts.concat"/>
105- <antcall target="-js.delete"/>
106- <antcall target="-css"/>
107- <antcall target="-html"/>
108- <antcall target="-htmlclean"/>
109- </then>
110- </elseif>
111-
112- <else>
113- <!-- Build a production environment -->
114- <echo message="Building a Production Environment..."/>
115- <antcall target="-rev"/>
116- <antcall target="-clean"/>
117- <antcall target="-copy"/>
118- <antcall target="-usemin"/>
119- <antcall target="-js.all.minify"/>
120- <antcall target="-js.main.concat"/>
121- <antcall target="-js.mylibs.concat"/>
122- <antcall target="-js.scripts.concat"/>
123- <antcall target="-js.delete"/>
124- <antcall target="-strip-console.log"/>
125- <antcall target="-css"/>
126- <antcall target="-html"/>
127- <antcall target="-htmlclean"/>
128- </else>
129- </if>
130- </target>
131-
132-
133- <target name="buildkit">
134- <if>
135- <equals arg1="${env}" arg2="dev"/>
136- <then>
137- <!-- Build a dev environment -->
138- <echo message="Building a Development Environment..."/>
139- <antcall target="-rev"/>
140- <antcall target="-clean"/>
141- <antcall target="-copy"/>
142- <antcall target="-imagespng"/>
143- <antcall target="-imagesjpg"/>
144- </then>
145-
146- <elseif>
147- <equals arg1="${env}" arg2="test"/>
148- <then>
149- <!-- Build a test environment -->
150- <echo message="Building a Test Environment..."/>
151- <antcall target="-rev"/>
152- <antcall target="-clean"/>
153- <antcall target="-copy"/>
154- <antcall target="-usemin"/>
155- <antcall target="-js.all.minify"/>
156- <antcall target="-js.main.concat"/>
157- <antcall target="-js.mylibs.concat"/>
158- <antcall target="-js.scripts.concat"/>x
159- <antcall target="-js.delete"/>
160- <antcall target="-css"/>
161- <antcall target="-html"/>
162- <antcall target="-htmlbuildkit"/>
163- <antcall target="-imagespng"/>
164- <antcall target="-imagesjpg"/>
165- </then>
166- </elseif>
167-
168- <else>
169- <!-- Build a production environment -->
170- <echo message="Building a Production Environment..."/>
171- <antcall target="-rev"/>
172- <antcall target="-clean"/>
173- <antcall target="-copy"/>
174- <antcall target="-usemin"/>
175- <antcall target="-js.all.minify"/>
176- <antcall target="-js.main.concat"/>
177- <antcall target="-js.mylibs.concat"/>
178- <antcall target="-js.scripts.concat"/>x
179- <antcall target="-js.delete"/>
180- <antcall target="-strip-console.log"/>
181- <antcall target="-css"/>
182- <antcall target="-html"/>
183- <antcall target="-htmlbuildkit"/>
184- <antcall target="-imagespng"/>
185- <antcall target="-imagesjpg"/>
186- </else>
187- </if>
188- </target>
189-
190-
191- <target name="build">
192- <if>
193- <equals arg1="${env}" arg2="dev"/>
194- <then>
195- <!-- Build a dev environment -->
196- <echo message="Building a Development Environment..."/>
197- <antcall target="-rev"/>
198- <antcall target="-clean"/>
199- <antcall target="-copy"/>
200- <antcall target="-imagespng"/>
201- <antcall target="-imagesjpg"/>
202- </then>
203-
204- <elseif>
205- <equals arg1="${env}" arg2="test"/>
206- <then>
207- <!-- Build a test environment -->
208- <echo message="Building a Test Environment..."/>
209- <antcall target="-rev"/>
210- <antcall target="-clean"/>
211- <antcall target="-copy"/>
212- <antcall target="-usemin"/>
213- <antcall target="-js.all.minify"/>
214- <antcall target="-js.main.concat"/>
215- <antcall target="-js.mylibs.concat"/>
216- <antcall target="-js.scripts.concat"/>
217- <antcall target="-js.delete"/>
218- <antcall target="-css"/>
219- <antcall target="-html"/>
220- <antcall target="-htmlclean"/>
221- <antcall target="-imagespng"/>
222- <antcall target="-imagesjpg"/>
223- </then>
224- </elseif>
225-
226- <else>
227- <!-- Build a production environment -->
228- <echo message="Building a Production Environment..."/>
229- <antcall target="-rev"/>
230- <antcall target="-clean"/>
231- <antcall target="-copy"/>
232- <antcall target="-usemin"/>
233- <antcall target="-js.all.minify"/>
234- <antcall target="-js.main.concat"/>
235- <antcall target="-js.mylibs.concat"/>
236- <antcall target="-js.scripts.concat"/>
237- <antcall target="-js.delete"/>
238- <antcall target="-strip-console.log"/>
239- <antcall target="-css"/>
240- <antcall target="-html"/>
241- <antcall target="-htmlclean"/>
242- <antcall target="-imagespng"/>
243- <antcall target="-imagesjpg"/>
244- </else>
245- </if>
246- </target>
247-
248-
249- <target name="minify">
250- <if>
251- <equals arg1="${env}" arg2="dev"/>
252- <then>
253- <!-- Build a dev environment -->
254- <echo message="Building a Development Environment..."/>
255- <antcall target="-rev"/>
256- <antcall target="-clean"/>
257- <antcall target="-copy"/>
258- <antcall target="-imagespng"/>
259- <antcall target="-imagesjpg"/>
260- </then>
261-
262- <elseif>
263- <equals arg1="${env}" arg2="test"/>
264- <then>
265- <!-- Build a test environment -->
266- <echo message="Building a Test Environment..."/>
267- <antcall target="-rev"/>
268- <antcall target="-clean"/>
269- <antcall target="-copy"/>
270- <antcall target="-usemin"/>
271- <antcall target="-js.all.minify"/>
272- <antcall target="-js.main.concat"/>
273- <antcall target="-js.mylibs.concat"/>
274- <antcall target="-js.scripts.concat"/>
275- <antcall target="-js.delete"/>
276- <antcall target="-css"/>
277- <antcall target="-html"/>
278- <antcall target="-htmlcompress"/>
279- <antcall target="-imagespng"/>
280- <antcall target="-imagesjpg"/>
281- </then>
282- </elseif>
283-
284- <else>
285- <!-- Build a production environment -->
286- <echo message="Building a Production Environment..."/>
287- <antcall target="-rev"/>
288- <antcall target="-clean"/>
289- <antcall target="-copy"/>
290- <antcall target="-usemin"/>
291- <antcall target="-js.all.minify"/>
292- <antcall target="-js.main.concat"/>
293- <antcall target="-js.mylibs.concat"/>
294- <antcall target="-js.scripts.concat"/>
295- <antcall target="-js.delete"/>
296- <antcall target="-strip-console.log"/>
297- <antcall target="-css"/>
298- <antcall target="-html"/>
299- <antcall target="-htmlcompress"/>
300- <antcall target="-imagespng"/>
301- <antcall target="-imagesjpg"/>
302- </else>
303- </if>
304- </target>
305-
306-
307- <!--
308- *************************************************
309- * FUNCTION TARGETS *
310- *************************************************
311- -->
312- <target name="-load-build-info" description="(PRIVATE) Loads the build versioning information">
313- <property file="./${dir.build}/config/${build.version.info}"/>
314- </target>
315-
316- <target name="-clean" description="(PRIVATE) Wipe the previous build (Deletes the dir.publish directory">
317- <!-- This is a private target -->
318-
319- <echo message="Cleaning up previous build directory..."/>
320- <delete dir="./${dir.publish}/"/>
321- </target>
322-
323-
324- <target name="-rev" description="(PRIVATE) Increase the current build number by one and set build date">
325- <!-- This is a private target -->
326-
327- <echo message="Increasing the build number..."/>
328- <propertyfile file="./${dir.build}/config/${build.version.info}" comment="Build Information File - DO NOT CHANGE">
329- <entry key="build.number" type="int" default="0000" operation="+" pattern="0000"/>
330- <entry key="build.date" type="date" value="now" pattern="dd.MM.yyyy HH:mm"/>
331- </propertyfile>
332- <property file="./${dir.build}/config/${build.version.info}"/>
333- <echo>Creating build ${build.number}</echo>
334- </target>
335-
336-
337- <target name="current-number" depends="-load-build-info" description="(PUBLIC) Returns the current build number">
338- <echo>Current build number: ${build.number}</echo>
339- </target>
340-
341-
342- <target name="-copy" depends="-load-build-info">
343- <!-- This is a private target -->
344-
345- <echo message="Copying over new files..."/>
346- <!-- combine the 2 exclude properties -->
347- <var name="excluded-files" value="${file.default.exclude}, ${file.exclude}"/>
348-
349- <copy todir="./${dir.publish}">
350- <fileset dir="./" excludes="${excluded-files}"/>
351- </copy>
352- </target>
353-
354-
355- <!-- JAVASCRIPT -->
356- <target name="-js.main.concat" depends="-load-build-info" description="(PRIVATE) Concatenates the JS files in dir.js">
357- <echo message="Concatenating Main JS scripts..."/>
358- <concat destfile="./${dir.publish}/${dir.js}/scripts-${build.number}.js">
359- <fileset dir="./${dir.publish}/">
360- <include name="**/${dir.js.main}/*.min.js"/>
361- <exclude name="**/${dir.js.mylibs}/*.js"/>
362- <exclude name="**/${dir.js.libs}/*.js"/>
363- </fileset>
364- </concat>
365- </target>
366-
367-
368- <target name="-js.mylibs.concat" depends="-load-build-info" description="(PRIVATE) Concatenates the JS files in dir.js.mylibs">
369- <echo message="Concatenating JS libraries"/>
370- <concat destfile="./${dir.publish}/${dir.js}/libs-${build.number}.js">
371- <fileset dir="./${dir.publish}/${dir.js.mylibs}/">
372- <include name="**/*.min.js"/>
373- </fileset>
374- </concat>
375- </target>
376-
377-
378- <target name="-js.scripts.concat" depends="-load-build-info" if="build.concat.scripts">
379- <echo message="Concatenating library file with main script file"/>
380- <concat destfile="./${dir.publish}/${dir.js}/scripts-${build.number}.min.js">
381- <fileset dir="./${dir.publish}/${dir.js}/">
382- <include name="libs-${build.number}.js"/>
383- <include name="scripts-${build.number}.js"/>
384- </fileset>
385- </concat>
386-
387- <echo message="Concatenating library file with main debug script file"/>
388- <concat destfile="./${dir.publish}/${dir.js}/scripts-${build.number}-debug.min.js">
389- <fileset dir="./${dir.publish}/${dir.js}/">
390- <include name="libs-${build.number}.js"/>
391- <include name="scripts-${build.number}-debug.js"/>
392- </fileset>
393- </concat>
394- </target>
395-
396-
397- <target name="-js.all.minify" depends="-js.libs.minify" description="(PRIVATE) Minifies the scripts.js files created by js.scripts.concat">
398- <echo message="Minifying concatenated script- and library-file"/>
399- <apply executable="java" parallel="false">
400- <fileset dir="./${dir.publish}/${dir.js}">
401- <include name="**/*.js"/>
402- <exclude name="**/*.min.js"/>
403- <exclude name="**/${dir.js.libs}/*.js"/>
404- </fileset>
405- <arg line="-jar"/>
406- <arg path="./${dir.build.tools}/${tool.yuicompressor}"/>
407- <srcfile/>
408- <arg line="--line-break"/>
409- <arg line="4000"/>
410- <arg line="-o"/>
411- <mapper type="glob" from="*.js" to="../${dir.publish}/${dir.js}/*.min.js"/>
412- <targetfile/>
413- </apply>
414- </target>
415-
416-
417- <target name="-js.libs.minify" depends="-load-build-info" description="(PRIVATE) Minifies the helper files in dir.js.libs">
418- <echo message="Minifying helper JS files..."/>
419-
420- <apply executable="java" parallel="false">
421- <fileset dir="./${dir.publish}/${dir.js.libs}/" includes="*.js" excludes="*.min.js"/>
422- <arg line="-jar"/>
423- <arg path="./${dir.build.tools}/${tool.yuicompressor}"/>
424- <srcfile/>
425- <arg line="-o"/>
426- <mapper type="glob" from="*.js" to="../${dir.publish}/${dir.js.libs}/*-${build.number}.min.js"/>
427- <targetfile/>
428- </apply>
429- </target>
430-
431-
432- <target name="-js.delete" depends="-load-build-info" description="(PRIVATE) Deletes the unoptimized js files from build if set">
433- <if>
434- <equals arg1="${build.delete.unoptimized}" arg2="true"/>
435- <then>
436- <echo message="Deleting unoptimized files..."/>
437- <delete file="./${dir.publish}/${dir.js}/scripts-${build.number}.js"/>
438- <delete file="./${dir.publish}/${dir.js}/scripts-${build.number}-debug.js"/>
439- <!--
440- <delete dir="./${dir.publish}/${dir.js.lib}/"/>
441- <delete file="./${dir.publish}/${dir.js}/libs-${build.number}.js"/>
442- this guy probably COULD be on but I think it's better if we keep him off for now. ^pi
443- <delete includeemptydirs="true">
444- <fileset dir="./${dir.publish}/${dir.js.libs}/" includes="*.js" excludes="*.min.js"/>
445- </delete>
446- -->
447- </then>
448- </if>
449-
450- <if>
451- <and>
452- <equals arg1="${build.delete.unoptimized}" arg2="true"/>
453- <equals arg1="${build.concat.scripts}" arg2="true"/>
454- </and>
455- <then>
456- <delete file="./${dir.publish}/${dir.js}/libs-${build.number}.js"/>
457- <delete file="./${dir.publish}/${dir.js}/scripts-${build.number}.js"/>
458- </then>
459- </if>
460- </target>
461-
462-
463- <target name="-strip-console.log" description="(PRIVATE)Comments out any console.log statements">
464- <echo message="Commenting out console.log lines"/>
465-
466-
467- <replaceregexp match="(console.log\(.*\))" replace="/\*\1\*/" flags="g" >
468- <fileset dir="./${dir.publish}/${dir.js}/">
469- <include name="**/*.js"/>
470- <exclude name="**/*.min.js"/>
471- </fileset>
472- </replaceregexp>
473- </target>
474-
475-
476- <!-- HTML -->
477- <target name="-usemin" depends="-serverconfig" description="(PRIVATE) Replaces references to non-minified scripts">
478- <echo message="Switching to minified js files..."/>
479-
480- <!-- switch from a regular jquery to minified -->
481- <replaceregexp match="jquery-(\d|\d(\.\d)+)\.js" replace="jquery-\1.min.js" flags="">
482- <fileset dir="./${dir.publish}" includes="${page-files}"/>
483- </replaceregexp>
484- <!-- switch any google CDN reference to minified -->
485- <replaceregexp match="(\d|\d(\.\d)+)\/jquery\.js" replace="\1/jquery.min.js" flags="">
486- <fileset dir="./${dir.publish}" includes="${page-files}"/>
487- </replaceregexp>
488-
489- <echo>kill off those versioning flags: ?v=2</echo>
490- <replaceregexp match='\?v=\d+">' replace='">' flags="">
491- <fileset dir="./${dir.publish}" includes="${page-files}"/>
492- </replaceregexp>
493- </target>
494-
495-
496- <target name="-html" depends="-load-build-info" description="(PRIVATE) Very basic clean up of the HTML">
497- <echo message="Clean up the html..."/>
498- <!-- style.css replacement handled as a replacetoken above -->
499- <replaceregexp match="&lt;!-- scripts concatenated [\d\w\s\W]*?!-- end concatenated and minified scripts--&gt;" replace="&lt;script src='${dir.js}/scripts-${build.number}.min.js\'&gt;&lt;/script&gt;" flags="m">
500- <fileset dir="./${dir.publish}" includes="${page-files}"/>
501- </replaceregexp>
502- <!--[! use comments like this one to avoid having them get minified -->
503- </target>
504-
505-
506- <target name="-htmlclean">
507- <apply executable="java" parallel="false" force="true" dest="./${dir.publish}/" >
508- <fileset dir="./${dir.publish}/" includes="${page-files}"/>
509- <arg value="-jar"/>
510- <arg path="./${dir.build}/tools/${tool.htmlcompressor}"/>
511- <arg line="--type html"/>
512- <arg line="--preserve-multi-spaces"/>
513- <arg line="--remove-quotes"/>
514- <arg line="--compress-js"/>
515- <arg line="--compress-css"/>
516- <srcfile/>
517- <arg value="-o"/>
518- <mapper type="glob" from="*.html" to="../${dir.publish}/*.html"/>
519- <targetfile/>
520- </apply>
521- </target>
522-
523-
524- <target name="-htmlbuildkit">
525- <apply executable="java" parallel="false" force="true" dest="./${dir.publish}/" >
526- <fileset dir="./${dir.publish}/" includes="${page-files}"/>
527- <arg value="-jar"/>
528- <arg path="./${dir.build}/tools/${tool.htmlcompressor}"/>
529- <arg value="--preserve-comments"/>
530- <arg line="--preserve-multi-spaces"/>
531- <arg line="--type html"/>
532- <arg line="--compress-js"/>
533- <arg line="--compress-css"/>
534- <srcfile/>
535- <arg value="-o"/>
536- <mapper type="glob" from="*.html" to="../${dir.publish}/*.html"/>
537- <targetfile/>
538- </apply>
539- </target>
540-
541-
542- <target name="-htmlcompress">
543- <apply executable="java" parallel="false" force="true" dest="./${dir.publish}/" >
544- <fileset dir="./${dir.publish}/" includes="${page-files}"/>
545- <arg value="-jar"/>
546- <arg path="./${dir.build}/tools/${tool.htmlcompressor}"/>
547- <arg line="--type html"/>
548- <arg line="--remove-quotes"/>
549- <arg line="--compress-js"/>
550- <arg line="--compress-css"/>
551- <srcfile/>
552- <arg value="-o"/>
553- <mapper type="glob" from="*.html" to="../${dir.publish}/*.html"/>
554- <targetfile/>
555- </apply>
556- </target>
557-
558-
559- <target name="-serverconfig" description="(PRIVATE) Upgrades expires headers">
560- <echo message="Upgrading expires header timeouts for js/css"/>
561- <replace file="./${dir.publish}/${file.serverconfig}" token="access plus 2 months" value="access plus 1 year"/>
562- </target>
563-
564-
565- <!-- CSS -->
566- <target name="-css" description="Concatenates and Minifies any stylesheets listed in the file.stylesheets property">
567- <echo message="Minifying css..."/>
568-
569- <concat destfile="./${dir.publish}/${dir.css}/style-${build.number}.css">
570- <filelist dir="./${dir.publish}/${dir.css}" files="${stylesheet-files}"/>
571- </concat>
572- <apply executable="php" parallel="false">
573- <fileset dir="./${dir.publish}/${dir.css}/" includes="style-${build.number}.css"/>
574- <arg line="-f"/>
575- <arg path="./${dir.build.tools}/${tool.csscompressor}"/>
576- <srcfile/>
577- <redirector>
578- <outputmapper type="glob" from="style-${build.number}.css" to="./${dir.publish}/${dir.css}/style-${build.number}.min.css"/>
579- </redirector>
580- </apply>
581- <replace token="style.css" value="style-${build.number}.min.css" dir="${dir.publish}" includes="${page-files}"/>
582- </target>
583-
584-
585- <!-- IMAGES -->
586- <target name="-imagespng" description="(PRIVATE) Optimizes .png images using optipng">
587- <echo message="Optimizing images"/>
588-
589- <!-- osfamily=unix is actually true on OS X as well -->
590- <apply executable="optipng" osfamily="unix">
591- <arg value="-o7"/>
592- <fileset dir="./${dir.publish}/">
593- <include name="**/*.png"/>
594- </fileset>
595- </apply>
596- <apply executable="tools/optipng-0.6.4-exe/optipng.exe" osfamily="windows">
597- <arg value="-o7"/>
598- <fileset dir="./${dir.publish}/">
599- <include name="**/*.png"/>
600- </fileset>
601- </apply>
602- </target>
603-
604-
605- <target name="-imagesjpg" description="(PRIVATE) Optimizes .jpg images using jpegtan">
606- <echo message="Clean up those jpgs..."/>
607- <if>
608- <equals arg1="${images.strip.metadata}" arg2="true"/>
609- <then>
610- <var name="strip-meta-tags" value="none"/>
611- </then>
612- <else>
613- <var name="strip-meta-tags" value="all"/>
614- </else>
615- </if>
616- <apply executable="jpegtran" osfamily="unix">
617- <fileset dir="./${dir.publish}/${dir.images}/" includes="*.jpg"/>
618- <arg value="-copy"/>
619- <arg value="${strip-meta-tags}"/>
620- <srcfile/>
621- <targetfile/>
622- <!-- you may want to flag optimized images. If so, do it here. Otherwise change this to type="identity" -->
623- <mapper type="glob" from="*.jpg" to="../${dir.publish}/${dir.images}/*.jpg"/>
624- </apply>
625- <apply executable="tools/jpegtran.exe" osfamily="windows">
626- <fileset dir="./${dir.publish}/${dir.images}/" includes="*.jpg"/>
627- <arg value="-copy"/>
628- <arg value="${strip-meta-tags}"/>
629- <srcfile/>
630- <targetfile/>
631- <!-- you may want to flag optimized images. If so, do it here. Otherwise change this to type="identity" -->
632- <mapper type="glob" from="*.jpg" to="../${dir.publish}/${dir.images}/*.jpg"/>
633- </apply>
634- </target>
635-
636-</project>
build/config/build.properties+0−3
@@ -1,3 +0,0 @@
1-# build.properties file defines overrides for default.properties
2-# Explaination: This file should be created by each user as and when he or she needs to override particular values.
3-# Consequently, it should not be placed under version control.
build/config/default.properties+0−79
@@ -1,79 +0,0 @@
1-#
2-# Default Build Settings
3-# you can override these settings on a project basis in a project.properties file
4-# so probably best not to touch these as they could be overwritten in later versions!
5-#
6-
7-
8-#
9-# Directory Paths
10-#
11-dir.publish = publish
12-dir.build = build
13-dir.build.tools = ${dir.build}/tools
14-dir.test = test
15-dir.demo = demo
16-dir.js = js
17-dir.js.main = ${dir.js}
18-# scripts in the lib direcotry will only be minified, not concatenated together
19-dir.js.libs = ${dir.js}/libs
20-dir.js.mylibs = ${dir.js}/mylibs
21-dir.css = css
22-dir.images = images
23-
24-
25-#
26-# HTML, PHP, etc files to clean and update script/css references
27-#
28-file.pages.default.include = index.html, 404.html
29-
30-# You will need to include the property file.pages.include in your project.properties file
31-# and add any extra pages you want to be updated by the scripts in a comma separated list
32-
33-
34-# the server configuration you're going with. If you don't use apache,
35-# get a different one here: github.com/paulirish/html5-boilerplate-server-configs
36-
37-file.serverconfig = .htaccess
38-
39-#
40-# Files not to be copied over by the script to the publish directory
41-#
42-file.default.exclude = .gitignore, .project, .settings, README.markdown, README.md, **/.git/**, **/.svn/**, **/${dir.build}/**, **/${dir.test}/**, **/${dir.demo}/**
43-
44-# Declare the file.exclude property in your project.properties file if you want to exclude files / folders you have added
45-# Note: you cannot decalre an empty file.exclude property
46-
47-
48-#
49-# Default Stylesheet
50-#
51-file.default.stylesheets = style.css
52-
53-#
54-# Script Optimisation
55-#
56-# If set, concat libraries with main scripts file, producing single script file
57-build.concat.scripts = true
58-# If set, delete minified but unconcatted files.
59-build.delete.unoptimized = true
60-
61-
62-#
63-# Image Optimisation
64-#
65-images.strip.metadata = false
66-# Seting this to true will strip the metadata from all jpeg files.
67-# YOU SHOULD ONLY DO THIS IF YOU OWN THE COPYRIGHT TO ALL THE IMAGES IN THE BUILD
68-
69-
70-# Build Info
71-build.version.info = buildinfo.properties
72-build.scripts.dir = ${dir.build}/build-scripts
73-
74-# Tools
75-tool.yuicompressor = yuicompressor-2.4.2.jar
76-tool.htmlcompressor = htmlcompressor-0.9.8.jar
77-tool.csscompressor = css-compressor/cli.php
78-
79-
build/config/project.properties+0−49
@@ -1,49 +0,0 @@
1-# project.properties file defines overrides for default.properties
2-# Explanation: This file should be created by each user as and when he or she needs to override particular values.
3-# Consequently, it should not be placed under version control.
4-
5-
6-# Stylesheets
7-#
8-# Note: Stylesheets will be concatonated in the order they are listed in the file.stylesheets property (i.e. the last
9-# file listed will be at the end of the concatenated file), so it probably makes sense to have the main style.css file
10-# as the first entry
11-# Example:
12-# file.stylesheets = style.css, lightbox.css, plugin.css
13-#
14-file.stylesheets =
15-
16-
17-# Web Pages
18-#
19-# These are the pages (files) that will be served to users (.html, .php, .asp, etc). Files in this property will
20-# be minified / optimised and have any stylesheet or javascript references updated to the minified examples
21-#
22-# The paths need to be relative
23-#
24-# Files can be added in a comma separated form
25-file.pages =
26-
27-
28-
29-# Excluded files and dirs
30-#
31-# Add any files or directories you add to the project and do not want to be copied to the publish directory as a
32-# comma separated list
33-# These files are ignored in addition to the default ones specified in default.properties.
34-file.exclude =
35-
36-
37-
38-
39-# Directory Structure
40-#
41-# Override any directory paths specific to this project
42-#
43-# dir.publish
44-# dir.js
45-# dir.js.libs
46-# dir.js.mylibs
47-# dir.css
48-# dir.images
49-
build/createproject.sh+0−73
@@ -1,73 +0,0 @@
1-#!/usr/bin/env bash
2-
3-#Generate a new project from your HTML5 Boilerplate repo clone
4-#Created 2010-10-13, Rick Waldron
5-
6-
7-##first run
8-# $ cd html5-boilerplate/build
9-# $ sudo chmod a+x createproject.sh && ./createproject.sh
10-
11-##usage
12-# $ cd html5-boilerplate/build
13-# $ ./createproject.sh
14-
15-echo "To create a new html5-boilerplate project, enter a new directory name:"
16-
17-read name
18-
19-cd ..
20-
21-webroot=$PWD
22-
23-SRC=$webroot"/html5-boilerplate"
24-DST=$webroot"/../"$name
25-
26-if [ -d "$DST" ]
27-then
28- echo "$DST exists"
29-else
30- #create new project
31- mkdir $name
32-
33- #sucess message
34- echo "Created Directory: $DST"
35-
36- cd $SRC
37-
38- #copy to new project directory
39- #http://en.wikipedia.org/wiki/Cpio#Copy
40- #http://cybertiggyr.com/cpio-howto/
41- #http://www.cyberciti.biz/faq/how-do-i-use-cpio-command-under-linux/
42- find . -depth -print0 | cpio -0pdmv $DST
43-
44-
45- #sucess message
46- echo "Created Project: $DST"
47-
48- # delete that temporary folder
49- rm -r $name
50-
51- #move into new project
52- cd $DST
53-
54- #in Bourne Again Shell, the cpio was copying
55- #the whole dir into the new project, along with the contents
56- if [ -d "$DST/html5-boilerplate" ]
57- then
58- rm -r html5-boilerplate
59- fi
60-
61- if [ -e "$DST/createproject.sh" ]
62- then
63- rm -r createproject.sh
64- fi
65-
66- if [ -e "$DST/.git" ]
67- then
68- rm -rf .git
69- fi
70-
71-
72-fi
73-
build/tools/ant-contrib-1.0b3.jar+0−0
Binary file, not shown.
build/tools/css-compressor/CSSCompression.php+0−465
@@ -1,465 +0,0 @@
1-<?php
2-/**
3- * CSS Compressor [VERSION]
4- * [DATE]
5- * Corey Hart @ http://www.codenothing.com
6- */
7-
8-// Static dependencies, Subclasses loaded ondemand
9-require( dirname(__FILE__) . '/lib/Exception.php' );
10-require( dirname(__FILE__) . '/lib/Control.php' );
11-
12-
13-Class CSSCompression
14-{
15- /**
16- * CSSCompression Info
17- *
18- * @const (string) VERSION: Release version
19- * @const (string) DATE: Release date
20- */
21- const VERSION = "[VERSION]";
22- const DATE = "[DATE]";
23-
24- /**
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/changelog+0−22
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/cli.php+0−101
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/helpers/hex2short-colors.json+0−39
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/helpers/hex2short-safe.json+0−16
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/helpers/long2hex-colors.json+0−127
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/lib/Cleanup.php+0−218
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/lib/Color.php+0−199
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/lib/Combine.php+0−191
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/lib/Combine/Aural.php+0−109
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/lib/Combine/Background.php+0−107
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/lib/Combine/Border.php+0−98
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/lib/Combine/BorderOutline.php+0−109
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/lib/Combine/BorderRadius.php+0−262
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/lib/Combine/Font.php+0−125
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/lib/Combine/List.php+0−104
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/lib/Combine/MarginPadding.php+0−190
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/lib/Compress.php+0−212
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/lib/Control.php+0−236
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/lib/Exception.php+0−32
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/lib/Format.php+0−187
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/lib/Individuals.php+0−307
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/lib/Numeric.php+0−103
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/lib/Option.php+0−133
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/lib/Organize.php+0−149
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/lib/Selectors.php+0−245
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/lib/Setup.php+0−292
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/lib/Trim.php+0−213
Cut short: this commit's diff is over 1000 lines.
build/tools/css-compressor/license.txt+0−21
Cut short: this commit's diff is over 1000 lines.
build/tools/htmlcompressor-0.9.8.jar+0−0
Binary file, not shown.
build/tools/jpegtran.exe+0−0
Binary file, not shown.
build/tools/optipng-0.6.4-exe/LICENSE.txt+0−21
Cut short: this commit's diff is over 1000 lines.
build/tools/optipng-0.6.4-exe/optipng.exe+0−0
Binary file, not shown.
build/tools/yuicompressor-2.4.2.jar+0−0
Binary file, not shown.
crossdomain.xml+0−25
Cut short: this commit's diff is over 1000 lines.
demo/elements.html+0−537
Cut short: this commit's diff is over 1000 lines.
demo/hack.css+0−85
Cut short: this commit's diff is over 1000 lines.
demo/hack2.css+0−41
Cut short: this commit's diff is over 1000 lines.
demo/internet_explorer.png+0−0
Binary file, not shown.
demo/test_tubes.png+0−0
Binary file, not shown.
demo/tests.html+0−312
Cut short: this commit's diff is over 1000 lines.
test/index.html+0−31
Cut short: this commit's diff is over 1000 lines.
test/qunit/qunit.css+0−148
Cut short: this commit's diff is over 1000 lines.
test/qunit/qunit.js+0−1265
Cut short: this commit's diff is over 1000 lines.
test/tests.js+0−27
Cut short: this commit's diff is over 1000 lines.