Just a quick follow-up on Babel - I've rolled back to yesterday's
version, edited lib/qxcompiler/ClassFile.js:218, replaced that plugins
array with presets: [ "es2015" ]. Suddenly, it worked :)
I'm still wondering why it doesn't try to look for any .babelrc file.
It's clearly stated in the docs that the "babelrc" option is true by
default. And it definitely would be good to have control over Babel via
(optional) config file.
Another issue to consider is that not every ES6 feature is implemented
via code transformation. Some (ex., Promises) require babel-polyfill.
(Mention in the docs? Integrate polyfill into build?)
Dimitri
> Hi John,
>
> That pace you're keeping, it's incredible :) Glad to hear
> translations finally landed!
>
> Unfortunately, I couldn't make them work :(
>
> [mitya@localhost test]$ node compile-app-demo.js
> [BABEL] Note: The code generator has deoptimised the styling of
> "/home/mitya/qxcompiler/qooxdoo/framework/source/class/qx/ui/core/Wid
> get.js" as it exceeds the max of "100KB".
> 2016-02-17 21:30:13.229 [info ] makers Writing target Source
> Target: ../testdata/qxt/source-output/
> /home/mitya/qxcompiler/lib/qxcompiler/targets/Target.js:239
> pkgdata.locales["C"] = db.cldr["en"];
> ^
>
> TypeError: Cannot read property 'en' of undefined
> at /home/mitya/qxcompiler/lib/qxcompiler/targets/Target.js:239:45
> at /home/mitya/qxcompiler/node_modules/async/lib/async.js:718:13
> at async.forEachOf.async.eachOf
> (/home/mitya/qxcompiler/node_modules/async/lib/async.js:233:13)
> at _parallel
> (/home/mitya/qxcompiler/node_modules/async/lib/async.js:717:9)
> at Object.async.parallel
> (/home/mitya/qxcompiler/node_modules/async/lib/async.js:731:9)
> at /home/mitya/qxcompiler/lib/qxcompiler/targets/Target.js:236:15
> at /home/mitya/qxcompiler/lib/util.js:321:9
> at /home/mitya/qxcompiler/node_modules/async/lib/async.js:52:16
> at /home/mitya/qxcompiler/node_modules/async/lib/async.js:269:32
> at /home/mitya/qxcompiler/node_modules/async/lib/async.js:44:16
>
> (removed qxcompiler dir & did clean checkout, didn't help either)
>
> Re: Babel - sadly, didn't make it work either :( that arrow function
> in qxt/Application.js goes unchanged first to [source|build]-
> output/transpiled, then to [source|build]-output/script. The same
> with string templates, etc. Note the above [BABEL] message - that
> means, Babel is invoked, but doesn't apply any actual
> transformations. I tried "strace -e trace=open node compile-app-
> demo.js", and didn't see it open .babelrc or any plugin and/or preset
> modules. Could you please make sure it's indeed enabled? If it works
> for you, could you please assist me in tracing/debugging (since I'm a
> newbie in a Node world)?
>
> As for script compression, I played a bit with the standalone uglify
> tool. Works pretty fine, but it takes ~30 seconds to process a
> skeleton app. Do you think it can be sped up if integrated into
> QxCompiler?
>
> Minor issue: test/*.js scripts could have a shebang string
> (#!/usr/bin/node) and +x mode so that they could be run directly,
> without typing "node ..." each time.
>
> Cheers!
> Dimitri
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
_______________________________________________
qooxdoo-devel mailing list
qooxdoo-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel