- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 Pattern Lab 开始我们的第一个项目,但我不知道我应该为我的团队做些什么。 Twig 构建附带一个 .gitignore 文件,该文件具有以下内容:
.DS_Store
composer.lock
config/*
export/*
packages/*
public/*
source/*
vendor/*
.DS_Store
composer.lock
public/annotations/
public/css/
public/images/
public/js/
public/patternlab-components/
public/patterns/
public/
public/favicon.ico
最佳答案
GitHub 项目的维护者 dmolsen 在那里回复了我。 https://github.com/pattern-lab/patternengine-php-twig/issues/15#issuecomment-202633762
他的回应与该 repo 直接相关:
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.
关于patternlab.io - Pattern Lab 中的哪些内容应该提交到 master 分支?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36269721/
我是一名优秀的程序员,十分优秀!