Skip to content

Laravel: ignore homestead config and npm debug. #2192

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

Merged
merged 1 commit into from
Jan 29, 2017
Merged

Laravel: ignore homestead config and npm debug. #2192

merged 1 commit into from
Jan 29, 2017

Conversation

Arsfiqball
Copy link
Contributor

Reasons for making this change:

About the homestead configurations: /.idea, Homestead.json, Homestead.yaml is provided by default in newest laravel 5.3 installation.
About npm log files: laravel-elixir uses npm. If something happen (e.g failed npm install), then npm will create npm-debug.log.

Links to documentation supporting these rule changes:

https://github.com/laravel/laravel/blob/master/.gitignore
https://github.com/laravel/elixir

@@ -8,9 +8,15 @@ app/storage/
# Laravel 5 & Lumen specific
public/storage
storage/*.key
/.idea
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is related to PHPStorm, which we're tracking in Global/JetBrains.gitignore and has more specific rules than just this. Can we drop it?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yah,

Copy link
Contributor Author

@Arsfiqball Arsfiqball Nov 18, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It doesn't need to be there, it's just shiped by default with fresh laravel 5.3

Copy link
Contributor

@jayvdb jayvdb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The trailing . in the commit shortlog "Laravel: ignore homestead config and npm debug." is typically not wanted. Think of the first line as a subject of an email. Email subjects typically do not end in a .

And the two commits should be squashed into one commit.

.env.*.php
.env.php
.env

# Logs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you make this comment clearer that it's related to the use of Larvel Elixir?

Copy link
Contributor Author

@Arsfiqball Arsfiqball Jan 28, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I made this section to any log files created by system that shouldn't be published.
npm-debug.log for example, created by node.
That file can comes maybe because there was error in laravel-elixir installation.
but it's not related to the app (laravel project). It's system or node.js failure.

@shiftkey
Copy link
Member

I merged #2049 which covers the Homestead rule. @Arsfiqball please have a look at the comments about the laravel-elixir extension.

@Arsfiqball Arsfiqball closed this Jan 28, 2017
@Arsfiqball Arsfiqball reopened this Jan 28, 2017
@Arsfiqball
Copy link
Contributor Author

I decide to put npm-debug.log with vendor and node_modules.
as I said, this file is related to node.js which is used by laravel front end.
So I recomend to add it.

@shiftkey
Copy link
Member

@Arsfiqball thanks!

@shiftkey shiftkey merged commit 9b44951 into github:master Jan 29, 2017
u9E9F pushed a commit to u9E9F/gitignore that referenced this pull request Jul 8, 2017
Laravel: ignore homestead config and npm debug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants