diff --git a/README.md b/README.md index a7e6d5c6f7..e9bb7ac939 100644 --- a/README.md +++ b/README.md @@ -19,8 +19,12 @@ $ bash provision.sh ``` ## Create and start Docker container with Gulp watch +This will take a few minutes to provision. Any changes to source Javascript, SCSS or HTML files will automatically update the 'dist' folder. Be sure to stop the container before switching branches. ``` docker run -d --name stratos-ui -v $(pwd):/usr/src/app -v $(pwd)/../helion-ui-framework:/usr/src/helion-ui-framework -v $(pwd)/../helion-ui-theme:/usr/src/helion-ui-theme stratos-ui + +# Show log and see provisioning status +docker logs stratos-ui ``` ## Provision container diff --git a/tools/gulpfile.js b/tools/gulpfile.js index 9c3e9c958a..2a9c7a1bca 100644 --- a/tools/gulpfile.js +++ b/tools/gulpfile.js @@ -118,9 +118,9 @@ gulp.task('index:inject', [ 'index:copy' ], function () { gulp.task('watch', function () { - gulp.watch(jsSourceFiles, [ 'js' ]); - gulp.watch(scssSourceFiles, [ 'css' ]); - gulp.watch(partials, [ 'html' ]); + gulp.watch(jsSourceFiles, { interval: 1000, usePoll: true }, [ 'js' ]); + gulp.watch(scssFiles, [ 'css' ]); + gulp.watch(partials, { interval: 1000, usePoll: true }, [ 'html' ]); gulp.watch(paths.src + 'index.html', [ 'index:inject' ]); });