]> git.proxmox.com Git - extjs.git/blob - extjs/templates/executive-dashboard/.sencha/app/js-impl.xml
add extjs 6.0.1 sources
[extjs.git] / extjs / templates / executive-dashboard / .sencha / app / js-impl.xml
1 <project name="x-js-impl">
2 <!--
3 this target extracts split mode information from the compiler's app
4 processor to determine various pieces of information
5 -->
6 <target name="-detect-app-build-properties"
7 depends="-init-app-js-files">
8 <x-load-app-builder-properties
9 refid="${compiler.ref.id}"
10 splitModePropName="enable.split.mode"
11 pageModePropName="app.page.mode"
12 hasJsSdkPropName="app.has.js.sdk"
13 hasCssSdkPropName="app.has.css.sdk"/>
14 </target>
15
16 <!--
17 this is the standard js compile target that builds the output js file(s)
18 -->
19 <target name="-compile-js" depends="-detect-app-build-properties">
20 <if>
21 <x-is-true value="${enable.split.mode}"/>
22 <then>
23 <x-compile refid="${compiler.ref.id}">
24 <![CDATA[
25 # build a separate sdk-only js file
26 exclude
27 -all
28 and
29 include
30 -tag=package-sencha-core,framework
31 and
32 save
33 allframework
34 and
35 intersect
36 -set=page,allframework
37 and
38 save
39 frameworkdeps
40 and
41 ${build.optimize}
42 and
43 concat
44 -remove-text-references=${build.remove.references}
45 -optimize-string-references=${build.optimize.string.references}
46 -remove-requirement-nodes=${build.remove.requirement.nodes}
47 ${build.compression}
48 -out=${build.framework.file}
49 ${build.concat.options}
50
51 # now build the all-classes file, without
52 # the framework code included
53 and
54 restore
55 page
56 and
57 exclude
58 -set=frameworkdeps
59 and
60 concat
61 -remove-text-references=${build.remove.references}
62 -optimize-string-references=${build.optimize.string.references}
63 -remove-requirement-nodes=${build.remove.requirement.nodes}
64 ${build.compression}
65 -out=${build.classes.file}
66 ${build.concat.options}
67 ]]>
68 </x-compile>
69 </then>
70 <else>
71 <x-compile refid="${compiler.ref.id}">
72 <![CDATA[
73 # build an all-classes.js file that contains
74 # all code needed by the app
75 restore
76 page
77 and
78 ${build.optimize}
79 and
80 concat
81 -remove-text-references=${build.remove.references}
82 -optimize-string-references=${build.optimize.string.references}
83 -remove-requirement-nodes=${build.remove.requirement.nodes}
84 ${build.compression}
85 -out=${build.classes.file}
86 ${build.concat.options}
87 ]]>
88 </x-compile>
89 </else>
90 </if>
91 </target>
92
93 <!--
94 Build javascript
95 -->
96 <target name="-before-js"/>
97 <target name="-js" depends="-compile-js"/>
98 <target name="-after-js"/>
99 </project>