On 17 September 2011 13:53, Steve Lee <[email protected]> wrote:
> It's great that there is a JQM template in the seed-widget ant target,
> and I understand it gets round some nasty problems.
>
> How ever it uses the minimised JQM and JQ libraries which makes
> debugging almost impossible. Therefore it is desirable to to be able
> to use the expanded JS libraries for development and then release
> using the minimised versions.
>
> Can this be done? Perhaps with a flag in the widget code or the ant
> widget targets?
There is no automated mechanism to switch the JQM version at this
point. It seems strange that to debug a widget you need to drop into
the JQM code itself and thus we've not implemented such a feature.
Personally if I find some strange behaviour I write a spike to test
the specific behaviour so as to ensure there are no side effects from
other code.
However, if you really want to use the expanded libraries then you
need to change the following in "/features/jqmobile/feature.xml":
<script src="shared/jquery.mobile-1.0a4-patched.min.js"/>
<stylesheet src="shared/jquery.mobile-1.0a4.min.css"/>
and ensure the expanded scripts are available in "/features/jqmobile/shared"
You will also need to restart Wookie to ensure this gets deployed.
It might be interesting to provide a minimisation feature in Wookie
that is switchable in the config.xml of the widget. This will tell
Wookie to serve minimised versions of all files (CSS, JS etc.) or full
versions. Then all widgets and features would have the full versions
with Wookie minimising them on deployment.
Ross