question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add lib to gitignore

See original GitHub issue

Issue Description

A common pattern for npm modules is to add the lib(es5) directory to the .gitignore and add the src(es6) directory to the .npmignore. Babel is an example of this pattern that also uses lerna.

More information can be found in this article: http://jamesknelson.com/writing-npm-packages-with-es6-using-the-babel-6-cli/

Issue Type

  • New Feature
  • Enhancement
  • Bug
  • Other

Expected Behavior

  • Update the .gitignore to no longer check in the lib directory.
  • We can probably remove the prepush script after this is completed.
  • Compile for travis CI tests
  • Add script which compiles before publishing https://github.com/cerner/terra-core/issues/353

Current Behavior

lib directory is included in version control

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
bjankordcommented, May 30, 2017

I updated the checkboxes in the initial comment. We still need to do the following:

  • Remove the prepush script
  • Compile for travis CI tests
0reactions
bjankordcommented, May 31, 2017

Resolved in #414

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to INCLUDE lib files inside [/Libs/x64/Release] folder in a ...
You would need to use: git add --force Libs. In order to add them in spite of the .gitignore. You can check at...
Read more >
New gitignore config ignores lib folder · Issue #3106 - GitHub
In #3091 we updated our gitignore to a suggestion from gitignore.io Unfortunately, this includes *.jar and this makes git ignore our /lib ......
Read more >
Git Ignore and .gitignore - W3Schools
Pattern Explanation/Matches Examples # text comment Lines starting with # are ignored name.file All files with the name.file /name.file /lib/name.file *.file All files withe .file extention...
Read more >
gitignore Documentation - Git
A gitignore file specifies intentionally untracked files that Git should ignore. Files already tracked by Git are not affected; see the NOTES below...
Read more >
Adding wwwroot\lib to .gitignore - CodeProject
I have a C# web application that is generating a lot of files in wwwroot\lib. This is causing a lot of changes to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found