Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Tatuya Kamada
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
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
lib/tasks/eslint.rake
lib/tasks/eslint.rake
+7
-0
lib/tasks/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