Closed abea closed 8 years ago
If I'm correct that really only the public directory contents are rebuilt, I'd really be interested to know why the default .gitignore file ignores all the others. Can't tell if I'm missing something.
@abea -
The .gitignore
is primarily focused on folks who use Composer to build or update their projects. If you downloaded the zip and expect that to be your own true copy then you're correct, a fair bit of the .gitignore
can be removed.
packages/
and vendor/
can definitely be removed in that scenario. They get created by the Composer build process. Just note that you'll only want one member of your team running Composer update and pushing changes to the repo. Anything else could get really messy.
Adding config/
and source/
was probably overkill on my part. It's more to make sure I don't accidentally commit something but that's not going to happen in my dev environment anymore. Feel free to take them out. I'll remove them in the future too.
I'd leave export/
in as it's similar to public/
. It's just a place to export clean patterns to and wouldn't need to be tracked. That's a new and undocumented feature.
This stuff isn't documented anywhere yet so I apologize that you're having to hack your way through all of the repos to piece it together. Thanks for asking.
Excellent! This is super helpful. Thanks, Dave. I haven't found a good post about any Pattern Lab git workflow, so I'll probably write up a post and credit your response here.
I'm starting our first project using Pattern Lab and I can't tell what I should commit for my team. The Twig build came with a .gitignore file that had the following:
It seems that at the very least,
source/*
should be committed if this is to be shared and multiple devs are to contribute. It also seems thatconfig
,packages
, andvendor
are needed for building correctly. I'm not sure whatexport
is.In
public
, I'm pretty sure I can ignore everything since it does seem to all build just fine from scratch. We can build on individual local machines as well as on the server.So is this more like what should be ignored? For a team working on it together?
Is there another workflow that I'm missing? If there's a resource about this somewhere I haven't been able to find it but I'd be happy to simply be pointed there.
Also posted to SO after posting here since I'm not sure of the level of activity here. Will update here if there's a response there.