Skip to content
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

Adding a gitignore for the Crystal language #3362

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

arschles
Copy link

@arschles arschles commented Apr 2, 2020

Reasons for making this change:

There is no current gitignore option for the Crystal language.

Links to documentation supporting these rule changes:

The crystal init command generates a .gitignore file, among others. Out of the box, it looks like the file I've added in this PR. I've copied that .gitignore source into here.

The source code for how the crystal init file is created is here.

If this is a new template:

@thegeorgeous
Copy link

5th time is the charm?

@hahwul
Copy link

hahwul commented May 1, 2023

Shards.lock is also included in the ignore when running with crystal init lib, so wouldn't it be good to include it as an comment in .gitignore?

e.g

/docs/
/lib/
/bin/
/.shards/
*.dwarf

# Write this if you create a library.
# /shard.lock

.gitignore from crystal init lib

# ...

# Libraries don't need dependency lock
# Dependencies will be locked in applications that use them
/shard.lock

Apart from this, I hope gitignore for crystal project will be applied soon 🙏🏼

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants