Re: obsolete JavaScript packaging guidelines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, Aug 4, 2018, 13:11 Greg Sheremeta <greg@xxxxxxxxxxxxxxxxx> wrote:
On Sat, Aug 4, 2018 at 3:48 AM Miro Hrončok <mhroncok@xxxxxxxxxx> wrote:
On 4.8.2018 01:17, Greg Sheremeta wrote:
> Hi,
>
> This page
> https://fedoraproject.org/wiki/Packaging:_javascript_
> is terribly outdated. Even when it was created years ago, IMO the advice
> was questionable. Today, it's definitely bad advice.
>
> Modern web applications use webpack for _javascript_. With webpack,
> _javascript_ is minified and bundled, and sometimes assets are even
> injected. I realize bundling libraries is bad for an old-school
> RPM-based application. But no one packages _javascript_ into RPMs (try to
> find react and friends), and the page is leading to confusion on my team.
>
> To prevent confusion, acceptable options would be: either simply
> deleting the page, or placing a giant "don't follow this outdated
> advice" banner at the top.

We don't generally do either of those. If the guidelines are outdated,
they need to to be updated, not deleted.

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok

Ok. Then I suggest this page be updated to roughly say client-side _javascript_ should not be packaged in RPMs.

But in which other way would you distribute _javascript_ libraries that are needed for packages?

Various projects depend on those libraries (jQuery, etc.), and they need to be distributed (or bundled) in RPMs, so other RPMs can depend on them - there's no way around that, at least none that I can see.

Fabio

_______________________________________________
packaging mailing list -- packaging@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to packaging-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/packaging@xxxxxxxxxxxxxxxxxxxxxxx/message/62Y5FPM2MJJIVVUXTTDL4JQ4X4N4N4AA/

[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite Forum]     [KDE Users]

  Powered by Linux