Browse files

This is a manual merge of the files in the outstanding commits, pulle…

…d from Master and diff'd against those folders. Sigh…. not my first best choice but this is taking far too long.
  • Loading branch information...
1 parent ed37515 commit f6c2aed99d6edf11bb7797e057bf477cb4f12a0e @rcherny rcherny committed Sep 17, 2012
Showing with 83 additions and 81,722 deletions.
  1. +9 −4 README.md
  2. +0 −1,051 build/build.xml
  3. +0 −116 build/config/default.properties
  4. +0 −20 build/config/manifest.appcache
  5. +0 −96 build/config/project.properties
  6. +0 −50 build/createproject.sh
  7. +0 −7 build/project.xml
  8. +0 −6 build/runbuildscript.bat
  9. BIN build/tools/ant-contrib-1.0b3.jar
  10. BIN build/tools/closure-compiler-v1346.jar
  11. +0 −11,138 build/tools/csslint-rhino.js
  12. +0 −5,904 build/tools/fulljshint.js
  13. +0 −6,651 build/tools/fulljslint.js
  14. BIN build/tools/htmlcompressor-1.4.3.jar
  15. BIN build/tools/jpegtran.exe
  16. +0 −21 build/tools/optipng-0.6.4-exe/LICENSE.txt
  17. BIN build/tools/optipng-0.6.4-exe/optipng.exe
  18. BIN build/tools/rhino.jar
  19. BIN build/tools/yuicompressor-2.4.5.jar
  20. +1 −4 cache.manifest
  21. +0 −679 css/960.css
  22. BIN css/img/icon-curly-full.png
  23. +73 −72 css/style.css
  24. +0 −34 es/.gitignore
  25. +0 −23 es/README.md
  26. +0 −1,051 es/build/build.xml
  27. +0 −116 es/build/config/default.properties
  28. +0 −20 es/build/config/manifest.appcache
  29. +0 −96 es/build/config/project.properties
  30. +0 −50 es/build/createproject.sh
  31. +0 −7 es/build/project.xml
  32. +0 −6 es/build/runbuildscript.bat
  33. BIN es/build/tools/ant-contrib-1.0b3.jar
  34. BIN es/build/tools/closure-compiler-v1346.jar
  35. +0 −11,138 es/build/tools/csslint-rhino.js
  36. +0 −5,904 es/build/tools/fulljshint.js
  37. +0 −6,651 es/build/tools/fulljslint.js
  38. BIN es/build/tools/htmlcompressor-1.4.3.jar
  39. BIN es/build/tools/jpegtran.exe
  40. +0 −21 es/build/tools/optipng-0.6.4-exe/LICENSE.txt
  41. BIN es/build/tools/optipng-0.6.4-exe/optipng.exe
  42. BIN es/build/tools/rhino.jar
  43. BIN es/build/tools/yuicompressor-2.4.5.jar
  44. +0 −679 es/css/960.css
  45. BIN es/css/fonts/alexandriaflf-bold-webfont.eot
  46. +0 −245 es/css/fonts/alexandriaflf-bold-webfont.svg
  47. BIN es/css/fonts/alexandriaflf-bold-webfont.ttf
  48. BIN es/css/fonts/alexandriaflf-bold-webfont.woff
  49. BIN es/css/fonts/alexandriaflf-bolditalic-webfont.eot
  50. +0 −245 es/css/fonts/alexandriaflf-bolditalic-webfont.svg
  51. BIN es/css/fonts/alexandriaflf-bolditalic-webfont.ttf
  52. BIN es/css/fonts/alexandriaflf-bolditalic-webfont.woff
  53. BIN es/css/fonts/alexandriaflf-italic-webfont.eot
  54. +0 −245 es/css/fonts/alexandriaflf-italic-webfont.svg
  55. BIN es/css/fonts/alexandriaflf-italic-webfont.ttf
  56. BIN es/css/fonts/alexandriaflf-italic-webfont.woff
  57. BIN es/css/fonts/alexandriaflf-webfont.eot
  58. +0 −245 es/css/fonts/alexandriaflf-webfont.svg
  59. BIN es/css/fonts/alexandriaflf-webfont.ttf
  60. BIN es/css/fonts/alexandriaflf-webfont.woff
  61. +0 −8 es/css/handheld.css
  62. BIN es/css/img/arrow-090-small.png
  63. BIN es/css/img/bg-body.gif
  64. BIN es/css/img/fork-me.png
  65. BIN es/css/img/icon-curly.png
  66. BIN es/css/img/isobar-feature.png
  67. BIN es/css/img/isobar-logo.jpg
  68. BIN es/css/img/isobar-logo.png
  69. BIN es/css/img/isobar.png
  70. BIN es/css/img/lock-10.png
  71. BIN es/css/img/sprite-social.png
  72. +0 −907 es/css/style.css
  73. +0 −1 es/css/syntax.css
  74. BIN es/favicon.ico
  75. +0 −2 es/img/.gitignore
  76. BIN es/img/arrow-090-small.png
  77. BIN es/img/box_model.png
  78. BIN es/img/browsers1.jpg
  79. BIN es/img/fork-me.png
  80. BIN es/img/ft_logo.png
  81. BIN es/img/isobar-feature.png
  82. BIN es/img/isobar-logo.jpg
  83. BIN es/img/isobar-logo.png
  84. BIN es/img/isobar.png
  85. BIN es/img/layout/bg-body.gif
  86. BIN es/img/layout/icon-curly.png
  87. BIN es/img/layout/sprite-social.png
  88. BIN es/img/lock-10.png
  89. BIN es/img/patterns_hiring.gif
  90. BIN es/img/screenshot.jpg
  91. BIN es/img/screenshot.psd
  92. BIN es/img/seoautid1.png
  93. BIN es/img/seoautid2.png
  94. +0 −97 es/index.php
  95. +0 −9,044 es/js/jquery-1.6.3.js
  96. +0 −4 es/js/jquery-1.6.3.min.js
  97. +0 −4 es/js/jquery-1.7.min.js
  98. +0 −28 es/js/libs/FlashCanvas/flashcanvas.js
  99. BIN es/js/libs/FlashCanvas/flashcanvas.swf
  100. +0 −13 es/js/libs/dd_belatedpng.js
  101. +0 −8,316 es/js/libs/jquery-1.5.1.js
  102. +0 −16 es/js/libs/jquery-1.5.1.min.js
  103. +0 −8,374 es/js/libs/jquery-1.5.2.js
  104. +0 −16 es/js/libs/jquery-1.5.2.min.js
  105. +0 −2 es/js/libs/modernizr-1.7.min.js
  106. +0 −23 es/js/libs/request-animation-frame.js
  107. +0 −6 es/js/libs/syntax.js
  108. +0 −1,127 es/js/modernizr-2.0.6.dev.js
  109. +0 −4 es/js/modernizr-2.0.6.min.js
  110. +0 −2 es/js/mylibs/.gitignore
  111. +0 −51 es/js/plugins.js
  112. +0 −514 es/js/script.js
  113. +0 −42 es/layout/header.php
  114. +0 −126 es/sections/accessibility.html
  115. +0 −280 es/sections/appendices.html
  116. +0 −120 es/sections/browsers.html
