2
0

Use rake instead of guard for erb compilation

This commit is contained in:
Jack Christensen
2013-05-03 13:51:10 -05:00
parent 3fef18bf38
commit ec460173eb
9 changed files with 24 additions and 59 deletions
+14
View File
@@ -0,0 +1,14 @@
require 'rake/clean'
ERB = FileList['*.go.erb']
GO = ERB.ext
CLEAN.include(GO)
rule '.go' => '.go.erb' do |t|
sh "erb #{t.source} > #{t.name}"
end
desc "Run tests"
task :test => GO do
sh "go test"
end