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

Pass along gaze watch parameters so that there is more control over file watching. #6

Merged
merged 4 commits into from
Apr 19, 2018

Conversation

robblovell
Copy link

The use case is described in issue #5

Robb Lovell added 2 commits July 11, 2017 12:10
Copy link
Owner

@alexgorbatchev alexgorbatchev left a comment

Choose a reason for hiding this comment

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

Great job, thank you! Just a few minor NITs

index.js Outdated
@@ -16,7 +17,8 @@ function startWatching({ watch, match, exec }, { verbose }) {
return new Promise(resolve => {
match = match || [ '**/*' ];
const prefix = [ list('watch', watch), list('match', match), list('exec', exec) ].join(' ');
const gaze = new Gaze(watch);
console.log(JSON.stringify(options.gazeOptions));
Copy link
Owner

Choose a reason for hiding this comment

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

Could you please use log() function instead of console.log()? I would like to keep ability to have it completely silent.

Copy link
Author

Choose a reason for hiding this comment

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

will do.

Copy link
Author

Choose a reason for hiding this comment

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

I will remove this completely.

package.json Outdated
@@ -1,6 +1,6 @@
{
"name": "run-when-changed",
"version": "2.0.2",
"version": "2.1.0",
Copy link
Owner

Choose a reason for hiding this comment

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

I can rev the version and create a git tag at the same time when I publish.

Copy link
Author

Choose a reason for hiding this comment

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

okay, I will move this back..

@robblovell
Copy link
Author

Okay, I have updated the code based on your suggestions.

  1. Removed console.log
  2. moved back to version 2.0.2 for the build system to do its magic.

@robblovell
Copy link
Author

Should this pull request be merged? The asked for changes have been made.

Cheers!

@alexgorbatchev alexgorbatchev merged commit 7b68977 into alexgorbatchev:master Apr 19, 2018
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.

2 participants