|
|
|
@ -15,7 +15,10 @@
|
|
|
|
|
property="image.search.path"/> |
|
|
|
|
|
|
|
|
|
<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> |
|
|
|
|
<property name="sass.name.filter"> |
|
|
|
|
include |
|
|
|
@ -108,17 +111,20 @@
|
|
|
|
|
</then> |
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
<!-- |
|
|
|
|
app.out.css.path is relative to the app output index.html file |
|
|
|
|
--> |
|
|
|
|
<x-get-relative-path |
|
|
|
|
from="${app.dir}" |
|
|
|
|
to="${app.out.css}" |
|
|
|
|
property="app.out.css.path" |
|
|
|
|
/> |
|
|
|
|
<if> |
|
|
|
|
<equals arg1="development" arg2="${build.environment}"/> |
|
|
|
|
<then> |
|
|
|
|
<!-- |
|
|
|
|
app.out.css.path is relative to the app output index.html file |
|
|
|
|
--> |
|
|
|
|
<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--> |
|
|
|
|
<echo file="${build.bootstrap.css.path}"> |
|
|
|
|
<x-file-write file="${build.bootstrap.css.path}"> |
|
|
|
|
<![CDATA[ |
|
|
|
|
/* |
|
|
|
|
* This file is generated by Sencha Cmd and should NOT be edited. It redirects |
|
|
|
@ -127,7 +133,9 @@
|
|
|
|
|
*/ |
|
|
|
|
@import '${app.out.css.path}'; |
|
|
|
|
]]> |
|
|
|
|
</echo> |
|
|
|
|
</x-file-write> |
|
|
|
|
</then> |
|
|
|
|
</if> |
|
|
|
|
</target> |
|
|
|
|
|
|
|
|
|
<!-- |
|
|
|
@ -186,73 +194,130 @@
|
|
|
|
|
scss file, then running compass with the css, sass, and config options set |
|
|
|
|
--> |
|
|
|
|
<target name="-compass-compile-theme-package" depends="-load-sass-page"> |
|
|
|
|
<x-run-if-true value="${enable.ext42.themes}"> |
|
|
|
|
<local name="compress.uptodate"/> |
|
|
|
|
<if> |
|
|
|
|
<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> |
|
|
|
|
<x-is-true value="${app.sass.rhino}"/> |
|
|
|
|
<x-is-true value="${app.sass.fashion}"/> |
|
|
|
|
<then> |
|
|
|
|
<x-fashion-compile |
|
|
|
|
file="${app.out.scss}" |
|
|
|
|
toFile="${app.out.css}"/> |
|
|
|
|
<if> |
|
|
|
|
<x-is-true value="${app.sass.rhino}"/> |
|
|
|
|
<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> |
|
|
|
|
<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-sencha-command> |
|
|
|
|
fashion |
|
|
|
|
-compress=${build.css.compress} |
|
|
|
|
-split=${build.css.selector.limit} |
|
|
|
|
-saveFile=${app.dir}/${app.sass.save} |
|
|
|
|
${app.out.scss} |
|
|
|
|
${app.out.css} |
|
|
|
|
</x-sencha-command> |
|
|
|
|
|
|
|
|
|
<x-update-css-array input="${app.out.css}" |
|
|
|
|
compilerRefId="${compiler.ref.id}"/> |
|
|
|
|
<x-compass-compile |
|
|
|
|
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> |
|
|
|
|
</then> |
|
|
|
|
<else> |
|
|
|
|
<x-compass-compile |
|
|
|
|
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}"/> |
|
|
|
|
</x-run-if-true> |
|
|
|
|
</else> |
|
|
|
|
</if> |
|
|
|
|
|
|
|
|
|
<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> |
|
|
|
|
|
|
|
|
|
<!-- |
|
|
|
|