feat: add CONTRIBUTING.md document. efa51c0a06

This commit is contained in:
jaywcjlove
2022-09-28 18:41:02 +00:00
parent 821d0678cc
commit 15495f3dad
15 changed files with 672 additions and 238 deletions

View File

@ -19,7 +19,7 @@
<li><a href="https://docs.npmjs.com/cli/v6/using-npm/semver">npm 的语义版本器</a> <em>(npmjs.com)</em></li>
</ul>
</div></div></div><div class="wrap"><div class="wrap-header h3wrap"><h3>Semver</h3><div class="wrap-body">
<table class="table-thead-hide">
<table>
<thead>
<tr>
<th>-</th>
@ -40,7 +40,7 @@
<td>当你做了向下兼容的问题修正</td>
</tr>
</tbody>
</table><!--rehype:class=table-thead-hide-->
</table>
</div></div></div><div class="wrap"><div class="wrap-header h3wrap"><h3>简单范围</h3><div class="wrap-body">
<pre><code class="code-highlight"><span class="code-line line-number" line="1"> 1.2.3
</span><span class="code-line line-number" line="2"> =1.2.3
@ -49,8 +49,8 @@
</span><span class="code-line line-number" line="5">>=1.2.3
</span></code></pre>
<p>请注意,后缀版本(<code>1.2.3-rc1</code>)不匹配。</p>
</div></div></div><div class="wrap row-span-3"><div class="wrap-header h3wrap"><h3>范围</h3><div class="wrap-body"><!--rehype:wrap-class=row-span-3--><!--rehype:-->
<table class="table-thead-hide">
</div></div></div><div class="wrap row-span-3"><div class="wrap-header h3wrap"><h3>范围</h3><div class="wrap-body"><!--rehype:wrap-class=row-span-3-->
<table>
<thead>
<tr>
<th>范围</th>
@ -125,9 +125,9 @@
<td></td>
</tr>
</tbody>
</table><!--rehype:class=table-thead-hide-->
</div></div></div><div class="wrap row-span-3"><div class="wrap-header h3wrap"><h3>连字符范围</h3><div class="wrap-body"><!--rehype:wrap-class=row-span-3--><!--rehype:-->
<table>
</table>
</div></div></div><div class="wrap row-span-3"><div class="wrap-header h3wrap"><h3>连字符范围</h3><div class="wrap-body"><!--rehype:wrap-class=row-span-3-->
<table class="show-header ">
<thead>
<tr>
<th>范围</th>
@ -140,9 +140,9 @@
<td><code>>=1.2.3 &#x3C;=2.3.4</code></td>
</tr>
</tbody>
</table>
</table><!--rehype:className=show-header -->
</div></div><div class="h3wrap-body"><div class="wrap"><div class="wrap-header h4wrap"><h4>部分向右</h4><div class="wrap-body">
<table class="table-thead-hide">
<table>
<thead>
<tr>
<th>范围</th>
@ -159,9 +159,9 @@
<td><code>>=1.2.3 &#x3C;3.0.0</code></td>
</tr>
</tbody>
</table><!--rehype:class=table-thead-hide-->
</table>
</div></div></div><div class="wrap"><div class="wrap-header h4wrap"><h4>部分向左</h4><div class="wrap-body">
<table class="table-thead-hide">
<table>
<thead>
<tr>
<th>范围</th>
@ -174,11 +174,11 @@
<td><code>1.2.0 - 2.3.0</code></td>
</tr>
</tbody>
</table><!--rehype:class=table-thead-hide-->
</table>
<p>当右侧为部分(例如,<code>2.3</code>)时,假定缺失的部分为<code>x</code>(例如,<code> 2.3.x</code>)。</p>
<p>如果左边是部分的(例如,<code>1.2</code>),则假定缺少的部分为<code>0</code>(例如,<code> 1.2.0</code>)。</p>
</div></div></div></div></div><div class="wrap"><div class="wrap-header h3wrap"><h3>组合范围</h3><div class="wrap-body">
<table>
<table class="show-header ">
<thead>
<tr>
<th>范围</th>
@ -195,12 +195,12 @@
<td>或 (双竖线分隔)</td>
</tr>
</tbody>
</table>
</table><!--rehype:className=show-header -->
</div></div></div><div class="wrap"><div class="wrap-header h3wrap"><h3>预发布</h3><div class="wrap-body">
<pre><code class="code-highlight"><span class="code-line line-number" line="1">1.2.3-prerelease+build
</span></code></pre>
</div></div></div><div class="wrap"><div class="wrap-header h3wrap"><h3>解释</h3><div class="wrap-body">
<table class="table-thead-hide">
<table>
<thead>
<tr>
<th>范围</th>
@ -225,7 +225,7 @@
<td>表示定义了公共 API</td>
</tr>
</tbody>
</table><!--rehype:class=table-thead-hide-->
</table>
</div></div></div></div></div><div class="wrap"><div class="wrap-header h2wrap"><h2>另见</h2><div class="wrap-body">
<ul>
<li><a href="https://regex101.com/r/vkijKf/1/">语义化版本号验证正则表达式,支持按编号提取的语言</a></li>