Skip to content

Commit

Permalink
Update docs for release
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan committed Feb 13, 2019
1 parent 5275d7a commit f59905f
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions docs/npm_package/npm_package.html
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ <h3 id="create_package_args">Attributes</h3>

<h2 id="npm_package">npm_package</h2>

<pre>npm_package(<a href="#npm_package.name">name</a>, <a href="#npm_package.deps">deps</a>, <a href="#npm_package.srcs">srcs</a>, <a href="#npm_package.packages">packages</a>, <a href="#npm_package.replacements">replacements</a>)</pre>
<pre>npm_package(<a href="#npm_package.name">name</a>, <a href="#npm_package.deps">deps</a>, <a href="#npm_package.srcs">srcs</a>, <a href="#npm_package.packages">packages</a>, <a href="#npm_package.replace_with_version">replace_with_version</a>, <a href="#npm_package.replacements">replacements</a>)</pre>

<p>The npm_package rule creates a directory containing a publishable npm artifact.</p>
<pre><code class="lang-python">load(&quot;@build_bazel_rules_nodejs//:defs.bzl&quot;, &quot;npm_package&quot;)
Expand Down Expand Up @@ -259,13 +259,19 @@ <h3 id="npm_package_args">Attributes</h3>
<p>Other npm_package rules whose content is copied into this package.</p>
</td>
</tr>
<tr id="npm_package.replace_with_version">
<td><code>replace_with_version</code></td>
<td>
<p><code>String; Optional; Default is '0.0.0-PLACEHOLDER'</code></p>
<p>If set this value is replaced with the version stamp data.
See the section on stamping in the README.</p>
</td>
</tr>
<tr id="npm_package.replacements">
<td><code>replacements</code></td>
<td>
<p><code>Dictionary mapping strings to string; Optional; Default is {}</code></p>
<p>Key-value pairs which are replaced in all the files while building the package.
Note that the special value 0.0.0-PLACEHOLDER is always replaced with the version stamp data.
See the section on stamping in the README.</p>
<p>Key-value pairs which are replaced in all the files while building the package.</p>
</td>
</tr>
</tbody>
Expand Down

0 comments on commit f59905f

Please sign in to comment.