nerdstein / nerdstein-design-library

Design Library for the 2017 Nerdstein Site Redesign
6 stars 4 forks source link

[DX] Simplify the development workflow into a single gulp task #22

Closed daggerhart closed 7 years ago

daggerhart commented 7 years ago

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:

  1. gulp sass
  2. php core/console --server
  3. 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:

  1. gulp
  2. 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.

nerdstein commented 7 years ago

This is merged, closing