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

bundle.js ignored #743

Closed
dcousens opened this issue Jan 11, 2017 · 8 comments

Comments

@dcousens
Copy link
Member

commented Jan 11, 2017

I understand this is probably because most people use bundle.js for packaging... but oh god this took me 20 minutes of time wasting to figure out what was going wrong with my editor.

Do we need to special case this?
Doesn't everyone separate their source folders from distribution anyway?
In which case, if this is an issue, they can just do standard src/.

All the other defaults:

node_modules/*, .min.js, bundle.js, coverage/

I don't think would ever get in the way.

@dcousens dcousens added the question label Jan 11, 2017

@feross

This comment has been minimized.

Copy link
Member

commented Jan 11, 2017

Sorry you lost 20 minutes. That's always frustrating. 😢

I have lots of repos that generate bundle.js and I usually never have a src/ folder for small projects. I personally appreciate having bundle.js as a default ignore. I've also never heard about anyone else running into this issue before.

That said, I agree that out of all the defaults bundle.js is the only one that could theoretically cause trouble if someone accidentally uses that name. The other ignores will almost never be a problem.

I think the usefulness outweighs the potential for confusion given the prevalence of bundle.js as an output name for browserify/webpack projects, but I'm open to other people's thoughts.

@dcousens

This comment has been minimized.

Copy link
Member Author

commented Jan 11, 2017

@feross I know it would be a bit special case like, but maybe we could not ignore if the file is deliberately specified on the command line?

standard bundle.js

Just being a no-op was especially confusing, but alas.
Although it is immediately obvious now... it wasn't then.

@dcousens

This comment has been minimized.

Copy link
Member Author

commented Jan 11, 2017

Or perhaps show what files are ignored in verbose mode?

@feross

This comment has been minimized.

Copy link
Member

commented Jan 12, 2017

@dcousens Yeah, these are both reasonable suggestions. Right now there's no way to override the built-in ignores.

@feross feross added feature request and removed question labels Jan 12, 2017

@dcousens

This comment has been minimized.

Copy link
Member Author

commented Feb 10, 2017

@feross ha, bitten by this again since I started using the beta (had previously removed the ignore from my globally installed version).

@dcousens dcousens closed this Mar 19, 2017

@feross feross added enhancement and removed enhancement labels May 10, 2018

@jsonmaur

This comment has been minimized.

Copy link

commented Jul 23, 2018

I agree bundle.js shouldn't be ignored by default. I was trying to lint source code for a node project and had a file with that name that was being overlooked without me even knowing about it. Naming a webpack/browserify output file bundle.js is just a weird front-end trend (similar to naming the output folder dist) that doesn't really have any reasoning behind it. I don't think it should be assumed as standard practice. If you are outputting to bundle.js, it should be in your gitignore anyway, which will make standardjs ignore it.

Maybe it would make more sense to ignore files ending in .bundle.js?

@lock lock bot locked as resolved and limited conversation to collaborators Oct 21, 2018

@feross feross reopened this Aug 13, 2019

@feross

This comment has been minimized.

Copy link
Member

commented Aug 13, 2019

I'm re-opening this issue as @jsonmaur's argument that folks using bundle.js are likely to have it listed in their .gitignore makes sense to me. I'd like to run a test to see how many repos this change would break.

@feross feross added this to the standard 14 milestone Aug 13, 2019

@standard standard unlocked this conversation Aug 13, 2019

@feross

This comment has been minimized.

Copy link
Member

commented Aug 14, 2019

No repos failed when I removed bundle.js from the default list of ignored files. Let's ship this in standard 14. 💪

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants
You can’t perform that action at this time.