Skip to content

Conversation

@AinuraAliieva
Copy link
Contributor

To allow developers working on project without any inconveniences.

Different OS have handled line endings and environment variables
differently. Also each IDE has system files that should not be in
repository. So now we manage this points using cross-env package,
.editorconfig and .gitignore. And we can working on project in
different environments (such as windows and jetbrains IDE's)

.gitignore Outdated
# misc
.DS_Store
npm-debug.log
/.idea
Copy link
Member

Choose a reason for hiding this comment

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

Good practice is to have a newline at end of file. You see, Git warns you about this. :) Could you please add a proper option for .editorconfig to ensure it? :)

Seems like this one:

insert_final_newline = true

Copy link
Member

Choose a reason for hiding this comment

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

And then save file once again to make sure newline is inserted here and Git doesn't show a warning.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated with new line and proper option in .editorconfig

@@ -0,0 +1,6 @@
# http://editorconfig.org
Copy link
Member

Choose a reason for hiding this comment

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

Just wonder, does .editorconfig popular in JS world? It's rarely used in Python or any other world. :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure) You can see some of them here (eg react, webpack etc.)

To allow developers working on project without any inconveniences.

Different OS have handled line endings and environment variables
differently. Also each IDE has system files that should not be in
repository. So now we manage this points using cross-env package,
.editorconfig and .gitignore. And we can working on project in
different environments (such as windows and jetbrains IDE's)
Copy link
Member

@ikalnytskyi ikalnytskyi left a comment

Choose a reason for hiding this comment

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

Thank you very much!

@ikalnytskyi ikalnytskyi merged commit c123122 into master Jan 3, 2018
@ikalnytskyi ikalnytskyi deleted the cross-env branch January 3, 2018 19:28
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