@ -15,7 +15,10 @@
property="image.search.path"/>
property="image.search.path"/>
<if >
<if >
<x-is-true value= "${build.include.all.scss}" />
<or >
<x-is-true value= "${app.has.uses}" />
<x-is-true value= "${build.include.all.scss}" />
</or>
<then >
<then >
<property name= "sass.name.filter" >
<property name= "sass.name.filter" >
include
include
@ -108,17 +111,20 @@
</then>
</then>
</if>
</if>
<!--
<if >
app.out.css.path is relative to the app output index.html file
<equals arg1= "development" arg2= "${build.environment}" />
-->
<then >
<x-get-relative-path
<!--
from="${app.dir}"
app.out.css.path is relative to the app output index.html file
to="${app.out.css}"
-->
property="app.out.css.path"
<x-get-relative-path
/>
from="${app.dir}"
to="${app.out.css}"
property="app.out.css.path"
/>
<!-- update the application's bootstrap.css file to point to the build output -->
<!-- update the application's bootstrap.css file to point to the build output -->
<echo file= "${build.bootstrap.css.path}" >
<x-file-write file= "${build.bootstrap.css.path}" >
< ![CDATA[
< ![CDATA[
/*
/*
* This file is generated by Sencha Cmd and should NOT be edited. It redirects
* This file is generated by Sencha Cmd and should NOT be edited. It redirects
@ -127,7 +133,9 @@
*/
*/
@import '${app.out.css.path}';
@import '${app.out.css.path}';
]]>
]]>
</echo>
</x-file-write>
</then>
</if>
</target>
</target>
<!--
<!--
@ -186,73 +194,130 @@
scss file, then running compass with the css, sass, and config options set
scss file, then running compass with the css, sass, and config options set
-->
-->
<target name= "-compass-compile-theme-package" depends= "-load-sass-page" >
<target name= "-compass-compile-theme-package" depends= "-load-sass-page" >
<x-run-if-true value= "${enable.ext42.themes}" >
<if >
<local name= "compress.uptodate" />
<x-is-true value= "${skip.sass.rebuild}" />
<then >
<x-run-if-true value= "${enable.ext42.themes}" >
<x-ant-call target= "-compile-sass" />
</x-run-if-true>
</then>
<else >
<x-run-if-true value= "${enable.ext42.themes}" >
<local name= "compress.uptodate" />
<x-ant-call target= "-compile-sass" />
<x-ant-call target= "-compile-sass" />
<if >
<x-is-true value= "${app.sass.fashion}" />
<then >
<if >
<if >
<x-is-true value= "${app.sass.rhino}" />
<x-is-true value= "${app.sass.fashion}" />
<then >
<then >
<x-fashion-compile
<if >
file="${app.out.scss}"
<x-is-true value= "${app.sass.rhino}" />
toFile="${app.out.css}"/>
<then >
<x-fashion-compile
file="${app.out.scss}"
toFile="${app.out.css}"/>
</then>
<else >
<x-fashion-live-update input= "${app.out.scss}"
output="${app.out.css}"
refId="app.web.server"
split="${build.css.selector.limit}"
compress="${build.css.compress}"
compilerRefId="${compiler.ref.id}"/>
<x-compile refid= "${compiler.ref.id}" >
< ![CDATA[
microload
-operation=manifest
-fashion=false
-tpl=${build.microloader.json.tpl.standalone}
-out=${build.out.json.path}
-resourcePath=${build.out.base.path}
-basePath=${build.out.metadata.dir}
]]>
</x-compile>
<x-sencha-command >
fashion
-config=${build.out.json.path}
-compress=${build.css.compress}
-split=${build.css.selector.limit}
-saveFile=${app.dir}/${app.sass.generated.var}
-slicer=false
${app.out.scss}
${app.out.css}
</x-sencha-command>
<x-update-css-array input= "${app.out.css}"
compilerRefId="${compiler.ref.id}"/>
<if >
<and >
<available file= "${build.out.css.dir}/css-vars.js" />
</and>
<then >
<if >
<not >
<equals arg1= "${build.compression}" arg2= "" />
</not>
<then >
<x-compress-js srcFile= "${build.out.css.dir}/css-vars.js"
outFile="${build.out.css.dir}/css-vars.js"/>
</then>
</if>
<if >
<not >
<equals arg1= "${build.environment}" arg2= "development" />
</not>
<then >
<concat destfile= "${build.out.js.path}" append= "true" >
<fileset dir= "${build.out.css.dir}" >
<include name= "css-vars.js" />
</fileset>
</concat>
</then>
</if>
</then>
</if>
</else>
</if>
</then>
</then>
<else >
<else >
<x-fashion-live-update input= "${app.out.scss}"
<x-compass-compile
output="${app.out.css}"
rubyPath="${build.ruby.path}"
refId="app.web.server"
dir="${compass.working.dir}"
split="${build.css.selector.limit}"
trace="${compass.compile.trace}"
compress="${build.css.compress}"
boring="${compass.compile.boring}"
compilerRefId="${compiler.ref.id}"/>
force="${compass.compile.force}"
sassdir="${compass.sass.dir}"
<x-sencha-command >
cssdir="${compass.css.dir}"
fashion
config="${compass.config.file}"/>
-compress=${build.css.compress}
-split=${build.css.selector.limit}
<uptodate property= "compress.uptodate"
-saveFile=${app.dir}/${app.sass.save}
value="true"
${app.out.scss}
srcfile="${app.out.scss}.tmp"
${app.out.css}
targetfile="${app.out.css}"/>
</x-sencha-command>
<if >
<x-update-css-array input= "${app.out.css}"
<x-is-true value= "${compress.uptodate}" />
compilerRefId="${compiler.ref.id}"/>
<!-- <x - is - true value="true"/> -->
<then >
<x-compress-css-files dir= "${build.out.css.dir}"
prefix="${app.out.base.debug}"
outprefix="${app.out.base}"
preprocess="${build.css.preprocess}"
compress="${build.css.compress}"/>
</then>
</if>
</else>
</else>
</if>
</if>
</then>
</x-run-if-true>
<else >
</else>
<x-compass-compile
</if>
rubyPath="${build.ruby.path}"
dir="${compass.working.dir}"
trace="${compass.compile.trace}"
boring="${compass.compile.boring}"
force="${compass.compile.force}"
sassdir="${compass.sass.dir}"
cssdir="${compass.css.dir}"
config="${compass.config.file}"/>
<uptodate property= "compress.uptodate"
value="true"
srcfile="${app.out.scss}.tmp"
targetfile="${app.out.css}"/>
<if >
<x-is-true value= "${compress.uptodate}" />
<!-- <x - is - true value="true"/> -->
<then >
<x-compress-css-files dir= "${build.out.css.dir}"
prefix="${app.out.base.debug}"
outprefix="${app.out.base}"
preprocess="${build.css.preprocess}"
compress="${build.css.compress}"/>
</then>
</if>
</else>
</if>
</x-run-if-true>
</target>
</target>
<!--
<!--