Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Only building min version of lang packs, to avoid file explosion. Sin…

…ce the lang packs are basically json structures, supporing raw and debug versions doesn't seem as valuable
  • Loading branch information...
commit 422b2389d81a61aacc99091aa654b08993265bd1 1 parent 937cc59
@sdesai sdesai authored
View
1  componentbuild/3.x/module.xml
@@ -57,7 +57,6 @@
<target name="-buildlangs" description="Create language packs in the local component build directory" if="component.langs.exist">
<mkdir dir="${component.builddir}/lang" />
- <!-- TODO: Break compress/concat out into separate pieces -->
<for list="${component.lang}" param="lang" trim="true">
<sequential>
<addlang dir="${component.lang.base}" module="${component}" lang="@{lang}" dest="${component.builddir}/lang" />
View
6 componentbuild/shared/macrolib.xml
@@ -187,12 +187,12 @@
<loadfile srcfile="@{dir}/${@{module}@{lang}_fullname}.js" property="@{module}@{lang}-strs-loaded" />
- <echo level="info">Wrapping @{dir}/${@{module}@{lang}_strs} in YUI.add, Y.Intl.add</echo>
+ <echo level="info">Wrapping @{dir}/${@{module}@{lang}_fullname}.js in YUI.add, Y.Intl.add</echo>
<copy file="${builddir}/files/langtemplate.txt" tofile="@{dest}/${@{module}@{lang}_fullname}.js" overwrite="true">
<filterset>
- <filter token="LANG" value="@{lang}" />
- <filter token="LANG_MODULE" value="lang/${@{module}@{lang}_fullname}" />
+ <filter token="LANG" value="@{lang}" />
+ <filter token="LANG_MODULE" value="lang/${@{module}@{lang}_fullname}" />
<filter token="STRINGS" value="${@{module}@{lang}-strs-loaded}" />
<filter token="YUIVAR" value="${yui.variable}" />
<filter token="MODULE" value="@{module}" />
View
3  componentbuild/shared/targets.xml
@@ -49,8 +49,7 @@
<fileset dir="${component.builddir}/lang" includes="*.js"/>
</path>
<sequential>
- <basename file="@{file}" property="@{file}" suffix=".js" />
- <yuicompress src="@{file}" dest="${component.builddir}/lang/${@{file}}-min.js" args="${yuicompressor.js.args.internal}" />
+ <yuicompress src="@{file}" dest="@{file}" args="${yuicompressor.js.args.internal}" />
</sequential>
</for>
</then>

0 comments on commit 422b238

Please sign in to comment.
Something went wrong with that request. Please try again.