(Not) Bundling Javascript for a Python package?

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

 



Hello,

I have this python-djangoql [1] package that I've maintain. The upstream has decided to split the JavaScript code to a separate repository [2] available also on NPM as djangoql-completion [3]. However they bundle the JS in their Python package [4] as a minified JS file.

According to JavaScript guidelines [5] the minified code has to be minified in the RPM build process. That would mean to split it to a separate package (js-djangoql-completion), remove the pre-minified files at %prep, use Requires and symlink it...

So far it is straight-forward, but what to do with the NPM dependencies of that package (lex and lodash)? Can those be pulled just for the build process and bundled [6] (compiled into minified file)? There aren't existing nodejs packages that could be pulled (at least on for Fedora, one in EPEL only).

Note, that not having the JS files for this Django plugin undermines the purpose of this package. It would be only as a lib if those JS are absent, as Django expects the static files within certain paths.

Can anyone please advise?

Thank you,
and happy holidays!

-Viliam

[1] https://packages.fedoraproject.org/pkgs/python-djangoql/python3-djangoql/
[2] https://github.com/ivelum/djangoql-completion
[3] https://www.npmjs.com/package/djangoql-completion
[4] https://github.com/ivelum/djangoql/tree/740eaabfae1dfb6f099989d95a839145be7f35c7/djangoql/static/djangoql/js
[5] https://docs.fedoraproject.org/en-US/packaging-guidelines/JavaScript/#_compilationminification
[6] https://docs.fedoraproject.org/en-US/packaging-guidelines/#bundling
_______________________________________________
devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/devel@xxxxxxxxxxxxxxxxxxxxxxx
Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Users]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]

  Powered by Linux