1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

documenting 'invoke' in Cakefiles a little bit.

This commit is contained in:
Jeremy Ashkenas 2010-09-17 20:24:10 -04:00
parent a53c104db1
commit 43f7f6c355
2 changed files with 10 additions and 0 deletions

View file

@ -806,6 +806,11 @@ coffee --print app/scripts/*.coffee > concatenation.js</pre>
the Node.js API to rebuild CoffeeScript's parser:
</p>
<%= code_for('cake_tasks') %>
<p>
If you need to invoke one task before another &mdash; for example, running
<tt>build</tt> before <tt>test</tt>, you can use the <tt>invoke</tt> function:
<tt>invoke 'build'</tt>
</p>
<h2>
<span id="scripts" class="bookmark"></span>

View file

@ -1713,6 +1713,11 @@ task(<span class="String"><span class="String">'</span>build:parser<span class="
<span class="Keyword">return</span> fs.writeFile(<span class="String"><span class="String">&quot;</span><span class="String">&quot;</span></span> <span class="Keyword">+</span> (dir) <span class="Keyword">+</span> <span class="String"><span class="String">&quot;</span>/parser.js<span class="String">&quot;</span></span>, code);
});
</pre><br class='clear' /></div>
<p>
If you need to invoke one task before another &mdash; for example, running
<tt>build</tt> before <tt>test</tt>, you can use the <tt>invoke</tt> function:
<tt>invoke 'build'</tt>
</p>
<h2>
<span id="scripts" class="bookmark"></span>