|
|
@@ -15,6 +15,7 @@ var connect = require('gulp-connect'); |
|
|
|
var header = require('gulp-header'); |
|
|
|
var pkg = require('./package.json'); |
|
|
|
var order = require('gulp-order'); |
|
|
|
var jshint = require('gulp-jshint'); |
|
|
|
var banner = ['/**', |
|
|
|
' * <%= pkg.name %> - <%= pkg.description %>', |
|
|
|
' * @version v<%= pkg.version %>', |
|
|
@@ -48,10 +49,19 @@ function templates() { |
|
|
|
.on('error', log); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* JShint all *.js files |
|
|
|
*/ |
|
|
|
gulp.task('lint', function () { |
|
|
|
return gulp.src('./src/main/javascript/**/*.js') |
|
|
|
.pipe(jshint()) |
|
|
|
.pipe(jshint.reporter('jshint-stylish')); |
|
|
|
}); |
|
|
|
|
|
|
|
/** |
|
|
|
* Build a distribution |
|
|
|
*/ |
|
|
|
gulp.task('dist', ['clean'], function() { |
|
|
|
gulp.task('dist', ['clean','lint'], function() { |
|
|
|
|
|
|
|
return es.merge( |
|
|
|
gulp.src([ |
|
|
|