Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sencha Cmd package with 4.2 compatibility fixes #39

Open
wants to merge 23 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
0bd194a
fixed call to createFilterFn in onTypeAhead
themightychris May 28, 2013
641f997
item close button did not appear under Ext 4.2.0
sunaku Apr 13, 2013
59fb8ff
previous selection lost upon making new selection
sunaku Apr 18, 2013
caa3efb
fix oversized styling of combo box under Ext 4.2.0
sunaku Apr 18, 2013
ede950c
error underlining did not appear under Ext 4.2.0
sunaku Apr 18, 2013
085a56f
created .sencha folder for extjs-boxselect package
themightychris Jan 27, 2014
6ff8027
created package sass folder and moved existing css
themightychris Jan 27, 2014
26e8b50
updated scss to slightly take advantage of SASS
themightychris Jan 27, 2014
ded6f35
split classes and structured by namespace
themightychris Jan 28, 2014
ea84b1a
de-tabbed for consistency with Sencha code style
themightychris Jan 28, 2014
3754a7d
created build.xml and package.json for package
themightychris Jan 28, 2014
4a7b4dc
updated read me
themightychris Jan 28, 2014
094790f
Update README.md
themightychris Jan 28, 2014
d1f31a7
added known issues about examples to README.md
themightychris Jan 28, 2014
83d5719
added package.framework=ext
themightychris Jan 28, 2014
0bb7959
added .gitignore
themightychris Jan 28, 2014
9ca4bdf
added build
themightychris Jan 28, 2014
6088c0e
updated example for new build
themightychris Jan 28, 2014
04c2777
removed known issues about example from README
themightychris Jan 28, 2014
de772a6
Updated creator
themightychris Jan 28, 2014
649d724
added layout to field's requires
themightychris Jan 28, 2014
aa10f69
updated build
themightychris Jan 28, 2014
58568de
restructured examples and added docs to build
themightychris Jan 28, 2014
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
build/temp
.sass-cache
358 changes: 358 additions & 0 deletions .sencha/package/build-impl.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,358 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
********************************** DO NOT EDIT **********************************

This file will be replaced during upgrades so DO NOT EDIT this file. If you need to
adjust the process, reading and understanding this file is the first step.

In most cases, the adjustments can be achieved by setting properties or providing one
of the "hooks" in the form of a "-before-" or "-after-" target. Whenever possible, look
for one of these solutions.

Failing that, you can copy whole targets to your build.xml file and it will overrride
the target provided here. Doing that can create problems for upgrading to newer
versions of Cmd so it is not recommended but it will be easier to manage than editing
this file in most cases.
-->
<project name="pkg-build-impl">

<!--
===============================================================
Find Cmd
uses targets from find-cmd-impl.xml to detect the current
install of Sencha Cmd
===============================================================
-->
<import file="${basedir}/.sencha/package/find-cmd-impl.xml"/>
<target name="init-cmd"
depends="find-cmd-in-path,
find-cmd-in-environment,
find-cmd-in-shell">
<echo>Using Sencha Cmd from ${cmd.dir} for ${ant.file}</echo>

<!--
load the sencha.jar ant task definitions.

NOTE: the 'loaderref' attribute stores this task def's class loader
on the project by that name, so it will be sharable across sub-projects.
This fixes out-of-memory issues, as well as increases performance.

To supoprt this, it is recommended that any customizations that use
'ant' or 'antcall' tasks set 'inheritrefs=true' on those tasks, in order
to propagate the senchaloader reference to those subprojects.

The sencha 'x-ant-call' task, which extends 'antcall' and defaults
'inheritrefs' to true, may be used in place of antcall in
build process customizations.
-->
<taskdef resource="com/sencha/ant/antlib.xml"
classpath="${cmd.dir}/sencha.jar"
loaderref="senchaloader"/>

<!--
Some operations require sencha.jar in the current java classpath,
so this will extend the java.lang.Thread#contextClassLoader with the
specified java classpath entries
-->
<x-extend-classpath>
<jar path="${cmd.dir}/sencha.jar"/>
</x-extend-classpath>
</target>

<!--
===============================================================
Init
uses targets from init-impl.xml to load Sencha Cmd config
system properties and ant task definitions
===============================================================
-->
<import file="${basedir}/.sencha/package/init-impl.xml"/>
<target name="init"
depends="init-local,
init-cmd,
-before-init,
-init,
-after-init,
-before-init-defaults,
-init-defaults,
-after-init-defaults"/>

<!--
===============================================================
Build
this is the starting point for the build process. The 'depends'
attribute on the -build target controls the ordering of the
different build phases
===============================================================
-->
<target name="-before-build"/>
<target name="-build"
depends="js,
inherit-resources,
copy-resources,
sass,
slice,
subpkgs,
examples,
pkg"/>
<target name="-after-build"/>
<target name="build"
depends="init,-before-build,-build,-after-build"
description="Builds the package"/>

<!--
===============================================================
Clean
removes all artifacts from the output build directories
===============================================================
-->
<target name="-before-clean"/>
<target name="-after-clean"/>
<target name="-clean">
<delete dir="${build.dir}"/>
</target>
<target name="clean"
depends="init"
description="Removes all build output produced by the 'build' target">
<x-ant-call>
<target name="-before-clean"/>
<target name="-clean"/>
<target name="clean-subpkgs"/>
<target name="clean-examples"/>
<target name="-after-clean"/>
</x-ant-call>
</target>

<!--
===============================================================
JS
uses targets from js-impl.xml to produce the output js files
containing package js classes
===============================================================
-->
<import file="${basedir}/.sencha/package/js-impl.xml"/>
<target name="js"
depends="init"
description="Builds the JS files">
<x-ant-call unless="skip.js">
<target name="-before-js"/>
<target name="-js"/>
<target name="-after-js"/>
</x-ant-call>
</target>

