Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions tools/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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' ]);
});

Expand Down