Sorry, we could not display the entire diff because it was too big.
View
13 README.md
@@ -1,12 +1,18 @@
-# Isobar Front-end Development Standards [http://na.isobar.com/standards](http://na.isobar.com/standards)
+# Roundarch Isobar Front-end Development Standards and Guidelines [http://na.isobar.com/standards](http://na.isobar.com/standards)
## License:
All content licensed under Creative Commons Attribution 3.0 Unported License
+## Work in Progress (Fall 2012)
+
+We're currently working on a rather large set of changes to this document in both the build structure and content. Please keep your eyes open for some updates.
+
+This includes proper integration of the multi-lingual translations, as we're not happy with the current implementation (and was never even pushed live). Also, naturally, some more guidelines document and a general code cleanup.
+
## Summary:
-This document contains guidelines for web applications built by the Creative Technology (front end engineering) practice of Isobar North America (previously Molecular). It is to be readily available to anyone who wishes to check or contribute to the iterative progress of our discipline's best practices.
+This document contains guidelines for web applications built by the Creative Technology (front end engineering) practice of Roundarch Isobar (previously Isobar & Molecular). It is to be readily available to anyone who wishes to check or contribute to the iterative progress of our discipline's best practices.
This document's primary motivation is two- fold: 1) code consistency and 2) best practices. By maintaining consistency in coding styles and conventions, we can ease the burden of legacy code maintenance, and mitigate risk of breakage in the future. By adhering to best practices, we ensure optimized page loading, performance and maintainable code.
@@ -16,9 +22,8 @@ We hope to encourage other developers to think about how to best standardize the
## Structure of Page Content
-The index.php file is used to include each of the .html files contained within the /sections/ directory. We have separated the different sections that make up the page into individual files so that it is easier to edit, basically making the content of the page more modular. This is also part of what we consider a best practice when dealing with large projects, as if it were an application involving lots of code, that several people work on.
+The index.php file is used to include each of the .html files contained within the /sections/[lang] directory. We have separated the different sections that make up the page into individual files so that it is easier to edit, basically making the content of the page more modular. This is also part of what we consider a best practice when dealing with large projects, as if it were an application involving lots of code, that several people work on.
Each of these files include content wrapped within sections. This should be self-explanatory I think. In each section, we make use of all h1-h6 heading tags multiple times since HTML5 lets you use as many as you like. Of course, we try to always use them and all other HTML5 tags appropriately, and making use of semantic tags where they are best suited.
-Refer to the HTML5 outline of the document in the wiki to get a better idea of the page architecture: http://goo.gl/xEjB5
View
1,051 build/build.xml
@@ -1,1051 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE project>
-<project name="Boilerplate Build" default="build" basedir="../"> <!-- one back since we're in build/ -->
-
-
- <!-- Load in Ant-Contrib to give us access to some very useful tasks! -->
- <!-- the .jar file is located in the tools directory -->
- <taskdef resource="net/sf/antcontrib/antlib.xml">
- <classpath>
- <pathelement location="${basedir}/build/tools/ant-contrib-1.0b3.jar"/>
- </classpath>
- </taskdef>
-
- <!-- load shell environment -->
- <property environment="ENV" />
-
- <!-- load property files -->
- <property file="build/config/project.properties"/>
- <property file="build/config/default.properties"/>
-
- <!-- merge the stylesheet properties -->
- <var name="stylesheet-files" value="${file.default.stylesheets}, ${file.stylesheets}"/>
-
- <!-- merge the pages properties -->
- <var name="page-files" value="${file.pages}, ${file.pages.default.include}"/>
-
- <!-- Test for Ant Version Delete this task and all instances of overwrite='no' if you can't upgrade to 1.8.2-->
- <fail message="All features of the build script require Ant version 1.8.2. Please upgrade to 1.8.2 or remove all instances of 'overwrite=no' (and this fail task) from the build script to continue">
- <condition>
- <not>
- <contains string="${ant.version}" substring="1.8.2"/>
- </not>
- </condition>
- </fail>
-
- <!--
- *************************************************
- * BASE TARGETS *
- *************************************************
- -->
- <target name="basics">
- <if>
- <equals arg1="${env}" arg2="dev"/>
- <then>
- <!-- Build a dev environment -->
- <echo message="Building a Development Environment..."/>
- <antcall target="-basics.dev"/>
- </then>
-
- <elseif>
- <equals arg1="${env}" arg2="test"/>
- <then>
- <!-- Build a test environment -->
- <echo message="Building a Test Environment..."/>
- <antcall target="-basics.test"/>
- </then>
- </elseif>
-
- <else>
- <!-- Build a production environment -->
- <echo message="Building a Production Environment..."/>
- <antcall target="-basics.production"/>
- </else>
- </if>
- </target>
-
-
- <target name="text">
- <if>
- <equals arg1="${env}" arg2="dev"/>
- <then>
- <!-- Build a dev environment -->
- <echo message="Building a Development Environment..."/>
- <antcall target="-text.dev"/>
- </then>
-
- <elseif>
- <equals arg1="${env}" arg2="test"/>
- <then>
- <!-- Build a test environment -->
- <echo message="Building a Test Environment..."/>
- <antcall target="-text.test"/>
- </then>
- </elseif>
-
- <else>
- <!-- Build a production environment -->
- <echo message="Building a Production Environment..."/>
- <antcall target="-text.production"/>
- </else>
- </if>
- <antcall target="-imgcopy"/>
- </target>
-
-
- <target name="buildkit">
- <if>
- <equals arg1="${env}" arg2="dev"/>
- <then>
- <!-- Build a dev environment -->
- <echo message="Building a Development Environment..."/>
- <antcall target="-buildkit.dev"/>
- </then>
-
- <elseif>
- <equals arg1="${env}" arg2="test"/>
- <then>
- <!-- Build a test environment -->
- <echo message="Building a Test Environment..."/>
- <antcall target="-buildkit.test"/>
- </then>
- </elseif>
-
- <else>
- <!-- Build a production environment -->
- <echo message="Building a Production Environment..."/>
- <antcall target="-buildkit.production"/>
- </else>
- </if>
- </target>
-
-
- <target name="build">
- <if>
- <equals arg1="${env}" arg2="dev"/>
- <then>
- <!-- Build a dev environment -->
- <echo message="Building a Development Environment..."/>
- <antcall target="-build.dev" />
- </then>
-
- <elseif>
- <equals arg1="${env}" arg2="test"/>
- <then>
- <!-- Build a test environment -->
- <echo message="Building a Test Environment..."/>
- <antcall target="-build.test" />
- </then>
- </elseif>
-
- <else>
- <!-- Build a production environment -->
- <echo message="Building a Production Environment..."/>
- <antcall target="-build.production" />
- </else>
- </if>
- </target>
-
-
- <target name="minify">
- <if>
- <equals arg1="${env}" arg2="dev"/>
- <then>
- <!-- Build a dev environment -->
- <echo message="Building a Development Environment..."/>
- <antcall target="-minify.dev"/>
- </then>
-
- <elseif>
- <equals arg1="${env}" arg2="test"/>
- <then>
- <!-- Build a test environment -->
- <echo message="Building a Test Environment..."/>
- <antcall target="-minify.test"/>
- </then>
- </elseif>
-
- <else>
- <!-- Build a production environment -->
- <echo message="Building a Production Environment..."/>
- <antcall target="-minify.production"/>
- </else>
- </if>
- </target>
-
- <target name="clean" depends="-clean"/>
-
-
-
- <!-- JSLint target, run separately -->
- <target name="jslint">
- <apply dir="${dir.source}/${dir.js}" executable="java" parallel="false" failonerror="true">
- <fileset dir="./${dir.source}/">
- <include name="**/${dir.js}/*.js"/>
- <exclude name="**/*.min.js"/>
- <exclude name="**/${dir.js.libs}/"/>
- <exclude name="**/${dir.publish}/"/>
- </fileset>
- <arg value="-jar" />
- <arg path="./${dir.build.tools}/${tool.rhino}" />
- <arg path="./${dir.build.tools}/${tool.jslint}" />
- <srcfile/>
- <arg value="${tool.jslint.opts}" />
- </apply>
- <echo>JSLint Successful</echo>
- </target>
-
-
- <!-- JSHint target, run separately -->
- <target name="jshint">
- <apply dir="${dir.source}/${dir.js}" executable="java" parallel="false" failonerror="true">
- <fileset dir="./${dir.source}/">
- <include name="**/${dir.js}/*.js"/>
- <exclude name="**/*.min.js"/>
- <exclude name="**/${dir.js.libs}/"/>
- <exclude name="**/${dir.publish}/"/>
- </fileset>
- <arg value="-jar" />
- <arg path="./${dir.build.tools}/${tool.rhino}" />
- <arg path="./${dir.build.tools}/${tool.jshint}" />
- <srcfile/>
- <arg value="${tool.jshint.opts}" />
- </apply>
- <echo>JSHint Successful</echo>
- </target>
-
- <!-- CSSLint target, run separately -->
- <target name="csslint">
- <apply dir="${dir.source}/${dir.css}" executable="java" parallel="false" failonerror="true">
- <fileset dir="./${dir.source}/">
- <include name="**/${dir.css}/*.css"/>
- <exclude name="**/*.min.css"/>
- <exclude name="**/${dir.publish}/"/>
- </fileset>
- <arg value="-jar" />
- <arg path="./${dir.build.tools}/${tool.rhino}" />
- <arg path="./${dir.build.tools}/${tool.csslint}" />
- <srcfile/>
- <arg value="${tool.csslint.opts}" />
- </apply>
- <echo>CSSLint Successful</echo>
- </target>
-
- <!--
- *************************************************
- * BUILD TARGETS *
- *************************************************
- -->
-
- <!-- Target: basics -->
- <target name="-basics.dev"
- depends="-intro,
- -copy"/>
-
- <target name="-basics.test"
- depends="-intro,
- -usemin,
- -js.all.minify,
- -js.main.concat,
- -js.mylibs.concat,
- -js.scripts.concat,
- -css,
- -manifest,
- -copy"/>
-
- <target name="-basics.production"
- depends="-intro,
- -usemin,
- -js.all.minify,
- -js.main.concat,
- -js.mylibs.concat,
- -js.scripts.concat,
- -css,
- -manifest,
- -copy"/>
-
- <!-- Target: text -->
- <target name="-text.dev"
- depends="-intro,
- -copy"/>
-
- <target name="-text.test"
- depends="-intro,
- -usemin,
- -js.all.minify,
- -js.main.concat,
- -js.mylibs.concat,
- -js.scripts.concat,
- -css,
- -manifest,
- -htmlclean,
- -copy"/>
-
- <target name="-text.production"
- depends="-intro,
- -usemin,
- -js.all.minify,
- -js.main.concat,
- -js.mylibs.concat,
- -js.scripts.concat,
- -css,
- -manifest,
- -htmlclean,
- -copy"/>
-
- <!-- Target: buildkit -->
- <target name="-buildkit.dev"
- depends="-intro,
- -imagespng,
- -imagesjpg,
- -copy"/>
-
- <target name="-buildkit.test"
- depends="-intro,
- -usemin,
- -js.all.minify,
- -js.main.concat,
- -js.mylibs.concat,
- -js.scripts.concat,
- -css,
- -manifest,
- -htmlbuildkit,
- -imagespng,
- -imagesjpg,
- -copy"/>
-
- <target name="-buildkit.production"
- depends="-intro,
- -usemin,
- -js.all.minify,
- -js.main.concat,
- -js.mylibs.concat,
- -js.scripts.concat,
- -css,
- -manifest,
- -htmlbuildkit,
- -imagespng,
- -imagesjpg,
- -copy"/>
-
- <!-- Target: build -->
- <target name="-build.dev"
- depends="-intro,
- -imagespng,
- -imagesjpg,
- -copy"/>
-
- <target name="-build.test"
- depends="-intro,
- -usemin,
- -js.all.minify,
- -js.main.concat,
- -js.mylibs.concat,
- -js.scripts.concat,
- -css,
- -manifest,
- -htmlclean,
- -imagespng,
- -imagesjpg,
- -copy"/>
-
- <target name="-build.production"
- depends="-intro,
- -usemin,
- -js.all.minify,
- -js.main.concat,
- -js.mylibs.concat,
- -js.scripts.concat,
- -css,
- -manifest,
- -htmlclean,
- -imagespng,
- -imagesjpg,
- -copy"/>
-
- <!-- Target: minify -->
- <target name="-minify.dev"
- depends="-intro,
- -imagespng,
- -imagesjpg,
- -copy"/>
-
- <target name="-minify.test"
- depends="-intro,
- -usemin,
- -js.all.minify,
- -js.main.concat,
- -js.mylibs.concat,
- -js.scripts.concat,
- -css,
- -manifest,
- -htmlcompress,
- -imagespng,
- -imagesjpg,
- -copy"/>
-
- <target name="-minify.production"
- depends="-intro,
- -usemin,
- -js.all.minify,
- -js.main.concat,
- -js.mylibs.concat,
- -js.scripts.concat,
- -css,
- -manifest,
- -htmlcompress,
- -imagespng,
- -imagesjpg,
- -copy"/>
-
- <!--
- *************************************************
- * FUNCTION TARGETS *
- *************************************************
- -->
-
- <target name="-clean" description="(PRIVATE) Wipe the previous build (Deletes the dir.publish directory">
- <!-- This is a private target -->
- <echo message="Cleaning up previous build directory..."/>
- <delete dir="./${dir.intermediate}/"/>
- <delete dir="./${dir.publish}/"/>
- </target>
-
-
- <target name="-intro" description="(PRIVATE) Kindly inform the developer about the impending magic">
- <!-- This is a private target -->
-
- <echo message="====================================================================="/>
- <echo message="Welcome to the HTML5 Boilerplate Build Script!"/>
- <echo message=" "/>
- <echo message="We're going to get your site all ship-shape and ready for prime time."/>
- <echo message=" "/>
- <echo message="This should take somewhere between 15 seconds and a few minutes,"/>
- <echo message="mostly depending on how many images we're going to compress."/>
- <echo message=" "/>
- <echo message="Feel free to come back or stay here and follow along."/>
- <echo message="====================================================================="/>
- <echo message=" "/>
- <echo message=" "/>
-
- </target>
-
- <target name="-mkdirs">
- <if>
- <or>
- <equals arg1="${dir.publish}" arg2="."/>
- <equals arg1="${dir.publish}" arg2=".."/>
- <equals arg1="${dir.publish}" arg2="/"/>
- <equals arg1="${dir.publish}" arg2="./"/>
- <equals arg1="${dir.publish}" arg2="../"/>
- </or>
- <then>
- <fail message="Your dir.publish folder is set to ${dir.publish} which could delete your entire site or worse. Change it in project.properties"/>
- </then>
- <else>
- <echo message="Creating directory structure... ${dir.publish}"/>
-
- <mkdir dir="${dir.intermediate}"/>
- <copy todir="${dir.intermediate}" includeEmptyDirs="true">
- <fileset dir="${dir.source}/" excludes="${file.default.exclude}, ${file.exclude}">
- <type type="dir"/>
- </fileset>
- </copy>
- <mkdir dir="${dir.publish}"/>
- <copy todir="${dir.publish}" includeEmptyDirs="true">
- <fileset dir="${dir.source}/" excludes="${file.default.exclude}, ${file.exclude}">
- <type type="dir"/>
- </fileset>
- </copy>
- </else>
- </if>
- </target>
-
- <target name="-copy" depends="-mkdirs">
- <!-- This is a private target -->
-
- <echo message="Copying over new files..."/>
-
- <copy todir="./${dir.publish}">
- <fileset dir="${dir.source}/" excludes="${file.default.exclude}, ${file.exclude}">
- <!-- exclude files that are superseded by optimized versions with different names -->
- <!-- this is not strictly necessary, but it avoids putting unreferenced files into your server -->
- <exclude name="${dir.js}/**/*.js"/>
- <exclude name="${dir.css}/**/*.css"/>
- <exclude name="${file.manifest}"/>
- </fileset>
- </copy>
-
- <echo message="A copy of all non-dev files are now in: ./${dir.publish}."/>
- </target>
-
- <!-- JAVASCRIPT -->
- <target name="-js.main.concat" depends="-js.all.minify" description="(PRIVATE) Concatenates the JS files in dir.js">
- <echo message="Concatenating Main JS scripts..."/>
- <!-- overwrite=no here means not to overwrite if the target is newer than the sources -->
- <concat destfile="./${dir.intermediate}/${dir.js}/scripts-concat.js" overwrite="no">
- <fileset dir="./${dir.intermediate}/">
- <include name="${dir.js.main}/plugins.js"/>
- <include name="${dir.js.main}/${file.root.script}"/>
- </fileset>
- </concat>
- </target>
-
- <target name="-js.mylibs.concat" depends="-js.all.minify" description="(PRIVATE) Concatenates the JS files in dir.js.mylibs">
- <mkdir dir="./${dir.intermediate}/${dir.js.mylibs}"/>
-
- <echo message="Concatenating JS libraries"/>
- <!-- overwrite=no here means not to overwrite if the target is newer than the sources -->
- <concat destfile="./${dir.intermediate}/${dir.js}/mylibs-concat.js" overwrite="no">
- <fileset dir="./${dir.intermediate}/${dir.js.mylibs}/"
- includes="**/*.js"
- excludes="${file.js.bypass}"/>
-
- </concat>
- </target>
-
-
- <target name="-js.scripts.concat" depends="-js.main.concat,-js.mylibs.concat" if="build.concat.scripts">
- <echo message="Concatenating library file with main script file"/>
- <!-- overwrite=no here means not to overwrite if the target is newer than the sources -->
- <concat destfile="./${dir.intermediate}/${dir.js}/scripts-concat.min.js" overwrite="no">
- <fileset dir="./${dir.intermediate}/${dir.js}/">
- <include name="mylibs-concat.js"/>
- <include name="scripts-concat.js"/>
- </fileset>
- </concat>
-
- <checksum file="${dir.intermediate}/${dir.js}/scripts-concat.min.js" algorithm="sha" property="scripts.fullsha" />
- <propertyregex property="scripts.sha" input="${scripts.fullsha}" regexp=".{${hash.length}}" select="\0" />
- <property name="scripts.js" value="${dir.js}/${scripts.sha}.js" />
- <copy file="${dir.intermediate}/${dir.js}/scripts-concat.min.js" tofile="${dir.publish}/${dir.js}/${scripts.sha}.js" />
- </target>
-
-
- <target name="-js.all.minify" depends="-mkdirs" description="(PRIVATE) Minifies the scripts.js files created by js.scripts.concat">
- <echo message="Minifying scripts"/>
- <copy todir="${dir.intermediate}/">
- <fileset dir="${dir.source}/" includes="${dir.js}/**/*.min.js" />
- </copy>
- <apply executable="java" parallel="false">
- <fileset dir="${dir.source}/" >
- <include name="${dir.js}/**/*.js"/>
- <exclude name="${dir.js}/**/*.min.js"/>
- </fileset>
- <arg line="-jar"/>
- <arg path="./${dir.build.tools}/closure-compiler-v1346.jar"/>
- <arg line="--js"/>
- <srcfile/>
- <arg line="--compilation_level" />
- <arg value="${scripts.compilation.level}" />
- <arg line="--warning_level" />
- <arg value="${scripts.compilation.warninglevel}" />
- <arg line="--js_output_file" />
- <mapper type="glob" from="*.js" to="${basedir}/${dir.intermediate}/*.js"/>
- <targetfile/>
- </apply>
-
- <!-- at this point all js files are minified with their original names -->
-
- <copy todir="${dir.publish}/">
- <fileset dir="${dir.intermediate}/">
- <include name="${dir.js}/**/*.js"/>
- <exclude name="${dir.js.mylibs}/**/*.js"/>
- <exclude name="${dir.js}/scripts-concat.js"/>
- <exclude name="${dir.js}/mylibs-concat.js"/>
- <exclude name="${dir.js}/scripts-concat.min.js"/>
- <exclude name="${dir.js}/plugins.js"/>
- <exclude name="${dir.js}/${file.root.script}"/>
- </fileset>
- </copy>
- <copy todir="${dir.publish}/${dir.js.mylibs}/">
- <fileset dir="${dir.source}/${dir.js.mylibs}/"
- includes="${file.js.bypass}"/>
- </copy>
- </target>
-
-
- <!-- HTML -->
- <target name="-usemin" depends="-js.scripts.concat,-css" description="(PRIVATE) Replaces references to non-minified scripts">
- <echo message="Switching to minified js files..."/>
-
- <!-- Changes to style.css or scripts.js mean that the html must be updated, and it will be.
- Unfortunately, the html we want to update may not have the tags we want to replace(because it was updated before).
- This outofdate check ensures that the html files have the markers for us to replace. -->
- <outofdate property="needhtmlrefresh">
- <sourcefiles>
- <fileset dir="${dir.publish}" includes="${style.css}, ${scripts.js}"/>
- </sourcefiles>
- <targetfiles>
- <fileset dir="${dir.intermediate}" includes="${page-files}"/>
- </targetfiles>
- </outofdate>
-
- <!-- force the files to be overwritten with older copies from source if needhtmlrefresh is set -->
- <copy todir="${dir.intermediate}" overwrite="${needhtmlrefresh}">
- <fileset dir="${dir.source}" includes="${page-files}"/>
- </copy>
-
- <!-- switch from a regular jquery to minified -->
- <replaceregexp match="jquery-(\d|\d(\.\d)+)\.js" replace="jquery-\1.min.js" flags="g">
- <fileset dir="./${dir.intermediate}" includes="${page-files}"/>
- </replaceregexp>
- <!-- switch any google CDN reference to minified -->
- <replaceregexp match="(\d|\d(\.\d)+)\/jquery\.js" replace="\1/jquery.min.js" flags="g">
- <fileset dir="./${dir.intermediate}" includes="${page-files}"/>
- </replaceregexp>
-
- <echo>Kill off those versioning flags: ?v=2</echo>
- <replaceregexp match='\?v=\d+">' replace='">' flags="g">
- <fileset dir="./${dir.intermediate}" includes="${page-files}"/>
- </replaceregexp>
-
- <echo>Remove favicon.ico reference if it is pointing to the root</echo>
- <replaceregexp match="&lt;link rel=[&quot;']shortcut icon[&quot;'] href=[&quot;']/favicon\.ico[&quot;']&gt;" replace="">
- <fileset dir="${dir.intermediate}" includes="${page-files}"/>
- </replaceregexp>
- <!-- we maintain the apple-touch-icon reference for Android 2.2 www.ravelrumba.com/blog/android-apple-touch-icon
- <replace token="&lt;link rel=&quot;apple-touch-icon&quot; href=&quot;/apple-touch-icon.png&quot;>" value="">
- <fileset dir="${dir.intermediate}" includes="${page-files}"/>
- </replace>
- -->
-
- <echo message="Update the HTML to reference our concatenated script file: ${scripts.js}"/>
- <!-- style.css replacement handled as a replacetoken above -->
- <replaceregexp match="&lt;!-- scripts concatenated [\d\w\s\W]*&lt;script.*src=['&quot;]?(.*)/${file.root.script}(?:\?.*)?['&quot;]?\s*&gt;\s*&lt;/script&gt;[\d\w\s\W]*&lt;!-- end ((scripts)|(concatenated and minified scripts))\s*--&gt;"
- replace="&lt;script defer src='\1/${scripts.sha}.js\'&gt;&lt;/script&gt;" flags="m">
- <fileset dir="${dir.intermediate}" includes="${page-files}"/>
- </replaceregexp>
- <!--[! use comments like this one to avoid having them get minified -->
-
- <echo message="Updating the HTML with the new css filename: ${style.css}"/>
-
- <replaceregexp match="&lt;link rel=['&quot;]?stylesheet['&quot;]?\s+href=['&quot;]?(.*)/${file.root.stylesheet}(?:\?.*)?['&quot;]?\s*&gt;"
- replace="&lt;link rel='stylesheet' href='\1/${css.sha}.css'&gt;" flags="m">
- <fileset dir="${dir.intermediate}" includes="${page-files}"/>
- </replaceregexp>
-
- </target>
-
-
- <target name="-manifest" depends="-usemin">
- <if>
- <isset property="file.manifest" />
- <then>
- <echo message="copying a fresh ${dir.build}/config/${file.manifest} to /${dir.intermediate}"/>
-
- <delete file="${dir.intermediate}/${file.manifest}"/>
- <copy file="${dir.build}/config/${file.manifest}" tofile="${dir.intermediate}/${file.manifest}" />
-
- <echo message="manifest creation" />
-
- <!-- update version -->
- <echo message="Updating the site.manifest version date to today, current time"/>
- <tstamp>
- <format property="TODAY" pattern="yyyy-MM-dd HH:mm:ss"/>
- </tstamp>
- <replaceregexp match="# version .+" replace="# version ${TODAY}" file="${dir.intermediate}/${file.manifest}"/>
-
- <!-- add html files -->
- <echo message="Updating the site.manifest with html files: ${page-files}"/>
- <for list="${page-files}" param="file" delimiter="," trim="true">
- <sequential>
- <replaceregexp match="# html files" replace="# html files${line.separator}@{file}" file="${dir.intermediate}/${file.manifest}" />
- </sequential>
- </for>
-
- <!-- add stylesheet files -->
- <echo message="Updating the site.manifest with the new css filename: ${style.css}"/>
- <replace token="# css files" value="# css files${line.separator}${style.css}" file="${dir.intermediate}/${file.manifest}" />
-
- <!-- add javascript files -->
- <echo message="Updating the site.manifest with the new js filename: ${scripts.js}"/>
- <for param="file">
- <path>
- <fileset dir="./${dir.intermediate}/${dir.js.mylibs}/"
- includes="${file.js.bypass}" />
- </path>
- <sequential>
- <basename property="filename.@{file}" file="@{file}" />
- <replaceregexp match="# js files" replace="# js files${line.separator}${dir.js.mylibs}/${filename.@{file}}" file="${dir.intermediate}/${file.manifest}" />
- </sequential>
- </for>
- <for param="file">
- <path>
- <fileset dir="./${dir.intermediate}/${dir.js.libs}/"
- includes="*.min.js"/>
- </path>
- <sequential>
- <basename property="filename.@{file}" file="@{file}" />
- <replaceregexp match="# js files" replace="# js files${line.separator}${dir.js.libs}/${filename.@{file}}" file="${dir.intermediate}/${file.manifest}" />
- </sequential>
- </for>
- <replace token="# js files" value="# js files${line.separator}${scripts.js}" file="${dir.intermediate}/${file.manifest}" />
-
- <echo message="copying ${file.manifest} to /${dir.publish}"/>
- <copy file="${dir.intermediate}/${file.manifest}" tofile="${dir.publish}/${file.manifest}" />
-
- <echo>Add manifest attribute to HTML: </echo>
- <replaceregexp match="&lt;html (.*?)>\s*?&lt;!--&lt;!\[endif" replace='&lt;html \1 manifest="${file.manifest}"> &lt;!--&lt;![endif' flags="g">
- <fileset dir="./${dir.intermediate}" includes="${page-files}"/>
- </replaceregexp>
-
- </then>
- <else>
- <echo message="no manifest.appcache generated!" />
- </else>
- </if>
- </target>
-
- <target name="-htmlclean" depends="-usemin">
- <echo message="Run htmlcompressor on the HTML"/>
- <echo message=" - maintaining whitespace"/>
- <echo message=" - removing html comments"/>
- <echo message=" - compressing inline style/script tag contents"/>
- <apply executable="java" parallel="false" dest="./${dir.publish}/" >
- <fileset dir="./${dir.intermediate}/" includes="${page-files}"/>
- <arg value="-jar"/>
- <arg path="./${dir.build.tools}/${tool.htmlcompressor}"/>
- <arg line="--preserve-multi-spaces"/>
- <arg line="--remove-quotes"/>
- <arg line="--compress-js"/>
- <arg line="--compress-css"/>
- <arg line="--preserve-php"/>
- <arg line="--preserve-ssi"/>
- <srcfile/>
- <arg value="-o"/>
- <mapper type="glob" from="*" to="../${dir.publish}/*"/>
- <targetfile/>
- </apply>
- </target>
-
-
- <target name="-htmlbuildkit" depends="-usemin">
- <echo message="Run htmlcompressor on the HTML"/>
- <echo message=" - maintaining whitespace"/>
- <echo message=" - retain html comments"/>
- <echo message=" - compressing inline style/script tag contents"/>
- <apply executable="java" parallel="false" dest="./${dir.publish}/" >
- <fileset dir="./${dir.intermediate}/" includes="${page-files}"/>
- <arg value="-jar"/>
- <arg path="./${dir.build.tools}/${tool.htmlcompressor}"/>
- <arg value="--preserve-comments"/>
- <arg line="--preserve-multi-spaces"/>
- <arg line="--compress-js"/>
- <arg line="--compress-css"/>
- <arg line="--preserve-php"/>
- <arg line="--preserve-ssi"/>
- <srcfile/>
- <arg value="-o"/>
- <mapper type="glob" from="*" to="../${dir.publish}/*"/>
- <targetfile/>
- </apply>
- </target>
-
-
- <target name="-htmlcompress" depends="-usemin">
- <echo message="Run htmlcompressor on the HTML"/>
- <echo message=" - removing unnecessary whitespace"/>
- <echo message=" - removing html comments"/>
- <echo message=" - compressing inline style/script tag contents"/>
- <apply executable="java" parallel="false" dest="./${dir.publish}/" >
- <fileset dir="./${dir.intermediate}/" includes="${page-files}"/>
- <arg value="-jar"/>
- <arg path="./${dir.build.tools}/${tool.htmlcompressor}"/>
- <arg line="--remove-quotes"/>
- <arg line="--compress-js"/>
- <arg line="--compress-css"/>
- <arg line="--preserve-php"/>
- <arg line="--preserve-ssi"/>
- <srcfile/>
- <arg value="-o"/>
- <mapper type="glob" from="*" to="../${dir.publish}/*"/>
- <targetfile/>
- </apply>
- </target>
-
-
- <!-- CSS -->
-
- <target name="-css-remove-concatenated-stylesheets">
- <echo>Removing ${css_file} from html</echo>
- <replaceregexp match="&lt;link.+href=&quot;.*${css_file}&quot;.*&gt;" replace=" ">
- <fileset dir="${dir.intermediate}" includes="${page-files}"/>
- </replaceregexp>
- </target>
-
-
- <target name="css-split" description="turns style.css into multiple files @imported together">
- <copy file="${dir.source}/${dir.css}/${file.root.stylesheet}" tofile="${dir.source}/${dir.css}/${file.root.stylesheet}.temp"/>
-
- <replaceregexp file="${dir.source}/${dir.css}/${file.root.stylesheet}.temp"
- match=".*"
- replace="/* remove me */" flags="s" />
-
- <loadfile property="root" srcfile="${dir.source}/${dir.css}/${file.root.stylesheet}"/>
- <var name="curr.buffer" value=""/>
-
- <for delimiter="${line.separator}" param="currline" list="${root}">
- <sequential>
- <!-- does this line contain an h5bp-import? -->
- <propertyregex property="export.name" input="@{currline}" regexp="^.*==\|== +(.*) +==+$" select="\1" casesensitive="true" override="true" />
- <if>
- <isset property="export.name"/>
- <then>
- <propertyregex property="export.name" input="${export.name}" regexp=" " replace="." global="true" override="true" />
- <var name="export.name" value="${export.name}.css"/>
-
- <if>
- <isset property="curr.file"/>
- <then>
- <!-- create curr.file -->
- <copy file="${dir.source}/${dir.css}/${file.root.stylesheet}" tofile="${dir.source}/${dir.css}/${curr.file}" overwrite="true"/>
- <!-- write the curr.buffer into the curr.file -->
- <replaceregexp file="${dir.source}/${dir.css}/${curr.file}"
- match=".*"
- replace="${curr.buffer}" flags="s" />
-
- <var name="curr.buffer" value=""/>
- <var name="curr.file" unset="true"/>
- </then>
- </if>
- <var name="curr.file" value="${export.name}"/>
- <var name="export.name" unset="true"/>
-
- <!-- insert import line into new root -->
- <replace file="${dir.source}/${dir.css}/${file.root.stylesheet}.temp" token="/* remove me */" value="@import url(${curr.file});${line.separator}/* remove me */"/>
- </then>
- </if>
- <var name="curr.buffer" value="${curr.buffer}@{currline}${line.separator}" />
- </sequential>
- </for>
- <!-- one more time to write out the last file -->
- <if>
- <isset property="curr.file"/>
- <then>
- <!-- create curr.file -->
- <copy file="${dir.source}/${dir.css}/${file.root.stylesheet}" tofile="${dir.source}/${dir.css}/${curr.file}" overwrite="true"/>
- <!-- write the curr.buffer into the curr.file -->
- <replaceregexp file="${dir.source}/${dir.css}/${curr.file}"
- match=".*"
- replace="${curr.buffer}" flags="s" />
-
- <var name="curr.buffer" value=""/>
- <var name="curr.file" unset="true"/>
- </then>
- </if>
- <replace file="${dir.source}/${dir.css}/${file.root.stylesheet}.temp" token="/* remove me */" value="${curr.buffer}"/>
- <copy file="${dir.source}/${dir.css}/${file.root.stylesheet}" tofile="${dir.source}/${dir.css}/${file.root.stylesheet}.orig" overwrite="false"/>
- <move file="${dir.source}/${dir.css}/${file.root.stylesheet}.temp" tofile="${dir.source}/${dir.css}/${file.root.stylesheet}" overwrite="false"/>
- </target>
-
- <target name="-css" depends="-mkdirs" description="Concatenates and Minifies any stylesheets @imported via the file.stylesheets">
- <echo message="Concatenating any @imports..."/>
-
- <!-- copy source file to intermediate directory -->
- <copy file="${dir.source}/${dir.css}/${file.root.stylesheet}" tofile="${dir.intermediate}/${dir.css}/${file.root.stylesheet}"/>
-
- <!-- replace imports with h5bp-import tags (part 1) this one wraps @media types -->
- <replaceregexp file="${dir.intermediate}/${dir.css}/${file.root.stylesheet}"
- match="^@import\s+(?:url\s*\(\s*['&quot;]?|['&quot;])((?!http:|https:|ftp:|\/\/)[^&quot;^'^\s]+)(?:['&quot;]?\s*\)|['&quot;])\s*([\w\s,\-]*);.*$"
- replace="@media \2{ /* h5bp-import: \1 */ }" byline="true" />
-
- <!-- replace imports with h5bp-import tags (part 2) -->
- <replaceregexp file="${dir.intermediate}/${dir.css}/${file.root.stylesheet}"
- match="^@media \{ (/\* .* \*/) \}" replace="\1" byline="true" />
-
- <!-- copy skeleton to concat file -->
- <copy file="${dir.intermediate}/${dir.css}/${file.root.stylesheet}"
- tofile="${dir.intermediate}/${dir.css}/style-concat.css" overwrite="true"/>
-
- <!-- load the file into a property -->
- <loadfile property="imports" srcfile="${dir.intermediate}/${dir.css}/${file.root.stylesheet}"/>
-
- <var name="concat-files" value="${file.root.stylesheet}"/>
-
- <!-- go over the file line by line -->
- <for delimiter="${line.separator}" param="import" list="${imports}">
- <sequential>
- <!-- does this line contain an h5bp-import? -->
- <propertyregex property="file.name" input="@{import}" regexp="/\* h5bp-import: (.*) \*/" select="\1" casesensitive="true" override="true" />
-
- <if>
- <isset property="file.name"/>
- <then>
- <var name="concat-files" value="${file.name},${concat-files}"/>
-
- <!-- load the file into a variable -->
- <loadfile property="file.contents" srcFile="${dir.source}/${dir.css}/${file.name}"/>
-
- <!-- pop that file into the concatenated output file -->
- <replace file="${dir.intermediate}/${dir.css}/style-concat.css" token="/* h5bp-import: ${file.name} */" value="${file.contents}"/>
-
- <var name="file.contents" unset="true"/>
- </then>
- </if>
- </sequential>
- </for>
- <echo message="Minifying css..."/>
-
- <apply executable="java" parallel="false">
- <fileset dir="${dir.intermediate}/${dir.css}/" includes="style-concat.css"/>
- <arg line="-jar"/>
- <arg path="${dir.build.tools}/${tool.yuicompressor}"/>
- <srcfile/>
- <arg line="-o"/>
- <mapper type="merge" to="${basedir}/${dir.intermediate}/${dir.css}/style-concat.min.css"/>
- <targetfile/>
- </apply>
-
- <checksum file="${dir.intermediate}/${dir.css}/style-concat.min.css" algorithm="sha" property="css.fullsha" />
- <propertyregex property="css.sha" input="${css.fullsha}" regexp=".{${hash.length}}" select="\0" />
- <property name="style.css" value="${dir.css}/${css.sha}.css" />
- <copy file="${dir.intermediate}/${dir.css}/style-concat.min.css" tofile="${dir.publish}/${dir.css}/${css.sha}.css" />
-
- <echo message="Minifying any unconcatenated css files..."/>
-
- <apply executable="java" parallel="false">
- <fileset dir="${dir.source}/${dir.css}/" excludes="${concat-files}" includes="**/*.css"/>
- <arg line="-jar"/>
- <arg path="${dir.build.tools}/${tool.yuicompressor}"/>
- <srcfile/>
- <arg line="-o"/>
- <mapper type="glob" from="*.css" to="${basedir}/${dir.publish}/${dir.css}/*.css"/>
- <targetfile/>
- </apply>
- <foreach list="${file.stylesheets}" param="css_file" target="-css-remove-concatenated-stylesheets" />
- </target>
-
-
- <!-- IMAGES -->
- <target name="-imagespng" depends="-mkdirs" description="(PRIVATE) Optimizes .png images using optipng">
- <echo message="Optimizing images..."/>
- <echo message="This part might take a while. But everything else is already done."/>
- <echo message=" "/>
-
-
- <echo message="First, we run optipng on the .png files..."/>
-
- <!-- osfamily=unix is actually true on OS X as well -->
- <!-- On *nix's and OS X, check for optipng and give a helpful message if it's not installed -->
- <if>
- <and>
- <os family="unix" />
- <available file="optipng" filepath="${ENV.PATH}" />
- </and>
- <then>
- <!-- work around https://sourceforge.net/tracker/?func=detail&aid=2671422&group_id=151404&atid=780916 -->
- <delete>
- <fileset dir="./${dir.publish}/${dir.images}/">
- <include name="**/*.png"/>
- </fileset>
- </delete>
- <apply executable="optipng" dest="./${dir.publish}/${dir.images}/" osfamily="unix">
- <fileset dir="./${dir.source}/${dir.images}/" includes="**/*.png" excludes="${images.bypass}, ${images.default.bypass}"/>
- <arg value="-quiet"/>
- <arg value="-o7"/>
- <arg value="-out"/>
- <targetfile/>
- <srcfile/>
- <mapper type="identity"/>
- </apply>
- </then>
- <elseif>
- <os family="unix" />
- <then>
- <echo message="*** optipng NOT INSTALLED. SKIPPING OPTIMIZATION OF PNGs." />
- <echo message="*** Install optipng to enable png optimization." />
- <echo message="*** For instructions see 'Dependencies' at: http://html5boilerplate.com/docs/#Build-script#dependencies" />
- </then>
- </elseif>
- </if>
-
- <!-- work around https://sourceforge.net/tracker/?func=detail&aid=2671422&group_id=151404&atid=780916 -->
- <delete>
- <fileset dir="./${dir.publish}/${dir.images}/">
- <include name="**/*.png"/>
- </fileset>
- </delete>
- <apply executable="${basedir}/${dir.build.tools}/optipng-0.6.4-exe/optipng.exe" dest="./${dir.publish}/${dir.images}/" osfamily="windows">
- <fileset dir="./${dir.source}/${dir.images}/" includes="**/*.png" excludes="${images.bypass}, ${images.default.bypass}"/>
- <arg value="-quiet"/>
- <arg value="-o7"/>
- <arg value="-out"/>
- <targetfile/>
- <srcfile/>
- <mapper type="identity"/>
- </apply>
- </target>
-
-
- <target name="-imagesjpg" depends="-mkdirs" description="(PRIVATE) Optimizes .jpg images using jpegtan">
- <echo message="Now, we clean up those jpgs..."/>
-
- <if>
- <equals arg1="${images.strip.metadata}" arg2="true"/>
- <then>
- <var name="strip-meta-tags" value="none"/>
- </then>
- <else>
- <var name="strip-meta-tags" value="all"/>
- </else>
- </if>
-
- <!-- On *nix's and OS X, check for jpegtran and give a helpful message if it's not installed -->
- <if>
- <and>
- <os family="unix" />
- <available file="jpegtran" filepath="${ENV.PATH}" />
- </and>
- <then>
- <apply executable="jpegtran" dest="./${dir.publish}/${dir.images}" osfamily="unix">
- <fileset dir="${dir.source}/${dir.images}" includes="**/*.jpg" excludes="${images.bypass}, ${images.default.bypass}"/>
- <arg value="-copy"/>
- <arg value="${strip-meta-tags}"/>
- <arg value="-optimize"/>
- <arg value="-outfile"/>
- <targetfile/>
- <srcfile/>
- <mapper type="identity"/>
- <!-- you may want to flag optimized images. If so, do it here. Otherwise change this to type="identity" -->
- <!--<mapper type="glob" from="*.jpg" to="*.jpg"/>-->
- </apply>
- </then>
- <elseif>
- <os family="unix" />
- <then>
- <echo message="*** jpegtran NOT INSTALLED. SKIPPING OPTIMIZATION OF JPEGs." />
- <echo message="*** Install jpegtran to enable jpeg optimization." />
- <echo message="*** For instructions see 'Dependencies' at: http://html5boilerplate.com/docs/#Build-script#dependencies" />
- </then>
- </elseif>
- </if>
-
- <apply executable="${basedir}/${dir.build.tools}/jpegtran.exe" dest="./${dir.publish}/${dir.images}" osfamily="windows">
- <fileset dir="${dir.source}/${dir.images}" includes="**/*.jpg" excludes="${images.bypass}, ${images.default.bypass}"/>
- <arg value="-copy"/>
- <arg value="${strip-meta-tags}"/>
- <arg value="-optimize"/>
- <arg value="-outfile"/>
- <targetfile/>
- <srcfile/>
- <mapper type="identity"/>
- <!-- you may want to flag optimized images. If so, do it here. Otherwise change this to type="identity" -->
- <!--<mapper type="glob" from="*.jpg" to="*.jpg"/>-->
- </apply>
- </target>
-
-
- <target name="-imgcopy" depends="-mkdirs">
- <echo message="Copying over the unmodified images."/>
-
- <copy todir="./${dir.publish}/${dir.images}">
- <fileset dir="${dir.source}/${dir.images}" includes="**/*.jpg, **/*.png"/>
- </copy>
- </target>
-
- <!-- Import project.xml (put any custom build targets in this file so that they aren't overwritten when build.xml is updated) -->
- <!-- See: https://github.com/paulirish/html5-boilerplate/issues/704 -->
- <import file="./project.xml" />
-
-</project>
View
116 build/config/default.properties
@@ -1,116 +0,0 @@
-#
-# Default Build Settings
-# you can override these settings on a project basis in a project.properties file
-# so probably best not to touch these as they could be overwritten in later versions!
-#
-
-
-#
-# Directory Paths
-#
-dir.source = .
-dir.intermediate = intermediate
-dir.publish = publish
-dir.build = build
-dir.build.tools = ${dir.build}/tools
-dir.test = test
-dir.demo = demo
-dir.js = js
-dir.js.main = ${dir.js}
-# scripts in the lib directory will only be minified, not concatenated together
-dir.js.libs = ${dir.js}/libs
-dir.js.mylibs = ${dir.js}/mylibs
-dir.css = css
-dir.images = img
-
-
-#
-# HTML, PHP, etc files to clean and update script/css references
-#
-file.pages.default.include = index.html, 404.html
-
-# You will need to include the property file.pages.include in your project.properties file
-# and add any extra pages you want to be updated by the scripts in a comma separated list
-
-
-# the server configuration you're going with. If you don't use apache,
-# get a different one here: github.com/paulirish/html5-boilerplate-server-configs
-
-file.serverconfig = .htaccess
-
-#
-# Files not to be copied over by the script to the publish directory
-#
-file.default.exclude = .gitignore, .project, .settings, README.markdown, README.md, **/.git/**, **/.svn/**, ${dir.test}/**, ${dir.demo}/**, ${dir.intermediate}/**, ${dir.publish}/**, ${dir.build}/**, **/nbproject/**, *.komodoproject, **/.komodotools/**, **/dwsync.xml, **_notes, **/.hg/**, **/.idea/**
-# Declare the file.exclude property in your project.properties file if you want to exclude files / folders you have added
-# Note: you cannot declare an empty file.exclude property
-
-#
-# Bypass Optimization for these files
-#
-# file.default.js.bypass
-# If set, these files will not be optimized (minifications, concatinations, image optimizations will not be applied)
-# Note: you cannot declare an empty file.default.bypass property
-
-#
-# Root Script file
-# this is the file that will be swapped for the concatenated and minified javascript.
-#
-file.root.script = script.js
-
-#
-# Root Stylesheet
-# this is the file that contains the @import directives
-#
-file.root.stylesheet = style.css
-
-#
-# Default Stylesheet
-#
-file.default.stylesheets =
-
-#
-# Script Optimisation
-#
-# If set, concat libraries with main scripts file, producing single script file
-build.concat.scripts = true
-
-# default options for closure compiler.
-scripts.compilation.level =SIMPLE_OPTIMIZATIONS
-scripts.compilation.warninglevel = QUIET
-
-#
-# Image Optimisation
-#
-images.strip.metadata = true
-# Seting this to true will strip the metadata from all jpeg files.
-# YOU SHOULD ONLY DO THIS IF YOU OWN THE COPYRIGHT TO ALL THE IMAGES IN THE BUILD
-
-#
-# Bypass Optimization for these image files or folders
-#
-# images.default.bypass
-# If set, these images will not be optimized
-# Note: you cannot declare an empty images.default.bypass property
-
-
-# Build Info
-build.version.info = buildinfo.properties
-build.scripts.dir = ${dir.build}/build-scripts
-
-# Tools
-tool.yuicompressor = yuicompressor-2.4.5.jar
-tool.htmlcompressor = htmlcompressor-1.4.3.jar
-tool.csscompressor = css-compressor/cli.php
-tool.rhino = rhino.jar
-tool.jslint = fulljslint.js
-tool.jshint = fulljshint.js
-tool.csslint = csslint-rhino.js
-
-# Default Lint Utils Options
-tool.jshint.opts = maxerr=25,eqeqeq=true
-tool.jslint.opts = maxerr=25,evil=true,browser=true,eqeqeq=true,immed=true,newcap=true,nomen=true,es5=true,rhino=true,undef=true,white=false,devel=true
-tool.csslint.opts =
-
-# Default hash length
-hash.length = 7
View
20 build/config/manifest.appcache
@@ -1,20 +0,0 @@
-CACHE MANIFEST
-
-# version xxxxxxxxx
-
-CACHE:
-# html files
-
-
-# css files
-
-
-
-# js files
-
-
-
-FALLBACK:
-
-NETWORK:
-*
View
96 build/config/project.properties
@@ -1,96 +0,0 @@
-# project.properties file defines overrides for default.properties
-
-# Explanation: This file should be created by each user as and when he or she needs to override particular values.
-# Consequently, it should not be placed under version control.
-
-
-# Stylesheets
-#
-# Note: Stylesheets will be concatenated in the order they are listed in the file.stylesheets property (i.e. the last
-# file listed will be at the end of the concatenated file), so it probably makes sense to have the main style.css file
-# as the first entry
-# Example:
-# file.stylesheets = style.css, lightbox.css, plugin.css
-#
-file.stylesheets =
-
-
-# Web Pages
-#
-# These are the pages (files) that will be served to users (.html, .php, .asp, etc). Files in this property will
-# be minified / optimised and have any stylesheet or javascript references updated to the minified examples
-#
-# The paths need to be relative
-#
-# Files can be added in a comma separated form
-file.pages =
-
-
-# site manifest for offline
-# this is the name of the manifest file you declared in the <html> tag
-# Uncomment this line to enable appcache generation:
-# file.manifest = manifest.appcache
-
-# Excluded files and dirs
-#
-# Add any files or directories you add to the project and do not want to be copied to the publish directory as a
-# comma separated list
-# These files are ignored in addition to the default ones specified in default.properties.
-file.exclude =
-
-# Bypassed JavaScript files and dirs
-#
-# Add any files or folders within the mylibs directory that you want to be copied to the publish directory as a
-# comma separated list
-# These files will not be concatenated or minimized and will simply be copied over as is.
-# Note: you cannot declare an empty file.bypass property, it would exclude the entire mylibs folder
-# Example:
-# file.js.bypass = widgets.js, gadgets.js, gidgets.js
-# file.js.bypass =
-
-# Clousre Compiler Options
-#
-# options are WHITESPACE_ONLY, SIMPLE_OPTIMIZATIONS, ADVANCED_OPTIMIZATIONS
-# scripts.compilation.level = SIMPLE_OPTIMIZATIONS
-# options are QUIET DEFAULT AND VERBOSE
-# scripts.compilation.warninglevel = QUIET
-
-#
-# Specify an environment to build
-#
-# By Default, it builds a production environment
-# Set to dev if building a development environment
-# Set to test if building a test environment
-env =
-
-#
-# Bypass Optimization for these image files or folders
-#
-# images.bypass
-# If set, these images will not be optimized
-# Note: you cannot declare an empty images.bypass property, it would exclude the entire img folder from being optimized
-
-# Directory Structure
-#
-# Override any directory paths specific to this project
-#
-# dir.publish
-# dir.js
-# dir.js.libs
-# dir.js.mylibs
-# dir.css
-# dir.images
-
-# Override default JSHint Options (see http://jshint.com/ for description of options)
-#tool.jshint.opts =
-
-# Override default JSLint Options (see http://www.jslint.com/lint.html for description of options)
-#tool.jslint.opts =
-
-# Override default CSSLint Options (see http://csslint.net/about.html#settings for description of options)
-#tool.csslint.opts =
-
-# set the hash length used for versioning css and js files.
-# valid values are between 1 and 40.
-# shorter values use less bytes at the expense of increasing the probability of a hash collision.
-#hash.length = 7
View
50 build/createproject.sh
@@ -1,50 +0,0 @@
-#!/usr/bin/env bash
-
-#Generate a new project from your HTML5 Boilerplate repo clone
-#by: Rick Waldron & Michael Cetrulo
-
-
-##first run
-# $ cd html5-boilerplate/build
-# $ chmod +x createproject.sh && ./createproject.sh
-
-##usage
-# $ cd html5-boilerplate/build
-# $ ./createproject.sh
-
-# find project root (also ensure script is ran from within repo)
-src=$(git rev-parse --show-toplevel) || {
- echo "try running the script from within html5-boilerplate directories." >&2
- exit 1
-}
-[[ -d $src ]] || {
- echo "fatal: could not determine html5-boilerplate's root directory." >&2
- echo "try updating git." >&2
- exit 1
-}
-
-# get a name for new project
-while [[ -z $name ]]
-do
- echo "To create a new html5-boilerplate project, enter a new directory name:"
- read name || exit
-done
-dst=$src/../$name
-
-if [[ -d $dst ]]
-then
- echo "$dst exists"
-else
- #create new project
- mkdir -- "$dst" || exit 1
-
- #success message
- echo "Created Directory: $dst"
-
- cd -- "$src"
- cp -vr -- css js img build test *.html *.xml *.txt *.png *.ico .htaccess "$dst"
-
- #success message
- echo "Created Project: $dst"
-fi
-
View
7 build/project.xml
@@ -1,7 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE project>
-<project name="Project Build" default="build" basedir="../">
-
- <!-- Use this file to define any custom build targets (for example, automatically deploying via FTP). -->
-
-</project>
View
6 build/runbuildscript.bat
@@ -1,6 +0,0 @@
-# This is for windows users only.
-# If you're on a mac or linux, just run `ant build` from this folder in Terminal
-
-set MYDIR=%~dp0
-set ANT_OPTS=-D"file.encoding=UTF-8"
-ant build
View
BIN build/tools/ant-contrib-1.0b3.jar
Binary file not shown.
View
BIN build/tools/closure-compiler-v1346.jar
Binary file not shown.
View
11,138 build/tools/csslint-rhino.js
0 additions, 11,138 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
5,904 build/tools/fulljshint.js
0 additions, 5,904 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
6,651 build/tools/fulljslint.js
0 additions, 6,651 deletions not shown because the diff is too large. Please use a local Git client to view these changes.
View
BIN build/tools/htmlcompressor-1.4.3.jar
Binary file not shown.
View
BIN build/tools/jpegtran.exe
Binary file not shown.
View
21 build/tools/optipng-0.6.4-exe/LICENSE.txt
@@ -1,21 +0,0 @@
-
-Copyright (C) 2001-2010 Cosmin Truta.
-
-This software is provided 'as-is', without any express or implied
-warranty. In no event will the author(s) be held liable for any damages
-arising from the use of this software.
-
-Permission is granted to anyone to use this software for any purpose,
-including commercial applications, and to alter it and redistribute it
-freely, subject to the following restrictions:
-
-1. The origin of this software must not be misrepresented; you must not
- claim that you wrote the original software. If you use this software
- in a product, an acknowledgment in the product documentation would be
- appreciated but is not required.
-
-2. Altered source versions must be plainly marked as such, and must not
- be misrepresented as being the original software.
-
-3. This notice may not be removed or altered from any source distribution.
-
View
BIN build/tools/optipng-0.6.4-exe/optipng.exe
Binary file not shown.
View
BIN build/tools/rhino.jar
Binary file not shown.
View
BIN build/tools/yuicompressor-2.4.5.jar
Binary file not shown.
View
5 cache.manifest
@@ -9,15 +9,12 @@ img/en.png
img/es.png
img/box_model.png
img/browsers1.jpg
-img/layout/icon-curly.png
-css/img/icon-curly.png
-css/img/icon-curly-full.png
+css/img/icon-curly_50.png
css/img/isobar.png
css/img/fork-me.png
css/img/sprite-social.png
css/img/bg-body.gif
-index.html
css/style.css
js/plugins.js
js/script.js
View
679 css/960.css
@@ -1,679 +0,0 @@
-/*
- 960 Grid System ~ Core CSS.
- Learn more ~ http://960.gs/
-
- Licensed under GPL and MIT.
-*/
-
-/* `Containers
-----------------------------------------------------------------------------------------------------*/
-
-.container_12,
-.container_16 {
- margin-left: auto;
- margin-right: auto;
- width: 960px;
-}
-
-/* `Grid >> Global
-----------------------------------------------------------------------------------------------------*/
-
-.grid_1,
-.grid_2,
-.grid_3,
-.grid_4,
-.grid_5,
-.grid_6,
-.grid_7,
-.grid_8,
-.grid_9,
-.grid_10,
-.grid_11,
-.grid_12,
-.grid_13,
-.grid_14,
-.grid_15,
-.grid_16 {
- display: inline;
- float: left;
- position: relative;
- margin-left: 10px;
- margin-right: 10px;
-}
-
-.container_12 .grid_3,
-.container_16 .grid_4 {
- width: 220px;
-}
-
-.container_12 .grid_6,
-.container_16 .grid_8 {
- width: 460px;
-}
-
-.container_12 .grid_9,
-.container_16 .grid_12 {
- width: 700px;
-}
-
-.container_12 .grid_12,
-.container_16 .grid_16 {
- width: 940px;
-}
-
-/* `Grid >> Children (Alpha ~ First, Omega ~ Last)
-----------------------------------------------------------------------------------------------------*/
-
-.alpha {
- margin-left: 0;
-}
-
-.omega {
- margin-right: 0;
-}
-
-/* `Grid >> 12 Columns
-----------------------------------------------------------------------------------------------------*/
-
-.container_12 .grid_1 {
- width: 60px;
-}
-
-.container_12 .grid_2 {
- width: 140px;
-}
-
-.container_12 .grid_4 {
- width: 300px;
-}
-
-.container_12 .grid_5 {
- width: 380px;
-}
-
-.container_12 .grid_7 {
- width: 540px;
-}
-
-.container_12 .grid_8 {
- width: 620px;
-}
-
-.container_12 .grid_10 {
- width: 780px;
-}
-
-.container_12 .grid_11 {
- width: 860px;
-}
-
-/* `Grid >> 16 Columns
-----------------------------------------------------------------------------------------------------*/
-
-.container_16 .grid_1 {
- width: 40px;
-}
-
-.container_16 .grid_2 {
- width: 100px;
-}
-
-.container_16 .grid_3 {
- width: 160px;
-}
-
-.container_16 .grid_5 {
- width: 280px;
-}
-
-.container_16 .grid_6 {
- width: 340px;
-}
-
-.container_16 .grid_7 {
- width: 400px;
-}
-
-.container_16 .grid_9 {
- width: 520px;
-}
-
-.container_16 .grid_10 {
- width: 580px;
-}
-
-.container_16 .grid_11 {
- width: 640px;
-}
-
-.container_16 .grid_13 {
- width: 760px;
-}
-
-.container_16 .grid_14 {
- width: 820px;
-}
-
-.container_16 .grid_15 {
- width: 880px;
-}
-
-/* `Prefix Extra Space >> Global
-----------------------------------------------------------------------------------------------------*/
-
-.container_12 .prefix_3,
-.container_16 .prefix_4 {
- padding-left: 240px;
-}
-
-.container_12 .prefix_6,
-.container_16 .prefix_8 {
- padding-left: 480px;
-}
-
-.container_12 .prefix_9,
-.container_16 .prefix_12 {
- padding-left: 720px;
-}
-
-/* `Prefix Extra Space >> 12 Columns
-----------------------------------------------------------------------------------------------------*/
-
-.container_12 .prefix_1 {
- padding-left: 80px;
-}
-
-.container_12 .prefix_2 {
- padding-left: 160px;
-}
-
-.container_12 .prefix_4 {
- padding-left: 320px;
-}
-
-.container_12 .prefix_5 {
- padding-left: 400px;
-}
-
-.container_12 .prefix_7 {
- padding-left: 560px;
-}
-
-.container_12 .prefix_8 {
- padding-left: 640px;
-}
-
-.container_12 .prefix_10 {
- padding-left: 800px;
-}
-
-.container_12 .prefix_11 {
- padding-left: 880px;
-}
-
-/* `Prefix Extra Space >> 16 Columns
-----------------------------------------------------------------------------------------------------*/
-
-.container_16 .prefix_1 {
- padding-left: 60px;
-}
-
-.container_16 .prefix_2 {
- padding-left: 120px;
-}
-
-.container_16 .prefix_3 {
- padding-left: 180px;
-}
-
-.container_16 .prefix_5 {
- padding-left: 300px;
-}
-
-.container_16 .prefix_6 {
- padding-left: 360px;
-}
-
-.container_16 .prefix_7 {
- padding-left: 420px;
-}
-
-.container_16 .prefix_9 {
- padding-left: 540px;
-}
-
-.container_16 .prefix_10 {
- padding-left: 600px;
-}
-
-.container_16 .prefix_11 {
- padding-left: 660px;
-}
-
-.container_16 .prefix_13 {
- padding-left: 780px;
-}
-
-.container_16 .prefix_14 {
- padding-left: 840px;
-}
-
-.container_16 .prefix_15 {
- padding-left: 900px;
-}
-
-/* `Suffix Extra Space >> Global
-----------------------------------------------------------------------------------------------------*/
-
-.container_12 .suffix_3,
-.container_16 .suffix_4 {
- padding-right: 240px;
-}
-
-.container_12 .suffix_6,
-.container_16 .suffix_8 {
- padding-right: 480px;
-}
-
-.container_12 .suffix_9,
-.container_16 .suffix_12 {
- padding-right: 720px;
-}
-
-/* `Suffix Extra Space >> 12 Columns
-----------------------------------------------------------------------------------------------------*/
-
-.container_12 .suffix_1 {
- padding-right: 80px;
-}
-
-.container_12 .suffix_2 {
- padding-right: 160px;
-}
-
-.container_12 .suffix_4 {
- padding-right: 320px;
-}
-
-.container_12 .suffix_5 {
- padding-right: 400px;
-}
-
-.container_12 .suffix_7 {
- padding-right: 560px;
-}
-
-.container_12 .suffix_8 {
- padding-right: 640px;
-}
-
-.container_12 .suffix_10 {
- padding-right: 800px;
-}
-
-.container_12 .suffix_11 {
- padding-right: 880px;
-}
-
-/* `Suffix Extra Space >> 16 Columns
-----------------------------------------------------------------------------------------------------*/
-
-.container_16 .suffix_1 {
- padding-right: 60px;
-}
-
-.container_16 .suffix_2 {
- padding-right: 120px;
-}
-
-.container_16 .suffix_3 {
- padding-right: 180px;
-}
-
-.container_16 .suffix_5 {
- padding-right: 300px;
-}
-
-.container_16 .suffix_6 {
- padding-right: 360px;
-}
-
-.container_16 .suffix_7 {
- padding-right: 420px;
-}
-
-.container_16 .suffix_9 {
- padding-right: 540px;
-}
-
-.container_16 .suffix_10 {
- padding-right: 600px;
-}
-
-.container_16 .suffix_11 {
- padding-right: 660px;
-}
-
-.container_16 .suffix_13 {
- padding-right: 780px;
-}
-
-.container_16 .suffix_14 {
- padding-right: 840px;
-}
-
-.container_16 .suffix_15 {
- padding-right: 900px;
-}
-
-/* `Push Space >> Global
-----------------------------------------------------------------------------------------------------*/
-
-.container_12 .push_3,
-.container_16 .push_4 {
- left: 240px;
-}
-
-.container_12 .push_6,
-.container_16 .push_8 {
- left: 480px;
-}
-
-.container_12 .push_9,
-.container_16 .push_12 {
- left: 720px;
-}
-
-/* `Push Space >> 12 Columns
-----------------------------------------------------------------------------------------------------*/
-
-.container_12 .push_1 {
- left: 80px;
-}
-
-.container_12 .push_2 {
- left: 160px;
-}
-
-.container_12 .push_4 {
- left: 320px;
-}
-
-.container_12 .push_5 {
- left: 400px;
-}
-
-.container_12 .push_7 {
- left: 560px;
-}
-
-.container_12 .push_8 {
- left: 640px;
-}
-
-.container_12 .push_10 {
- left: 800px;
-}
-
-.container_12 .push_11 {
- left: 880px;
-}
-
-/* `Push Space >> 16 Columns
-----------------------------------------------------------------------------------------------------*/
-
-.container_16 .push_1 {
- left: 60px;
-}
-
-.container_16 .push_2 {
- left: 120px;
-}
-
-.container_16 .push_3 {
- left: 180px;
-}
-
-.container_16 .push_5 {
- left: 300px;
-}
-
-.container_16 .push_6 {
- left: 360px;
-}
-
-.container_16 .push_7 {
- left: 420px;
-}
-
-.container_16 .push_9 {
- left: 540px;
-}
-
-.container_16 .push_10 {
- left: 600px;
-}
-
-.container_16 .push_11 {
- left: 660px;
-}
-
-.container_16 .push_13 {
- left: 780px;
-}
-
-.container_16 .push_14 {
- left: 840px;
-}
-
-.container_16 .push_15 {
- left: 900px;
-}
-
-/* `Pull Space >> Global
-----------------------------------------------------------------------------------------------------*/
-
-.container_12 .pull_3,
-.container_16 .pull_4 {
- left: -240px;
-}
-
-.container_12 .pull_6,
-.container_16 .pull_8 {
- left: -480px;
-}
-
-.container_12 .pull_9,
-.container_16 .pull_12 {
- left: -720px;
-}
-
-/* `Pull Space >> 12 Columns
-----------------------------------------------------------------------------------------------------*/
-
-.container_12 .pull_1 {
- left: -80px;
-}
-
-.container_12 .pull_2 {
- left: -160px;
-}
-
-.container_12 .pull_4 {
- left: -320px;
-}
-
-.container_12 .pull_5 {
- left: -400px;
-}
-
-.container_12 .pull_7 {
- left: -560px;
-}
-
-.container_12 .pull_8 {
- left: -640px;
-}
-
-.container_12 .pull_10 {
- left: -800px;
-}
-
-.container_12 .pull_11 {
- left: -880px;
-}
-
-/* `Pull Space >> 16 Columns
-----------------------------------------------------------------------------------------------------*/
-
-.container_16 .pull_1 {
- left: -60px;
-}
-
-.container_16 .pull_2 {
- left: -120px;
-}
-
-.container_16 .pull_3 {
- left: -180px;
-}
-
-.container_16 .pull_5 {
- left: -300px;
-}
-
-.container_16 .pull_6 {
- left: -360px;
-}
-
-.container_16 .pull_7 {
- left: -420px;
-}
-
-.container_16 .pull_9 {
- left: -540px;
-}
-
-.container_16 .pull_10 {
- left: -600px;
-}
-
-.container_16 .pull_11 {
- left: -660px;
-}
-
-.container_16 .pull_13 {
- left: -780px;
-}
-
-.container_16 .pull_14 {
- left: -840px;
-}
-
-.container_16 .pull_15 {
- left: -900px;
-}
-
-/* `Clear Floated Elements
-----------------------------------------------------------------------------------------------------*/
-
-/* http://sonspring.com/journal/clearing-floats */
-
-.clear {
- clear: both;
- display: block;
- overflow: hidden;
- visibility: hidden;
- width: 0;
- height: 0;
-}
-
-/* http://perishablepress.com/press/2008/02/05/lessons-learned-concerning-the-clearfix-css-hack */
-
-.clearfix:after {
- clear: both;
- content: ' ';
- display: block;
- font-size: 0;
- line-height: 0;
- visibility: hidden;
- width: 0;
- height: 0;
-}
-
-* html .clearfix {
- height: 1%;
-}
-
-
-
-/*
- 960 Grid System ~ Text CSS.
- Learn more ~ http://960.gs/
-
- Licensed under GPL and MIT.
-*/
-
-/* `Basic HTML
-----------------------------------------------------------------------------------------------------*/
-
-body {