Make Thor tasks more visible; Init Pages submodule when not present if about to run tests that require it
This commit is contained in:
@@ -29,7 +29,7 @@ class JasmineDev < Thor
|
||||
def node_installed?
|
||||
return true if has_node?
|
||||
|
||||
say "Node.js is required to develop Jasmine. Please visit http://nodejs.org to install. ",
|
||||
say "Node.js is required to develop Jasmine. Please visit http://nodejs.org to install.",
|
||||
:red
|
||||
false
|
||||
end
|
||||
@@ -48,7 +48,7 @@ class JasmineDev < Thor
|
||||
end
|
||||
|
||||
def has_pages_submodule?
|
||||
File.exist?(File.join(JasmineDev.project_root, 'pages', 'download.html'))
|
||||
File.exist?(File.join(JasmineDev.project_root, 'pages', 'index.html'))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -30,7 +30,7 @@ class JasmineDev < Thor
|
||||
open_specs_in_browser
|
||||
end
|
||||
|
||||
desc "execute_specs", "Run all of Jasmine's specs"
|
||||
desc "execute_specs", "Run all of Jasmine's JavaScript specs"
|
||||
|
||||
def execute_specs
|
||||
invoke :execute_specs_in_node
|
||||
|
||||
Reference in New Issue
Block a user