网页
综合
更新时间 2026-11-14 16:19:14
cake.coffee
自动蜘蛛
coffeescript.org
正文约 1368 字
cake is a simplified version of Make (Rake, Jake) for CoffeeScript. You define tasks with names and descriptions in a Cakefile, and can call them from the command line, or invoke them from other tasks.
Running cake with no arguments will print out a list of all the tasks in the current directory’s Cakefile.
External dependencies.
Register .coffee extension
Keep track of the list of defined tasks, the accepted options, and so on.
Mixin the top-level Cake functions for Cakefiles to use directly.
Define a Cake task with a short name, an optional sentence description, and the function to run as the action itself.
Define an option that the Cakefile accepts. The parsed options hash, containing all of the command-line options passed, will be made available as the first argument to the action.
Invoke another task in the current Cakefile.
Run cake. Executes all of the tasks you pass, in order. Note that Node’s asynchrony may cause tasks to execute in a different order than you’d expect. If no tasks are passed, print the help screen. Keep a reference to the original directory name, when running Cake tasks from subdirectories.
Display the list of Cake tasks in a format similar to rake -T
Print an error and exit when attempting to use an invalid task/option.
When cake is invoked, search in the current and all parent directories to find the relevant Cakefile.
本页为82搜索生成的网页快照,内容来自站内索引;演示数据的原文链接仅作示例。