使用分片包和 crystal 忽略什么
What to gitignore with shards packages and crystal
我在带有 Crystal 分片的 .gitignore 文件中忽略了什么?我来自 Node.js 背景,我会忽略臭名昭著的 node_modules。我最近 运行 shards install
得到了一些新文件和目录。现在,我忽略 lib/ 和 .shards/ 并将 shard.lock 保存到 VCS。
我应该知道关于这方面的任何约定吗?
您可以通过 www.gitignore.io/api/crystal
获得第一条线索
# Created by https://www.gitignore.io/api/crystal
### Crystal ###
/docs/
/lib/
/bin/
/.shards/
# Libraries don't need dependency lock
# Dependencies will be locked in application that uses them
#/shard.lock
# End of https://www.gitignore.io/api/crystal
Johannes Müller adds :
Tip: crystal init
sets up a project structure for you, including a .gitignore
file and other useful defaults.
我在带有 Crystal 分片的 .gitignore 文件中忽略了什么?我来自 Node.js 背景,我会忽略臭名昭著的 node_modules。我最近 运行 shards install
得到了一些新文件和目录。现在,我忽略 lib/ 和 .shards/ 并将 shard.lock 保存到 VCS。
我应该知道关于这方面的任何约定吗?
您可以通过 www.gitignore.io/api/crystal
# Created by https://www.gitignore.io/api/crystal
### Crystal ###
/docs/
/lib/
/bin/
/.shards/
# Libraries don't need dependency lock
# Dependencies will be locked in application that uses them
#/shard.lock
# End of https://www.gitignore.io/api/crystal
Johannes Müller adds
Tip:
crystal init
sets up a project structure for you, including a.gitignore
file and other useful defaults.