On Mon, Apr 4, 2011 at 18:01, thron7 <[email protected]> wrote:

> > ...
> > I tried adding adding a pretty-print statement to my build-script job:
> >
> >     "build-script" :
> >     {
> >       "variants" :
> >       {
> >         "=qx.debug" : [ "on" ]
> >       },
> >       "pretty-print" : {}
>
> Don't do that! "pretty-print" only operates on source/class/* files, and
> has no influence whatsoever on the generated build script.
>

I assure you, I've learned my lesson! :-( It wiped out a whole day's worth
of work. Figuring out what changed I'd made, and what changes it had made,
turned out to be impossible. As I stated in the bug report, that command is
way too dangerous to be set loose in the wild without user confirmation that
it's about to write to every source file.


> >     }
> >
> > This runs the pretty-printer (although I'm not sure where it left the
> > output), but does not affect the build/script/myapp.js file which is the
> > one
> > I want somewhat prettier than it is.
> >
> > Is there a simple option to have only a single statement per line, or to
> > not
> > do any reformatting of the original source files (other than, optionally,
> > removing comments)?
>
> Not currently. There is just the little compile-options/code/format key,
> which you have already enabled, otherwise the whole code would be on a
> single line.
>
> But if you can wait another 2 days, 1.4 will bring you a "source-hybrid"
> build that will concat source files into common .js files. - What do you
> want to achieve anyway? What of "build" is it that you need?
>

Ah, yes. I'd seen the talk of that a while back, but forgot about it. I'll
update to current trunk to try it out.

What I need of "build" is a single JavaScript file (or as close to a single
file a possible) that gets installed to the server. Having a single file
that contained the framework code and another that contained my project code
(and a 3rd containing the contribs I'm using) would be fine as well.

Derrell
------------------------------------------------------------------------------
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to