Rather than require the developer to run multiple commands, let's simplify this into a single gulp task that combines the following steps, and improves them by leveraging "watch" techniques where possible:
gulp sass
php core/console --server
php core/console --generate
An immediate improvement is to combine 2 & 3 into php core/console --server --with-watch.
Another improvement would be to change 1 to suggest the default gulp task which leverages the already-existing "watch" task: gulp
Resulting in:
gulp
php core/console --server --with-watch
This can be combined further by using the gulp-shell module, and creating a new gulp task that starts the pattern lab server as part of the default gulp task, resulting in a single command of gulp to handle all of the above.
Rather than require the developer to run multiple commands, let's simplify this into a single gulp task that combines the following steps, and improves them by leveraging "watch" techniques where possible:
gulp sass
php core/console --server
php core/console --generate
An immediate improvement is to combine 2 & 3 into
php core/console --server --with-watch
.Another improvement would be to change 1 to suggest the default gulp task which leverages the already-existing "watch" task:
gulp
Resulting in:
gulp
php core/console --server --with-watch
This can be combined further by using the
gulp-shell
module, and creating a new gulp task that starts the pattern lab server as part of the default gulp task, resulting in a single command ofgulp
to handle all of the above.