yeoman / generator-polymer

Scaffold out a Polymer project
http://polymer-project.org
926 stars 150 forks source link

Watch for changes on elements' JS files #149

Closed davej closed 9 years ago

davej commented 9 years ago

For some reason gulp serve wasn't watching elements' javascript. This fixes that.

davej commented 9 years ago

@robdodson Yes, it reloads too. Take a look at the JSHint task, it already pipes to reload.

It probably makes sense to move the reload call out of the jshint task and add it to the appropriate watcher of the serve task instead. It would be more readable and consistent with the other watch rules. I didn't want to do it myself because I wasn't sure of the reason for $.if(!browserSync.active, $.jshint.reporter('fail')) and I don't want to break anything or cause side-effects.

robdodson commented 9 years ago

Hm ok I'll look into it. Thanks!