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

.nodemonwatch file #155

Closed
remy opened this issue Mar 26, 2013 · 17 comments
Closed

.nodemonwatch file #155

remy opened this issue Mar 26, 2013 · 17 comments

Comments

@remy
Copy link
Owner

remy commented Mar 26, 2013

@PhUU (and a little bit me) requests the inverse of the .nodemonignore file.

The ignore file would take presidence, but if the watch file was there, you wouldn't have to have complicated rules on the command line all the time.

@tgvashworth
Copy link

Or just some way to configure nodemon more specifically, like a json file.

@jcblw
Copy link

jcblw commented Mar 31, 2013

I would love this but I kinda cringe at adding another dotfile in the root of my projects. I like json @PhUU then you could eventually have .nodemonignore migrate to that file as well.

This is kinda what Im envisioning
https://gist.github.com/jacoblwe20/5279908

@remy
Copy link
Owner Author

remy commented Mar 31, 2013

@jacoblwe20 yeah, I'm not keen on adding another file either. I think some kind of automatic detection for a new format of ignore file might be on the books.

@G3z
Copy link

G3z commented Apr 8, 2013

👍 for @jacoblwe20 's JSON

@vjpr
Copy link

vjpr commented Apr 16, 2013

+1

1 similar comment
@leostera
Copy link

leostera commented May 8, 2013

👍

@pasindud
Copy link
Contributor

It would be easy if it is JSON

@pasindud
Copy link
Contributor

https://github.com/pasindud/nodemon/commit/5f863ddda2a99f83b702d80cab0946918987f5bc

I did this few minutes ago which enables you to use a nodemon.json file to include ignore files, not sure whether it is correct but it works.@remy wht do u think about this?

@remy
Copy link
Owner Author

remy commented Jun 4, 2013

I will be implementing this, but giving a lot more control to the json file - rather than just another format for ignoring.

@remy
Copy link
Owner Author

remy commented Jun 4, 2013

Very much along the lines of @jacoblwe20's gist.

@anotheri
Copy link

+1 for config file (.json) for nodemon

@pasindud
Copy link
Contributor

pull #183 i think @remy is working on adding the watch implementation

@remy
Copy link
Owner Author

remy commented Jul 21, 2013

That's right, I'm dedicating time to the work this week (starting Tuesday
if all goes to plan).

On 21 July 2013 19:29, Pasindu De Silva [email protected] wrote:

pull #183 #183 i think @remyhttps://github.com/remyis working on adding the watch implementation


Reply to this email directly or view it on GitHubhttps://github.com//issues/155#issuecomment-21314474
.

@remy
Copy link
Owner Author

remy commented Jul 31, 2013

My feeling is the .json should be a dotfile - only because it's the kind of thing you probably don't want in your github repos.

Agree? Disagree? Please say why.

@dogancelik
Copy link

I think every project should have its own config file ./nodemon.json (per project config file) and a global config file ~/.nodemon.json. I don't mind having a nodemon.json in my repo.

A per-project config file could look like this:

{
  "ignore": [
    ":/.*\\.(js|coffee)",
    "/public/*",
    "/vendor/**.js"
  ]
}

And a global config file could look like this:

{
  "ignore": [
    "/.git/*"
    "README*",
    "LICENSE"
  ]
}

@jcblw
Copy link

jcblw commented Aug 14, 2013

I have to say that I usually have the .nodemonignore file in my repo's if im using it. Especially when working on a collaborative project with a team that is all using nodemon, and I think you would still need to specify that you wouldn't want to track .nodemonignore file.

@remy
Copy link
Owner Author

remy commented Jan 16, 2014

No longer needed, v1.x uses a nodemon.json config file with lots of control now.

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

No branches or pull requests

9 participants