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

Add .config/karma.conf.js to the default lookup path #1387

Comments

@shannonmoeller
Copy link

As more and more tools have become best-practice when authoring npm modules, from package.json to .*rc to *file.js, the root directory of projects has become a very loud place. This dot-noise pushes README content farther and farther down the main page of git repos.

screenshot 2015-05-01 21 41 51

What if the above could optionally be simplified to the following?

screenshot 2015-05-01 21 50 12

This is a simple example and that's already about a 30% vertical space savings. I started the conversation over in the npm repo, but I'm also submitting issues to the findup, findup-sync, travis-ci and zuul repos.

@dignifiedquire
Copy link
Member

What exactly are you asking? You can do this today with karma, just pass the configFile on the command line and up you go.

@hax
Copy link

hax commented May 20, 2015

I think what this issue ask is make karma and many other utils/services add .config to lookup paths by default.

@shannonmoeller
Copy link
Author

@dignifiedquire I understand that the path can be configured, but as @hax so aptly stated, this is about adding .config to the default lookup paths. This request has been made of several other projects and many have stated they're waiting to see what others do. At this point, I'm working in my spare time to affect the change, prove it works without breaking anything, and submit PRs.

@dignifiedquire
Copy link
Member

@shannonmoeller I see. In general I don't mind adding it to the default lookup path. If someone provides a pr for this I'll consider it.

@dignifiedquire dignifiedquire changed the title .config/karma.conf.js Add .config/karma.conf.js to the default lookup path May 20, 2015
@shannonmoeller
Copy link
Author

Thanks! PR forthcoming.

@cvburgess
Copy link

Any reason the config object can't be optionally put in package.json? Web pack supports this and so does bower IIRC

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