-
Notifications
You must be signed in to change notification settings - Fork 63
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
Generators try to copy .DS_Store on OSX, if directory is non-pristine #75
Comments
Since walk-dir is being used to generate the list of files for a blue print, we should be able to change In |
Can we put the array of ignores in blueprintrc with .DS_Store as the default entry? |
I think that's a good idea. full names or patterns do you think? |
Since walk-sync supports globs makes sense to expose that directly. Simply pass the array in rc directly to walkSync. |
Passing it to walk-sync works for me, but getting that setting to the right place takes a bit of thought. And more urgently I think, we need to resolve #101 first. And then we need to figure out the best way to get settings to blueprints.
projectSettings is a God object that everybody needs a piece of. But the structure of the cli and the lack of lengthy lifetime render most concerns about God Objects moot. It also gives blueprint authors more flexibility on how they consume the settings data. some sort of |
This will be set as so.
|
With [email protected] on Node 5.7.0, running a generator is producing the following non-fatal errors (which do not seem to otherwise interfere with execution):
> redux g dumb DumbExample info: installing blueprint... error: Not writing file. File already exists at: /path/to/project/.DS_Store error: Not writing file. File already exists at: /path/to/project/src/.DS_Store error: Not writing file. File already exists at: /path/to/project/src/components/.DS_Store create: /path/to/project/src/components/DumbExample/.DS_Store create: /path/to/project/src/components/DumbExample/DumbExample.component.js create: /path/to/project/src/components/DumbExample/DumbExampleComponent.spec.js info: finished installing blueprint.
It doesn't happen at first, if I don't touch anything in
/blueprint
. But any time you use the OSX Finder to modify the file structure of a directory, it creates a.DS_Store
file. So, even if you just create an empty folder in a blueprint folder, then immediately delete it, you have a.DS_Store
. And if people use the Finder at all to take advantage of the potential to customize the blueprints... they'll have a ton of them.Thereafter, the generators try to copy all those
.DS_Store
files along with the real blueprint files, when instantiating a new module. Note that it happens at multiple levels along the path, as in the example above.Might junk be a possible solution?
The text was updated successfully, but these errors were encountered: