[Pkg-javascript-devel] Javascript trigger design
Jonas Smedegaard
dr at jones.dk
Fri Nov 28 19:46:15 UTC 2014
Quoting Thorsten Glaser (2014-11-28 13:20:36)
> On Fri, 28 Nov 2014, Thomas Goirand wrote:
>
>> It's been a long time I've been thinking about it, and I believe that
>> the only way to do this, would be to use triggers. Though I have
>> never
> Look at libjs-protoaculous which combines prototype and scriptaculous
> into one (possibly minified) js file. In (our inhouse version of)
> FusionForge, we just depend on it, and it contains all the trigger and
> dependency magic needed for that.
Just looking at the package name that seems not an ideal aproach: Should
we then make packages for each combination of libraries to be merged
together, or am I missing a more clever logic? Or do you perhaps point
at that package not suggesting duplicating it but instead cherry-picking
triggers for a system-wide structure?
> On Fri, 28 Nov 2014, Ben Finney wrote:
>
>> My understanding is that the Debian JavaScript team is converging on
>> a standard for compiling JavaScript (using uglify, I think) as a
>> routine
>
> That’s not good. Various upstreams recommend/require various minifier
> tools and say they have had issues with other tools, e.g. due to the
> minifiers differing in what they require from the source code to work
> without failure.
I agree that too strong standardization is not good - and I disagree
with the interpretation that the Javascript team is moving towards such
standardization.
That said, I do believe Uglifyjs is the best compressor we have, and
recomend to treat it as a "default" similar to newest GCC for C - i.e.
use Uglifyjs unless all of...
* code is complex, and
* upstream tests only only against an alternate compressor which is
available in Debian, and
* no testsuite with decent coverage and usable for us on build
daemons
- Jonas
--
* Jonas Smedegaard - idealist & Internet-arkitekt
* Tlf.: +45 40843136 Website: http://dr.jones.dk/
[x] quote me freely [ ] ask before reusing [ ] keep private
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-javascript-devel/attachments/20141128/0e8df26e/attachment.sig>
More information about the Pkg-javascript-devel
mailing list