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

Fixed a few sentences up by providing clearer text.

(From yocto-docs rev: 64af3ec2c380d73dc863b2aea7878544b472218d)

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 6f5ad8b8d3
commit 6e9bfc5901

View File

@@ -1363,11 +1363,9 @@
found" errors.
</para></listitem>
<listitem><para>
In order to support adding
Node.js modules, a
<filename>nodejs</filename> recipe must be part of your
SDK in order to provide Node.js
itself.
In order to support adding Node.js modules, a
<filename>nodejs</filename> recipe must be part
of your SDK.
</para></listitem>
</itemizedlist>
</note>
@@ -1376,14 +1374,15 @@
<para>
As mentioned earlier, you can also add Node.js modules
directly from a repository or local source tree.
To add modules this way, use <filename>devtool add</filename> in
the following form:
To add modules this way, use <filename>devtool add</filename>
in the following form:
<literallayout class='monospaced'>
$ devtool add https://github.com/diversario/node-ssdp
</literallayout>
In this example, <filename>devtool</filename> fetches the specified
Git repository, detects that the code is Node.js code, fetches
dependencies using <filename>npm</filename>, and sets
In this example, <filename>devtool</filename> fetches the
specified Git repository, detects the code as Node.js
code, fetches dependencies using <filename>npm</filename>, and
sets
<ulink url='&YOCTO_DOCS_REF_URL;#var-SRC_URI'><filename>SRC_URI</filename></ulink>
accordingly.
</para>