mirror of https://github.com/akveo/blur-admin
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
516 B
27 lines
516 B
'use strict';
|
|
|
|
var path = require('path');
|
|
var gulp = require('gulp');
|
|
var conf = require('./conf');
|
|
|
|
var browserSync = require('browser-sync');
|
|
|
|
var $ = require('gulp-load-plugins')();
|
|
|
|
|
|
gulp.task('scripts-reload', function() {
|
|
return buildScripts()
|
|
.pipe(browserSync.stream());
|
|
});
|
|
|
|
gulp.task('scripts', function() {
|
|
return buildScripts();
|
|
});
|
|
|
|
function buildScripts() {
|
|
return gulp.src(path.join(conf.paths.src, '/app/**/*.js'))
|
|
.pipe($.eslint())
|
|
.pipe($.eslint.format())
|
|
.pipe($.size())
|
|
};
|