@@ -0,0 +1,1367 @@
+//fetch dependencies%0Aconst gulp = require('gulp');%0Aconst browserSync = require('browser-sync');%0A%0A//create default task%0Agulp.task('default', %5B'test_files_watcher', 'source_files_watcher'%5D);%0A%0A%0A%0A//gulp task to initialize browserSync instance for Source files%0Agulp.task('source_files_watcher', function()%7B%0A%09//initialize a browser-sync instance%0A%09var browserSyncSource = browserSync.create();%0A  %09//Set up browser sync for src files%0A    browserSyncSource.init(%7B%0A  %09%09server:%7B%0A  %09%09%09baseDir: './src/html',%0A  %09%09%09index: 'index.html'%0A  %09%09%7D,%0A  %09%09port: 3011,%0A  %09%09ui:%7B%0A  %09%09%09port: 3012%0A  %09%09%7D%0A  %09%7D);%0A%0A%09//reload index.html file in the browser whenever any of the source files changes%0A%09gulp.watch(%5B%0A%09%09'./src/css/*.css',%0A%09%09'./src/html/index.html',%0A%09%09'./src/js/inverted-index.js'%5D,%0A%09%09 browserSyncSource.reload);%0A%7D);%0A%0A//gulp task to initialize browserSync instance for Test files%0Agulp.task('test_files_watcher', function()%7B%0A%09//initialize a browser-sync instance%0A%09var browserSyncJasmine = browserSync.create();%0A%09//Set up browser sync for jasmine test%0A    browserSyncJasmine.init(%7B%0A  %09%09server:%7B%0A  %09%09%09baseDir: './jasmine',%0A  %09%09%09index: 'SpecRunner.html'%0A  %09%09%7D,%0A  %09%09port: 3009,%0A  %09%09ui:%7B%0A  %09%09%09port: 3010%0A  %09%09%7D%0A  %09%7D);%0A%0A%09//reload SpecRunner.html in the browser whenever any of the jasmine spec test files change%0A%09gulp.watch('./jasmine/spec/inverted-index-test.js',  browserSyncJasmine.reload);%0A%7D);%0A

integrate gulp task runner to reload browser when src files and test files change