mono_repo.dart icon indicating copy to clipboard operation
mono_repo.dart copied to clipboard

Sync common files

Open donny-dont opened this issue 6 years ago • 8 comments

When working with multiple packages its a pain to keep files in sync. For example you often want the same analysis_options.yaml across packages. It would be great to have a consistent way of doing this.

donny-dont avatar Oct 21 '17 22:10 donny-dont

Other examples of files to keep in sync, .gitignore, LICENSE.

donny-dont avatar Oct 21 '17 22:10 donny-dont

you can have one .gitignore in the root directory but otherwise I agree

zoechi avatar Oct 22 '17 11:10 zoechi

It was my understanding that pub uses the .gitignore to determine what not to push

donny-dont avatar Oct 22 '17 20:10 donny-dont

Right, I remember that discussions

zoechi avatar Oct 23 '17 04:10 zoechi

I'd like to see something like this!

matanlurey avatar Oct 31 '17 05:10 matanlurey

@matanlurey so hypothetically how should this be approached?

Maybe a .mono_repo directory that has the files to sync?

donny-dont avatar Nov 01 '17 22:11 donny-dont

Yeah I guess it depends if you want to configuration or convention based.

@kevmoo what say you?

matanlurey avatar Nov 01 '17 23:11 matanlurey

Or just have an entry in mono_repo.yaml (after https://github.com/dart-lang/mono_repo/pull/29) that specifies a source project directory + files that should sync everywhere?

kevmoo avatar Nov 01 '17 23:11 kevmoo