❦ 27 août 2015 22:04 GMT, Bas Wijnen <wij...@debian.org> :

>> > The minifier is a compiler.  If it's not in main, files that are compiled 
>> > with
>> > it cannot be in main.  For javascript, the easy solution is to not use the
>> > compiler.  Non-minified code works fine.
>>
>> Non-minified code is decomposed in several dozen files. Using them is as
>> painful as trying to concat them and minifying them properly.
>
> What does "minify properly" mean?  Using cat as a replacement for minifying
> sounds attractive to me; what else is needed?

The build process can be a bit more complex. For example, transpilation
is another complication that can happens (compiling ES6 to ES5). Another
thing that can be needed is to inline module loading. There is also
modular compilation: you need to choose which modules you want (with
dependency handling). All of those are done for recent versions of
jQuery.

Other projects may need additional steps. For example, some projects
need a preparation phase before minification because function argument
names are used for dependency injection.

But sometimes, cat would be just what is needed. There is no universal
rule because the JS world is so fast-moving.

>> The main effect of this religious and overzealous application of our
>> guidelines is that people just stay away of JS stuff in Debian and
>> packaging any web-related app is becoming more complex as anyone needs
>> to deal with JS stuff in its own package.
>
> Yes, that is a danger.  I think putting those things in contrib should be a
> good solution if rebuilding is such a big problem.  Because if it is, the code
> really really doesn't belong in main.

What will happen is that maintainers will fallback to the second less
horrible solution and cripple the package (by using an older version of
the JS lib for example) to allow it to stay in main. And here will come
the angry users and the bad PR.

I won't put a package of mine in contrib because of such a technicality:
all the code is free software and is provided with the appropriate
source. A tiny part of it is difficult to rebuild from scratch.
-- 
When angry, count four; when very angry, swear.
                -- Mark Twain, "Pudd'nhead Wilson's Calendar"

Attachment: signature.asc
Description: PGP signature

Reply via email to