diff options
author | winniehell <git@winniehell.de> | 2016-07-23 00:06:17 +0200 |
---|---|---|
committer | winniehell <git@winniehell.de> | 2016-10-26 10:00:55 +0200 |
commit | bf418fcd75023735f892c3445dadd37c0beced67 (patch) | |
tree | fd87466fd126a51386bf8e708a0d8dec21c2145b | |
parent | bf389a79b7fd2768d89f5afc723c09e7a1b6c034 (diff) | |
download | gitlab-ce-bf418fcd75023735f892c3445dadd37c0beced67.tar.gz |
add Rake tasks eslint and lint:javascript
-rw-r--r-- | lib/tasks/eslint.rake | 7 | ||||
-rw-r--r-- | lib/tasks/lint.rake | 9 |
2 files changed, 16 insertions, 0 deletions
diff --git a/lib/tasks/eslint.rake b/lib/tasks/eslint.rake new file mode 100644 index 00000000000..d43cbad1909 --- /dev/null +++ b/lib/tasks/eslint.rake @@ -0,0 +1,7 @@ +unless Rails.env.production? + desc "GitLab | Run ESLint" + task :eslint do + system("npm", "run", "eslint") + end +end + diff --git a/lib/tasks/lint.rake b/lib/tasks/lint.rake new file mode 100644 index 00000000000..32b668df3bf --- /dev/null +++ b/lib/tasks/lint.rake @@ -0,0 +1,9 @@ +unless Rails.env.production? + namespace :lint do + desc "GitLab | lint | Lint JavaScript files using ESLint" + task :javascript do + Rake::Task['eslint'].invoke + end + end +end + |