Skip to content

Instantly share code, notes, and snippets.

@savelee
Created February 21, 2016 16:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save savelee/4c2fdd2bda303bc03704 to your computer and use it in GitHub Desktop.
Save savelee/4c2fdd2bda303bc03704 to your computer and use it in GitHub Desktop.
Custom split build process
<![CDATA[
# Build a set containing everything, the entire application and the used framework.
restore
page
and
save
entireApp
and
# Build a set containing the entire framework.
union
-tag=package-sencha-core,framework
and
save
entireFramework
and
# Output just the used framework code, it is the intersection of entireApp and entireFramework.
intersect
-set=entireApp,entireFramework
and
${build.optimize}
and
concat
${build.compression}
-out=${build.framework.file}
${build.concat.options}
# Output just the application code.
and
restore
page
and
exclude
-tag=framework,package-sencha-core
and
${build.optimize}
and
concat
-out=${build.classes.file}
${build.concat.options}
-b
]]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment