1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 12:29:55 +00:00

sdk-manual: Edits to "Adding Node.js Modules"

Fixed a few sentences up by providing clearer text.

(From yocto-docs rev: e81984d73c05f2d722bc082a100d01c3cc0173ab)

Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Scott Rifenbark
2018-05-31 10:31:01 -07:00
committed by Richard Purdie
parent 54e3cdcc27
commit 6068e017e8
+9 -10
View File
@@ -1363,11 +1363,9 @@
found" errors. found" errors.
</para></listitem> </para></listitem>
<listitem><para> <listitem><para>
In order to support adding In order to support adding Node.js modules, a
Node.js modules, a <filename>nodejs</filename> recipe must be part
<filename>nodejs</filename> recipe must be part of your of your SDK.
SDK in order to provide Node.js
itself.
</para></listitem> </para></listitem>
</itemizedlist> </itemizedlist>
</note> </note>
@@ -1376,14 +1374,15 @@
<para> <para>
As mentioned earlier, you can also add Node.js modules As mentioned earlier, you can also add Node.js modules
directly from a repository or local source tree. directly from a repository or local source tree.
To add modules this way, use <filename>devtool add</filename> in To add modules this way, use <filename>devtool add</filename>
the following form: in the following form:
<literallayout class='monospaced'> <literallayout class='monospaced'>
$ devtool add https://github.com/diversario/node-ssdp $ devtool add https://github.com/diversario/node-ssdp
</literallayout> </literallayout>
In this example, <filename>devtool</filename> fetches the specified In this example, <filename>devtool</filename> fetches the
Git repository, detects that the code is Node.js code, fetches specified Git repository, detects the code as Node.js
dependencies using <filename>npm</filename>, and sets code, fetches dependencies using <filename>npm</filename>, and
sets
<ulink url='&YOCTO_DOCS_REF_URL;#var-SRC_URI'><filename>SRC_URI</filename></ulink> <ulink url='&YOCTO_DOCS_REF_URL;#var-SRC_URI'><filename>SRC_URI</filename></ulink>
accordingly. accordingly.
</para> </para>