Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LiveReload filter patterns #1706

Merged
merged 1 commit into from
Aug 20, 2014
Merged

LiveReload filter patterns #1706

merged 1 commit into from
Aug 20, 2014

Conversation

bcardarella
Copy link
Contributor

Will allow a Project to add its own patterns for which the LiveReload
server can use to ignore certain file changes.

This PR is waiting on broccolijs/broccoli-sane-watcher#10

@bcardarella
Copy link
Contributor Author

This should also solve the *.tmp & *.swp file issues people have had with the LiveReload server

@bcardarella bcardarella changed the title [WIP] LiveReload filter patterns LiveReload filter patterns Aug 20, 2014
@bcardarella
Copy link
Contributor Author

This should be good to go now that broccolijs/broccoli-sane-watcher#10 has been released

name: 'broccoli watcher',
message: 'live-reload'
});
var canTrigger = this.project.liveReloadFilterPatterns.reduce(function(bool, pattern) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It seems that this needs to either be defaulted or we need to guard against liveReleadFilterPatterns being undefined. A default project does not have one specified (at least not that I see in this PR) which means this would break live reload for existing apps.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doh, that is supposed to have a default. Adding...

Will allow a Project to add its own patterns for which the LiveReload
server can use to ignore certain file changes.
@bcardarella
Copy link
Contributor Author

@rwjblue should be all good now

@bcardarella
Copy link
Contributor Author

:shipit:

rwjblue added a commit that referenced this pull request Aug 20, 2014
@rwjblue rwjblue merged commit a7fdf14 into ember-cli:master Aug 20, 2014
@bcardarella bcardarella deleted the bc-live-reload-filter-patterns branch August 20, 2014 20:39
@bcardarella bcardarella mentioned this pull request Sep 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants