summaryrefslogtreecommitdiff
path: root/lib/tasks/eslint.rake
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2017-02-15 14:18:21 -0600
committerMike Greiling <mike@pixelcog.com>2017-02-15 23:46:29 -0600
commite65298794725e5df22d7e1fdfee62fbc49c44857 (patch)
tree37b21e15e8d3c54e68ef9164835bd0951fdffed6 /lib/tasks/eslint.rake
parentb36542e1cbb90134435f5333c46dd0dc89bb468f (diff)
downloadgitlab-ce-e65298794725e5df22d7e1fdfee62fbc49c44857.tar.gz
ensure rake tasks produce helpful error messages for node dependency issues
Diffstat (limited to 'lib/tasks/eslint.rake')
-rw-r--r--lib/tasks/eslint.rake7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/tasks/eslint.rake b/lib/tasks/eslint.rake
index 2514b050695..d440085696d 100644
--- a/lib/tasks/eslint.rake
+++ b/lib/tasks/eslint.rake
@@ -1,7 +1,8 @@
unless Rails.env.production?
desc "GitLab | Run ESLint"
- task :eslint do
- system("yarn", "run", "eslint")
+ task eslint: ['yarn:check'] do
+ sh "yarn run eslint" do |ok, res|
+ abort('rake eslint failed') unless ok
+ end
end
end
-