forked from Nemo64/hateoas-ajax
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
38 lines (32 loc) · 901 Bytes
/
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
'use strict';
// Include Gulp & Tools We'll Use
var gulp = require('gulp');
var $ = require('gulp-load-plugins')();
var runSequence = require('run-sequence');
var bump = require('gulp-bump');
var src = ['hateoas-ajax.html',
'test/*.js',
'test/*.html'];
//Lint JavaScript
gulp.task('jshint', function () {
return gulp.src(src)
.pipe($.jshint.extract()) // Extract JS from .html files
.pipe($.jshint())
.pipe($.jshint.reporter('jshint-stylish'));
});
gulp.task('bump', function(){
gulp.src('./bower.json')
.pipe(bump())
.pipe(gulp.dest('./'));
});
gulp.task('default', function (callback) {
runSequence(
'jshint',
callback);
});
gulp.task('watch', function () {
gulp.watch(src, ['default']);
});
// Load tasks for web-component-tester
// Adds tasks for `gulp test:local` and `gulp test:remote`
require('web-component-tester').gulp.init(gulp);