From 181ea37e0e49885b4ab3b14369dd258f74cbd494 Mon Sep 17 00:00:00 2001 From: Kelly Domico Date: Tue, 12 Jan 2016 21:36:13 -0800 Subject: [PATCH 1/3] Fix SCSS watch to include all SCSS files --- tools/gulpfile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/gulpfile.js b/tools/gulpfile.js index 9c3e9c958a..4ff9ab89cf 100644 --- a/tools/gulpfile.js +++ b/tools/gulpfile.js @@ -119,7 +119,7 @@ gulp.task('index:inject', [ 'index:copy' ], function () { gulp.task('watch', function () { gulp.watch(jsSourceFiles, [ 'js' ]); - gulp.watch(scssSourceFiles, [ 'css' ]); + gulp.watch(scssFiles, [ 'css' ]); gulp.watch(partials, [ 'html' ]); gulp.watch(paths.src + 'index.html', [ 'index:inject' ]); }); From 37e1ad099505d2fcbb2d39a74d859d995040126d Mon Sep 17 00:00:00 2001 From: Kelly Domico Date: Wed, 13 Jan 2016 07:12:34 -0800 Subject: [PATCH 2/3] Updated SCSS file watch and added polling to prevent crashing --- tools/gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/gulpfile.js b/tools/gulpfile.js index 4ff9ab89cf..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(jsSourceFiles, { interval: 1000, usePoll: true }, [ 'js' ]); gulp.watch(scssFiles, [ 'css' ]); - gulp.watch(partials, [ 'html' ]); + gulp.watch(partials, { interval: 1000, usePoll: true }, [ 'html' ]); gulp.watch(paths.src + 'index.html', [ 'index:inject' ]); }); From edcf291f89adc28526471daac1318e1cb7319c43 Mon Sep 17 00:00:00 2001 From: Kelly Domico Date: Wed, 13 Jan 2016 08:35:36 -0800 Subject: [PATCH 3/3] Updated README --- README.md | 4 ++++ 1 file changed, 4 insertions(+) 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