<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le mar. 30 juil. 2019 à 08:31, Xavier <<a href="mailto:yadd@debian.org">yadd@debian.org</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi all,<br>
<br>
I continue to improve auto_install. Here is a resume (from doc). Do you<br>
thinks it's in the right way to provide an auto-installer? (this part is<br>
not published in experimental but ready and with tests on salsa repo)<br>
<br>
NB: debian/nodejs/<br>
<br>
- - - 8< - - -<br>
pkg-js-tools provides:<br>
* dh_auto_configuration for embedded components: it automatically<br>
creates links in node_modules/ directory and removes them during clean<br>
* dh_auto_install: automatic install (0.8.4)<br>
  * main module: if no debian/install exists, pkg-js-tools will read<br>
package.json#files field to install files. If not, it install all files</blockquote><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
except *.md, doc*, example*, test*.</blockquote><div><br></div><div>Maybe it would be better to strictly follow rules from</div><div><a href="https://github.com/npm/npm-packlist">https://github.com/npm/npm-packlist</a><br></div><div>... but maybe not ! i don't know. I mention it to make sure you're aware of that one.</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">If install is not good, use<br>
debian/nodejs/files to fix the list. Files are installed following<br>
"Architecture" field in /usr/share/nodejs or /usr/lib/<gnu-arch>/nodejs<br>
  * components: pkg-js-tools does the same for each component in<br>
<module/path>/node_modules/<component-package-name>. To restrict this<br>
behavior, write a debian/node_submodules and list the components to<br>
install. An empty debian/node_submodules installs no component.<br></blockquote><div><br></div><div>"debian/node_submodules" -> "debian/nodejs/submodules" ?</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
* dh_auto_test: launch test written in debian/tests/pkg-js/test (using<br>
sh -e). If you use pkg-js-autopkgtest, you can also use the same test<br>
during build.<br>
<br>
Files:<br>
<br>
* debian/nodejs/submodules lists components to install (all if missing)<br>
* debian/nodejs/files overwrites package.json#files field.<br>
* debian/nodejs/<component>/files overwrites package.json#files field.<br>
                                  Use component name, not module name<br>
                                  here if different. An empty file avoid<br>
                                  any install<br>
* debian/nodejs/install overwrite debian/nodejs/files: same usage as<br>
                        debian/install except that destination not<br>
                        starting with / are related to arch path<br>
                       (/usr/share/nodejs or /usr/lib/<gnu-arch>/nodejs)<br>
* debian/nodejs/<component>/install overwrite<br>
                                    debian/nodejs/<component>/files,<br>
                                    same as debian/nodejs/install for<br>
                                    components<br>
* debian/nodejs/<component>/nolink avoid node_modules links creation for<br>
                                   this component (configuration step)<br>
<br></blockquote><div><br></div><div>Thanks !</div><div><br></div><div>Jérémy</div></div></div>