Skip to content

Commit

Permalink
Merge pull request #68 from codebude/master
Browse files Browse the repository at this point in the history
Fixed (gulp) connect-livereload
  • Loading branch information
modularcoder authored Aug 16, 2017
2 parents cb66187 + 216bb5a commit 1d88a30
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 9 deletions.
3 changes: 2 additions & 1 deletion build/tasks/app-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@ var config = require('../config');

module.exports.task = function(gulp, plugins, paths) {
gulp.src(paths.app.assets)
.pipe(gulp.dest(config.destDir + "/assets"));
.pipe(gulp.dest(config.destDir + "/assets"))
.pipe(plugins.connect.reload());
};
5 changes: 4 additions & 1 deletion build/tasks/app-pages.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ module.exports.task = function(gulp, plugins, paths) {
}))

// Output
.pipe(gulp.dest(config.destDir));
.pipe(gulp.dest(config.destDir))

//Live-Reload
.pipe(plugins.connect.reload());

};

Expand Down
3 changes: 2 additions & 1 deletion build/tasks/app-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ var config = require('../config');
module.exports.task = function(gulp, plugins, paths) {
gulp.src(paths.app.scripts)
.pipe(plugins.concat('app.js'))
.pipe(gulp.dest(config.destDir + '/js'));
.pipe(gulp.dest(config.destDir + '/js'))
.pipe(plugins.connect.reload());
};
3 changes: 2 additions & 1 deletion build/tasks/app-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ module.exports.task = function(gulp, plugins, paths) {
.on('error', plugins.sass.logError)
)
.pipe(plugins.autoprefixer())
.pipe(gulp.dest(config.destDir + '/css'));
.pipe(gulp.dest(config.destDir + '/css'))
.pipe(plugins.connect.reload()).on( 'error', plugins.sass.logError );
};
3 changes: 2 additions & 1 deletion build/tasks/app-themes.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ module.exports.task = function(gulp, plugins, paths) {
.on('error', plugins.sass.logError)
)
.pipe(plugins.autoprefixer())
.pipe(gulp.dest(config.destDir + '/css'));
.pipe(gulp.dest(config.destDir + '/css'))
.pipe(plugins.connect.reload());

});

Expand Down
6 changes: 4 additions & 2 deletions build/tasks/vendor-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ var config = require('../config');

module.exports.task = function(gulp, plugins, paths) {
gulp.src(paths.vendor.assets)
.pipe(gulp.dest(config.destDir + "/assets"));
.pipe(gulp.dest(config.destDir + "/assets"))
.pipe(plugins.connect.reload());

gulp.src(paths.vendor.fonts)
.pipe(gulp.dest(config.destDir + "/fonts"));
.pipe(gulp.dest(config.destDir + "/fonts"))
.pipe(plugins.connect.reload());
};
3 changes: 2 additions & 1 deletion build/tasks/vendor-scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,6 @@ var config = require('../config');
module.exports.task = function(gulp, plugins, paths) {
gulp.src(paths.vendor.scripts)
.pipe(plugins.concat('vendor.js'))
.pipe(gulp.dest(config.destDir + "/js"));
.pipe(gulp.dest(config.destDir + "/js"))
.pipe(plugins.connect.reload());
};
3 changes: 2 additions & 1 deletion build/tasks/vendor-styles.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,6 @@ var path = require('path');
module.exports.task = function(gulp, plugins, paths) {
gulp.src(paths.vendor.styles)
.pipe(plugins.concat('vendor.css'))
.pipe(gulp.dest(config.destDir + "/css"));
.pipe(gulp.dest(config.destDir + "/css"))
.pipe(plugins.connect.reload()).on( 'error', plugins.sass.logError );
};

0 comments on commit 1d88a30

Please # to comment.