1 | /**
|
2 | * @license
|
3 | * Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
|
4 | * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
5 | * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
6 | * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
7 | * Code distributed by Google as part of the polymer project is also
|
8 | * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
9 | */
|
10 | var gulp = require('gulp');
|
11 | var jshint = require('gulp-jshint');
|
12 |
|
13 | var MAIN_SOURCES = ['gulpfile.js', '{lib,test}/**/*.js', 'bin/*'];
|
14 |
|
15 | gulp.task('default', ['test']);
|
16 |
|
17 | gulp.task('test', ['test:style']);
|
18 |
|
19 | gulp.task('test:style', function() {
|
20 | return gulp.src(MAIN_SOURCES)
|
21 | .pipe(jshint())
|
22 | .pipe(jshint.reporter('jshint-stylish'))
|
23 | .pipe(jshint.reporter('fail'));
|
24 | });
|