mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-02-10 02:09:34 +00:00
Preferred syntax
This commit is contained in:
5
Rakefile
5
Rakefile
@@ -6,10 +6,11 @@ require 'pry'
|
|||||||
|
|
||||||
task :default => :test
|
task :default => :test
|
||||||
|
|
||||||
Rake::Task["test"].enhance [:check_samples]
|
|
||||||
|
|
||||||
Rake::TestTask.new
|
Rake::TestTask.new
|
||||||
|
|
||||||
|
# Extend test task to check for samples
|
||||||
|
task :test => :check_samples
|
||||||
|
|
||||||
desc "Check that we have samples.json generated"
|
desc "Check that we have samples.json generated"
|
||||||
task :check_samples do
|
task :check_samples do
|
||||||
unless File.exist?('lib/linguist/samples.json')
|
unless File.exist?('lib/linguist/samples.json')
|
||||||
|
|||||||
Reference in New Issue
Block a user