Skip to content

Commit 0182369

Browse files
author
Goran Mekić
committed
Live reload on backend changes
1 parent ec5e261 commit 0182369

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
app/static/
2+
app/livereload.txt
23
node_modules/
34
bower_components/

gulpfile.js

+7-1
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ global.flariorPaths = {
1313
sassGlob: path.resolve('./app/sass/**/*.scss'),
1414
javascript: path.resolve('./app/js/**/*.js*'),
1515
jsxEntry: path.resolve('./app/js/app.jsx'),
16+
backend: path.resolve('./app/livereload.txt'),
1617
css: path.resolve('./app/css')
1718
}
1819

19-
gulp.task('webserver',['sass', 'watch', 'compileJs'], function() {
20+
gulp.task('webserver',['sass', 'watch', 'compileJs', 'backend'], function() {
2021
gulp.src(flariorPaths.app)
2122
.pipe(webserver({
2223
host: '0.0.0.0',
@@ -44,9 +45,14 @@ gulp.task('compileJs', function(){
4445
.pipe(gulp.dest('./app/static/js'))
4546
});
4647

48+
gulp.task('backend', function() {
49+
50+
});
51+
4752
gulp.task('watch', function(){
4853
gulp.watch(flariorPaths.sassGlob, ['sass']);
4954
gulp.watch(flariorPaths.javascript, ['compileJs']);
55+
gulp.watch(flariorPaths.backend, ['backend']);
5056
});
5157

5258
gulp.task('default', ['webserver']);

0 commit comments

Comments
 (0)