<!--
===============================================================
Resources
uses targets from resources-impl.xml the package's resources
to the output directory
===============================================================
-->
<import file="${basedir}/.sencha/package/resources-impl.xml"/>

<target name="inherit-resources"
depends="init"
description="Performs the resource folder inheritance from base theme(s)">
<x-ant-call unless="skip.inherit">
<target name="-before-inherit-resources"/>
<target name="-inherit-resources"/>
<target name="-after-inherit-resources"/>
</x-ant-call>
</target>

<target name="copy-resources"
depends="init"
description="Copy theme resources to folder">
<x-ant-call unless="skip.resources">
<target name="-before-copy-resources"/>
<target name="-copy-resources"/>
<target name="-after-copy-resources"/>
</x-ant-call>
</target>

<!--
===============================================================
Sass
uses targets from sass-impl.xml to produce the output css
files for the package's styling
===============================================================
-->
<import file="${basedir}/.sencha/package/sass-impl.xml"/>
<target name="sass"
depends="init"
description="Builds the SASS files using Compass">
<x-ant-call unless="skip.sass">
<target name="-before-sass"/>
<target name="-sass"/>
<target name="-after-sass"/>
</x-ant-call>
</target>

<!--
===============================================================
Slice
uses targets from slice-impl.xml to extract theme images from
the package's styling for use with older browsers that don't
support modern css features
===============================================================
-->
<import file="${basedir}/.sencha/package/slice-impl.xml"/>
<target name="slice"
depends="init"
description="Slices CSS3 theme to produce non-CSS3 images and sprites">
<x-ant-call unless="skip.slice">
<target name="-before-slice"/>
<target name="-slice"/>
<target name="-after-slice"/>
</x-ant-call>
</target>


<!--
===============================================================
Sub Builds
uses targets from sub-builds.xml to process other packages
and example applications contained within this package.
Only the "subpkgs" and "examples" targets are part of the
main build sequence.
===============================================================
-->
<import file="sub-builds.xml"/>

<!--
sub packages
-->
<target name="subpkgs"
depends="init"
description="Builds all sub-packages">
<x-ant-call unless="skip.subpkgs">
<target name="-before-subpkgs"/>
<target name="-subpkgs"/>
<target name="-after-subpkgs"/>
</x-ant-call>
</target>

<target name="clean-subpkgs"
depends="init"
description="Cleans all sub-packages">
<x-ant-call unless="skip.clean.subpkgs">
<target name="-before-clean-subpkgs"/>
<target name="-clean-subpkgs"/>
<target name="-after-clean-subpkgs"/>
</x-ant-call>
</target>

<target name="upgrade-subpkgs"
depends="init"
description="Upgrades all sub-packages">
<x-ant-call unless="skip.upgrade.subpkgs">
<target name="-before-upgrade-subpkgs"/>
<target name="-upgrade-subpkgs"/>
<target name="-after-upgrade-subpkgs"/>
</x-ant-call>
</target>

<!--
example applications
-->
<target name="examples"
depends="init"
description="Builds all examples">
<x-ant-call unless="skip.examples">
<target name="-before-examples"/>
<target name="-examples"/>
<target name="-after-examples"/>
</x-ant-call>
</target>

<target name="clean-examples"
depends="init"
description="Upgrades all examples">
<x-ant-call unless="skip.clean.examples">
<target name="-before-clean-examples"/>
<target name="-clean-examples"/>
<target name="-after-clean-examples"/>
</x-ant-call>
</target>

<target name="upgrade-examples"
depends="init"
description="Upgrades all examples">
<x-ant-call unless="skip.upgrade.examples">
<target name="-before-upgrade-examples"/>
<target name="-upgrade-examples"/>
<target name="-after-upgrade-examples"/>
</x-ant-call>
</target>

<!--
Build PKG
-->
<target name="-before-pkg"/>
<target name="-after-pkg"/>
<target name="-pkg">
<x-make-pkg dir="${package.dir}"
files="${build.pkg.manifest}"
pkg="${pkg.build.dir}/${pkg.file.name}"
temp="${build.dir}/temp"/>
</target>
<target name="pkg"
depends="init"
description="Builds the PKG file">
<x-ant-call unless="skip.pkg">
<target name="-before-pkg"/>
<target name="-pkg"/>
<target name="-after-pkg"/>
</x-ant-call>
</target>

<!--
===============================================================
Help - properties
displays all current ant properties
===============================================================
-->
<target name=".props" depends="init"
description="Lists all properties defined for the build">
<echoproperties/>
</target>

<!--
===============================================================
Help - docs
displays the help message
===============================================================
-->
<target name=".help" depends="init"
description="Provides help on the build script">

<x-get-project-targets property="help.message"/>

<echo><![CDATA[${help.message}
This is the main build script for your package.

The following properties can be used to disable certain steps in the build
process.

* skip.pkg Do not build the PKG file
* skip.sass Do not build the SASS.
* skip.js Do not build the JS files.

For details about how these options affect your build, see

${basedir}/.sencha/package/build-impl.xml

These options can be stored in a local.properties file in this folder or in the
local.properties file in the workspace.

Alternatively, these can be supplied on the command line. For example:

sencha ant -Dskip.sass=1 build

To see all currently defined properties, do this:

sencha ant .props
]]></echo>
</target>

</project>
8 changes: 8 additions & 0 deletions .sencha/package/build.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# =============================================================================
# This file provides an override point for default variables defined in
# defaults.properties.
#
# IMPORTANT - Sencha Cmd will merge your changes with its own during upgrades.
# To avoid potential merge conflicts avoid making large, sweeping changes to
# this file.
# =============================================================================
Loading