-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathRakefile
41 lines (37 loc) · 957 Bytes
/
Rakefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
require "rake/testtask"
require "rdoc/task"
require "fileutils"
require "tmpdir"
Rake::TestTask.new :test do |t|
t.libs << "test"
t.libs << "lib"
t.libs << "minitest"
t.test_files = FileList["test/*_test.rb"]
end
task :cpdist do
dest = File.join(__dir__, *%w[dist])
Dir.mktmpdir do |tmpdir|
Dir.chdir(tmpdir) do
`git clone --depth 1 https://github.com/artagnon/artagnon.com src`
FileUtils.cp("src/.htaccess", dest)
FileUtils.cp("src/package.json", dest)
FileUtils.cp_r("src/lib/.", "#{dest}/lib")
FileUtils.cp_r("src/.vscode/.", "#{dest}/.vscode")
end
end
end
RDoc::Task.new :doc do |rdoc|
rdoc.main = "README.md"
rdoc.title = "clayoven documentation"
rdoc.markup = 'markdown'
rdoc.rdoc_dir = "docs"
rdoc.rdoc_files.include(
"README.md",
"LICENSE",
"bin/clayoven",
"lib/clayoven/*.rb"
)
rdoc.options << "--all"
rdoc.options << "--hyperlink-all"
end
task default: :test