Files
tldr/pages.zh/common/rake.md

25 lines
479 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# rake
> 一款类似于 Make 的 Ruby 程序。
> `rake` 的任务在 Rakefile 中指定。
> 更多信息:<https://ruby.github.io/rake>。
- 运行 `default` Rakefile 任务:
`rake`
- 运行特定任务:
`rake {{task}}`
- 并行执行 `n` 个任务(默认情况下为 CPU 核心数 + 4
`rake --jobs {{n}}`
- 使用特定的 Rakefile
`rake --rakefile {{path/to/Rakefile}}`
- 从另一个目录执行 `rake`
`rake --directory {{path/to/directory}}`