Re: [qooxdoo-devel] configure file name for parts

2013-04-08 Thread jabraham
Thanks T.

Any suggestions on how I would go about this?

The app I am building is a device UI. When we ship to customers, there are
some customer specific themes that we package.

Currently we build a separate image for each customer. This results in (#
parts * # customer) js output files, which are a pain to manage

I would like to be able to compile the themes separate from the app itself
and then ship the app and the customer theme. 
So I changed it to compile the themes using parts and then dynamically load
it at runtime depending on what a particular env. variable is set to.
Everything  works fine with the parts, but my problem as you can imagine is
that I dont know which of the parts generated relate to a particular theme
and I dont want to ship the theme for one customer to another :-)

Hence my question.

The only other way I can think to tackle this is to compile up the theme and
UI as independent applications and launch the UI from within the main class
of the theme app.
This way I can compile multiple themes all accessing the same app.
Am I on the right track?

Thanks
Jacob

 



--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/configure-file-name-for-parts-tp7583180p7583190.html
Sent from the qooxdoo mailing list archive at Nabble.com.

--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: [qooxdoo-devel] configure file name for parts

2013-04-08 Thread thron7

On 04/05/2013 01:41 AM, jabraham wrote:
> Hi All
>
> Is it possible to configure the name of the output js file for a configured
> app.
>
> Currently my app is composed of 4 parts, 2 of which are themes.
> So after a build, I have the following files
>
> myApp.38e44c59e296.js
> myApp.1774ff302f99.js
> myApp.c3b119790dc8.js
> myApp.e12092905737.js
> myApp.js
>
> I would like to generate it such that  I get the following list. (The themes
> are custome specific and loaded dynamically)
>
> theme1.js
> theme2.js
> myApp.c3b119790dc8.js
> myApp.e12092905737.js
> myApp.js
>
> How can I configure the name of the final  .js file

Generally, there is *no* 1:1 relation between the parts you define in 
your config and the .js files generated on disk. There is an n:m 
relation between *parts* and what we call *packages* (which are 
collections of classes), and an n:m relation between *packages* and 
*scripts* (.js files). In other words, a part is embodied by a number of 
packages, each of which is embodied by a number of .js files. Among 
other things, this also means that generated script files may be shared 
across several parts.

Therefore, it doesn't make much sense to name script files after parts. 
You have to consider the fact that you have 4 parts defined and get 4 
.js files (apart of the loader) as accidential. The general upper limit 
for .js files is 2 ^ number_of(parts) -1 (i.e. 15 in your case), and the 
actual number you end up with also depends on optimizations and 
configuration settings.

HTH,
T.

--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: [qooxdoo-devel] configure file name for parts

2013-04-05 Thread jabraham
Thanks Michal

In re reading my post, I realized that I did a bad job of explaining my
requirement.

I already use parts in my App and everything works fine.
I was wondering if there was anyway to generate the part js file with a
specific name.

for example the output files after compiling look like this


myApp.38e44c59e296.js (I would like this to be *theme1.js*)
myApp.1774ff302f99.js (I would like this to be *theme2.js*)
myApp.c3b119790dc8.js
myApp.e12092905737.js
myApp.js

Thanks
Jacob







--
View this message in context: 
http://qooxdoo.678.n2.nabble.com/configure-file-name-for-parts-tp7583180p7583187.html
Sent from the qooxdoo mailing list archive at Nabble.com.

--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel


Re: [qooxdoo-devel] configure file name for parts

2013-04-04 Thread Michal Dvořák
Hello,
look at the "parts", thats what you will need. Note that build job
generates just one js file (without parts). What you are using is
source-hybrid job. Splitting the application other ways is not supported.

Cheers


On Fri, Apr 5, 2013 at 1:41 AM, jabraham  wrote:

> Hi All
>
> Is it possible to configure the name of the output js file for a configured
> app.
>
> Currently my app is composed of 4 parts, 2 of which are themes.
> So after a build, I have the following files
>
> myApp.38e44c59e296.js
> myApp.1774ff302f99.js
> myApp.c3b119790dc8.js
> myApp.e12092905737.js
> myApp.js
>
> I would like to generate it such that  I get the following list. (The
> themes
> are custome specific and loaded dynamically)
>
> theme1.js
> theme2.js
> myApp.c3b119790dc8.js
> myApp.e12092905737.js
> myApp.js
>
> How can I configure the name of the final  .js file
>
> Thanks for your help
>
>
>
>
> --
> View this message in context:
> http://qooxdoo.678.n2.nabble.com/configure-file-name-for-parts-tp7583180.html
> Sent from the qooxdoo mailing list archive at Nabble.com.
>
>
> --
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire
> the most talented Cisco Certified professionals. Visit the
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> ___
> qooxdoo-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
>
--
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html___
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel