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

Ignoring all folders with a specific name (for sync), rather than having to enter all paths? #461

Closed
ghost opened this issue Nov 29, 2017 · 3 comments

Comments

@ghost
Copy link

ghost commented Nov 29, 2017

I would like to ignore any and all folders in any project called "node_modules".

I was hoping it would be OK to do something like node_modules/** or .node_modules/** or even *node_modules/** or */node_modules/** or possibly **/node_modules/**. Looks like each project folder has to be specifically added from the main project root folder, like this:

testflowtest/TestFlow/src/node_modules/**, myExpressTestTest/lambda/custom/node_modules/**, mozdemo/node_modules/**, alexa-skill-sample-nodejs-express/node_modules/**

I would love to know an easier way, if possible!

@daverickdunn
Copy link
Collaborator

  "ignore": [
    ".remote-sync.json",
    ".git/**",
    "**/test_dir/**"
  ]

Is working fine for me.

Note that in the example below, test2.txt is uploaded, but test_dir is ignored.

image

Can you give any more information about your OS, Atom, and Remote-Sync versions?

@ghost
Copy link
Author

ghost commented Nov 29, 2017

Arrrgh! Thank you for the quick reply, and with many apologies - it was only when I thought of opening the config file that I realised I had missed a comma on the config line, which of course stopped /thing/ working, which was why I thought it didn't work.

**/node_modules/** does indeed work. Thank you!

@daverickdunn
Copy link
Collaborator

No worries, I added some JSON validation at launch recently, but should probably do the same for when the package reloads, thus avoiding that all too easy mistake...

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

1 participant