1
0
mirror of https://github.com/Radarr/Radarr.git synced 2024-11-04 10:02:40 +01:00

gulp watch fix

This commit is contained in:
kayone 2014-08-29 21:32:09 -07:00
parent f4b8a636b9
commit 54bdc72ffa
4 changed files with 6 additions and 13 deletions

View File

@ -5,14 +5,15 @@ var cache = require('gulp-cached');
var paths = require('./paths.js');
gulp.task('copyJs', function () {
return gulp.src([paths.src.scripts])
.pipe(cache())
return gulp.src(paths.src.scripts)
.pipe(cache('copyJs'))
.pipe(print())
.pipe(gulp.dest(paths.dest.root));
});
gulp.task('copyIndex', function () {
return gulp.src(paths.src.index)
.pipe(cache())
.pipe(cache('copyIndex'))
.pipe(gulp.dest(paths.dest.root));
});

View File

@ -7,7 +7,7 @@ var paths = require('./paths.js');
gulp.task('jshint', function () {
return gulp.src([paths.src.scripts, paths.src.exclude.libs])
.pipe(cache())
.pipe(cache('jshint'))
.pipe(jshint({
'-W030': false,
'-W064': false,

View File

@ -1,12 +1,4 @@
module.exports = {
js: [
'./app/**/*.js',
'./src/**/*.js',
'!./**/libs/**',
'!./**/vendor/**',
'!./**/templates.js'
],
src: {
root: './src/UI/',
templates: './src/UI/**/*.hbs',

View File

@ -10,7 +10,7 @@ require('./less.js');
require('./copy.js');
gulp.task('watch', ['jshint', 'handlebars', 'less', 'copyJs'], function () {
gulp.task('watch', ['jshint', 'handlebars', 'less', 'copyJs','copyIndex', 'copyContent'], function () {
gulp.watch([paths.src.scripts, paths.src.exclude.libs], ['jshint', 'copyJs']);
gulp.watch(paths.src.templates, ['handlebars']);
gulp.watch([paths.src.less, paths.src.exclude.libs], ['less']);