-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
45 lines (35 loc) · 1.18 KB
/
gulpfile.js
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
34
35
36
37
38
39
40
41
42
43
44
45
var gulp = require( 'gulp' ),
logwarn = require( 'gulp-logwarn' ),
jshint = require( 'gulp-jshint' ),
jscs = require( 'gulp-jscs' ),
mocha = require( 'gulp-mocha-phantomjs' ),
browserify = require( 'browserify' );
gulp.task( 'jscs', function scriptsJSCSTask() {
'use strict';
return gulp.src( './ampersand-floatinglabel-input-view.js' )
.pipe( jscs());
});
gulp.task( 'jshint', function scriptsJSHintTask() {
'use strict';
return gulp.src( './ampersand-floatinglabel-input-view.js' )
.pipe( jshint())
.pipe( jshint.reporter( 'default' ))
.pipe( jshint.reporter( 'fail' ));
});
gulp.task( 'logwarn', function scriptsLogwarnTask() {
'use strict';
return gulp.src( './ampersand-floatinglabel-input-view.js' )
.pipe( logwarn([
'console.log',
'console.error',
'console.info',
'debugger'
]));
});
gulp.task( 'mocha', function scriptsTestTask() {
'use strict';
return gulp.src( './test/index.html' )
.pipe( mocha());
});
gulp.task( 'default', [ 'jscs', 'jshint', 'logwarn', 'mocha' ]);
gulp.task( 'test', [ 'jscs', 'jshint', 'logwarn', 'mocha' ]);