<div dir="auto">Hi Alessandro,<div><br><br><div class="gmail_quote"><div dir="ltr">On Wed, Apr 11, 2018, 11:41 Alessandro Molina <<a href="mailto:alessandro.molina@gmail.com">alessandro.molina@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 10, 2018 at 10:04 PM, Thomas De Schampheleire <span dir="ltr"><<a href="mailto:patrickdepinguin@gmail.com" target="_blank" rel="noreferrer">patrickdepinguin@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
There is also an open point about the 'watch' feature and whether or<br>
not it should be integrated in gearbox --reload rather than<br>
introducing a new 'nodemon' mechanism.<br>
The introduction of 'npm run X' has also raised some comments in the<br>
past regarding cross-platform support. These is IMHO not bikeshedding,<br>
it's about being careful in adding extra complexity or going in a<br>
wrong direction.</blockquote><div><br></div><div>Hi Thomas,</div><div><br></div><div>If node is just involved in compiling js/css and bundling assets you might want to have a look at</div><div><a href="https://github.com/amol-/dukpy" target="_blank" rel="noreferrer">https://github.com/amol-/dukpy</a></div><div><br></div><div>It's a project that I created exactly to avoid the need to have two dependency managers (npm and pip)<br></div><div>and two execution environments (python and node) for a Python web app. </div><div><br></div><div>It has a builtin less compiler ( <a href="https://github.com/amol-/dukpy#less-transpiling" target="_blank" rel="noreferrer">https://github.com/amol-/dukpy#less-transpiling</a> ) which is integrated with WebAssets ( <a href="https://webassets.readthedocs.io/en/latest/" target="_blank" rel="noreferrer">https://webassets.readthedocs.io/en/latest/</a> ) to generate css bundles out of less files without the need to install node/lessc. </div><div><br></div><div><br></div><div>And through support for <a href="http://npmjs.org" target="_blank" rel="noreferrer">npmjs.org</a> ( <a href="https://github.com/amol-/dukpy#installing-packages-from-npmjsorg" target="_blank" rel="noreferrer">https://github.com/amol-/dukpy#installing-packages-from-npmjsorg</a> ) it's in theory possible to have setup.py also install node dependencies.</div></div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Thanks a lot for this information.</div><div dir="auto">If I understood correctly you wouldn't even need npm at all, correct?</div><div dir="auto"><br></div><div dir="auto">Do you know of an example project that is using this?</div><div dir="auto">Where would you handle this bundle creation and nodejs downloads? From setup.py? From a gearbox command?</div><div dir="auto"><br></div><div dir="auto">And do you have suggestions with respect to the handling of external asserts when creating a pypi package, in particular taking into account licensing aspects of the GPL (Kallithea is a gplv3 project).</div><div dir="auto"><br></div><div dir="auto">Thanks,</div><div dir="auto">Thomas</div></div>