FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
javascript-algorithms/gulpfile.js at master · heuet/javascript-algorithms · GitHub
heuet
/
javascript-algorithms
Public
forked from
mgechev/javascript-algorithms
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Wiki
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Wiki
Security and quality
Insights
Expand file tree
Breadcrumbs
javascript-algorithms
/
gulpfile.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
33 lines (28 loc) · 866 Bytes
Breadcrumbs
javascript-algorithms
/
gulpfile.js
Copy path
File metadata and controls
33 lines (28 loc) · 866 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
'use strict'
;
var
gulp
=
require
(
'gulp'
)
;
var
shell
=
require
(
'gulp-shell'
)
;
var
jshint
=
require
(
'gulp-jshint'
)
;
var
jasmine
=
require
(
'gulp-jasmine'
)
;
var
stylish
=
require
(
'jshint-stylish'
)
;
var
jscs
=
require
(
'gulp-jscs'
)
;
var
isWin
=
/
^
w
i
n
/
.
test
(
process
.
platform
)
;
gulp
.
task
(
'jsdoc'
,
shell
.
task
(
[
(
isWin
)
?
'"node_modules/.bin/jsdoc.cmd" -c ./doc-config.json'
:
'./node_modules/.bin/jsdoc -c ./doc-config.json'
]
)
)
;
gulp
.
task
(
'lint'
,
function
(
)
{
return
gulp
.
src
(
[
'./src/**/*.js'
]
,
[
'./test/**/*.js'
]
)
.
pipe
(
jshint
(
)
)
.
pipe
(
jshint
.
reporter
(
stylish
)
)
.
pipe
(
jshint
.
reporter
(
'fail'
)
)
;
}
)
;
gulp
.
task
(
'test'
,
function
(
)
{
return
gulp
.
src
(
'test/**/*.spec.js'
)
.
pipe
(
jasmine
(
)
)
;
}
)
;
gulp
.
task
(
'jscs'
,
function
(
)
{
return
gulp
.
src
(
[
'src/**/*.js'
,
'test/**/*.js'
]
)
.
pipe
(
jscs
(
)
)
;
}
)
;
gulp
.
task
(
'build'
,
[
'lint'
,
'jscs'
,
'test'
]
)
;
Back
|
FazBrowse Home
|
New Git URL