BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
bf418fcd
Commit
bf418fcd
authored
Jul 23, 2016
by
winniehell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add Rake tasks eslint and lint:javascript
parent
bf389a79
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
eslint.rake
lib/tasks/eslint.rake
+7
-0
lint.rake
lib/tasks/lint.rake
+9
-0
No files found.
lib/tasks/eslint.rake
0 → 100644
View file @
bf418fcd
unless
Rails
.
env
.
production?
desc
"GitLab | Run ESLint"
task
:eslint
do
system
(
"npm"
,
"run"
,
"eslint"
)
end
end
lib/tasks/lint.rake
0 → 100644
View file @
bf418fcd
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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment