зеркало из https://github.com/microsoft/just.git
updated word rig to just
This commit is contained in:
Родитель
a2f872b328
Коммит
97f3c14a49
|
@ -46,7 +46,7 @@ task(<span class="hljs-string">'blimey'</span>, <span class="hljs-string">'An ex
|
|||
<p>The <code>option()</code> function is the same one exposed by <code>yargs.option()</code> - so you can look up that <a href="http://yargs.js.org/docs/#api-optionkey-opt"><code>option()</code> documentation</a> for what is possible.</p>
|
||||
<h2><a class="anchor" aria-hidden="true" id="automatically-generated-task-help-usage"></a><a href="#automatically-generated-task-help-usage" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Automatically Generated Task Help Usage</h2>
|
||||
<p>If you describe the task in this fashion, you can get a list of tasks with descriptions like this:</p>
|
||||
<pre><code class="hljs">rig <span class="hljs-comment">--help</span>
|
||||
rig blimey <span class="hljs-comment">--help</span>
|
||||
<pre><code class="hljs"><span class="hljs-keyword">just </span>--help
|
||||
<span class="hljs-keyword">just </span><span class="hljs-keyword">blimey </span>--help
|
||||
</code></pre>
|
||||
</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/just-task/docs/logging"><span class="arrow-prev">← </span><span>Logging</span></a><a class="docs-next button" href="/just-task/docs/condition"><span>Conditionals</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#reading-arguments">Reading arguments</a></li><li><a href="#describe-the-task-with-option">Describe the task with <code>option()</code></a></li><li><a href="#automatically-generated-task-help-usage">Automatically Generated Task Help Usage</a></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="copyright">Copyright © 2019</section></footer></div></body></html>
|
|
@ -46,7 +46,7 @@ task(<span class="hljs-string">'blimey'</span>, <span class="hljs-string">'An ex
|
|||
<p>The <code>option()</code> function is the same one exposed by <code>yargs.option()</code> - so you can look up that <a href="http://yargs.js.org/docs/#api-optionkey-opt"><code>option()</code> documentation</a> for what is possible.</p>
|
||||
<h2><a class="anchor" aria-hidden="true" id="automatically-generated-task-help-usage"></a><a href="#automatically-generated-task-help-usage" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Automatically Generated Task Help Usage</h2>
|
||||
<p>If you describe the task in this fashion, you can get a list of tasks with descriptions like this:</p>
|
||||
<pre><code class="hljs">rig <span class="hljs-comment">--help</span>
|
||||
rig blimey <span class="hljs-comment">--help</span>
|
||||
<pre><code class="hljs"><span class="hljs-keyword">just </span>--help
|
||||
<span class="hljs-keyword">just </span><span class="hljs-keyword">blimey </span>--help
|
||||
</code></pre>
|
||||
</span></div></article></div><div class="docs-prevnext"><a class="docs-prev button" href="/just-task/docs/logging"><span class="arrow-prev">← </span><span>Logging</span></a><a class="docs-next button" href="/just-task/docs/condition"><span>Conditionals</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#reading-arguments">Reading arguments</a></li><li><a href="#describe-the-task-with-option">Describe the task with <code>option()</code></a></li><li><a href="#automatically-generated-task-help-usage">Automatically Generated Task Help Usage</a></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="copyright">Copyright © 2019</section></footer></div></body></html>
|
|
@ -41,7 +41,7 @@ task(<span class="hljs-string">'babel'</span>, <span class="hljs-function"><span
|
|||
|
||||
task(<span class="hljs-string">'build'</span>, series(<span class="hljs-string">'clean'</span>, <span class="hljs-string">'babel'</span>));
|
||||
</code></pre>
|
||||
<p>When you trigger <code>rig build</code>, the <code>clean</code> task will run and complete before <code>babel</code> task is run.</p>
|
||||
<p>When you trigger <code>just build</code>, the <code>clean</code> task will run and complete before <code>babel</code> task is run.</p>
|
||||
<h2><a class="anchor" aria-hidden="true" id="runny-tasks-in-parallel"></a><a href="#runny-tasks-in-parallel" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Runny tasks in parallel</h2>
|
||||
<p>To take advantage of multi-core CPUs on our machines, we can run several tasks in parallel. Simply use the <code>parallel()</code> function.</p>
|
||||
<pre><code class="hljs css language-js"><span class="hljs-keyword">const</span> { task, parallel } = <span class="hljs-built_in">require</span>(<span class="hljs-string">'just-task'</span>);
|
||||
|
|
|
@ -41,7 +41,7 @@ task(<span class="hljs-string">'babel'</span>, <span class="hljs-function"><span
|
|||
|
||||
task(<span class="hljs-string">'build'</span>, series(<span class="hljs-string">'clean'</span>, <span class="hljs-string">'babel'</span>));
|
||||
</code></pre>
|
||||
<p>When you trigger <code>rig build</code>, the <code>clean</code> task will run and complete before <code>babel</code> task is run.</p>
|
||||
<p>When you trigger <code>just build</code>, the <code>clean</code> task will run and complete before <code>babel</code> task is run.</p>
|
||||
<h2><a class="anchor" aria-hidden="true" id="runny-tasks-in-parallel"></a><a href="#runny-tasks-in-parallel" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Runny tasks in parallel</h2>
|
||||
<p>To take advantage of multi-core CPUs on our machines, we can run several tasks in parallel. Simply use the <code>parallel()</code> function.</p>
|
||||
<pre><code class="hljs css language-js"><span class="hljs-keyword">const</span> { task, parallel } = <span class="hljs-built_in">require</span>(<span class="hljs-string">'just-task'</span>);
|
||||
|
|
|
@ -45,5 +45,5 @@ $ just sayhello --name me
|
|||
</code></pre>
|
||||
<p>That's all!</p>
|
||||
<h2><a class="anchor" aria-hidden="true" id="next-steps"></a><a href="#next-steps" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Next Steps</h2>
|
||||
<p>Learn about how to <a href="/just-task/docs/composition">compose tasks into <em>rigs</em></a></p>
|
||||
<p>Learn about how to <a href="/just-task/docs/composition">compose tasks in just-task.js</a></p>
|
||||
</span></div></article></div><div class="docs-prevnext"><a class="docs-next button" href="/just-task/docs/composition"><span>Composition of tasks</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#next-steps">Next Steps</a></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="copyright">Copyright © 2019</section></footer></div></body></html>
|
|
@ -45,5 +45,5 @@ $ just sayhello --name me
|
|||
</code></pre>
|
||||
<p>That's all!</p>
|
||||
<h2><a class="anchor" aria-hidden="true" id="next-steps"></a><a href="#next-steps" aria-hidden="true" class="hash-link"><svg class="hash-link-icon" aria-hidden="true" height="16" version="1.1" viewBox="0 0 16 16" width="16"><path fill-rule="evenodd" d="M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z"></path></svg></a>Next Steps</h2>
|
||||
<p>Learn about how to <a href="/just-task/docs/composition">compose tasks into <em>rigs</em></a></p>
|
||||
<p>Learn about how to <a href="/just-task/docs/composition">compose tasks in just-task.js</a></p>
|
||||
</span></div></article></div><div class="docs-prevnext"><a class="docs-next button" href="/just-task/docs/composition"><span>Composition of tasks</span><span class="arrow-next"> →</span></a></div></div></div><nav class="onPageNav"><ul class="toc-headings"><li><a href="#next-steps">Next Steps</a></li></ul></nav></div><footer class="nav-footer" id="footer"><section class="copyright">Copyright © 2019</section></footer></div></body></html>
|
|
@ -35,6 +35,6 @@ The `option()` function is the same one exposed by `yargs.option()` - so you can
|
|||
If you describe the task in this fashion, you can get a list of tasks with descriptions like this:
|
||||
|
||||
```
|
||||
rig --help
|
||||
rig blimey --help
|
||||
just --help
|
||||
just blimey --help
|
||||
```
|
||||
|
|
|
@ -22,7 +22,7 @@ task('babel', function() {
|
|||
task('build', series('clean', 'babel'));
|
||||
```
|
||||
|
||||
When you trigger `rig build`, the `clean` task will run and complete before `babel` task is run.
|
||||
When you trigger `just build`, the `clean` task will run and complete before `babel` task is run.
|
||||
|
||||
## Runny tasks in parallel
|
||||
|
||||
|
|
|
@ -33,4 +33,4 @@ That's all!
|
|||
|
||||
## Next Steps
|
||||
|
||||
Learn about how to [compose tasks into _rigs_](composition.md)
|
||||
Learn about how to [compose tasks in just-task.js](composition.md)
|
||||
|
|
Загрузка…
Ссылка в новой задаче