Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@bithoundio
Last active February 20, 2018 22:41
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bithoundio/d1652d6ab3908316c104 to your computer and use it in GitHub Desktop.
Save bithoundio/d1652d6ab3908316c104 to your computer and use it in GitHub Desktop.
Specifying a custom package.json location for your project using .bithoundrc.
{
"ignore": [
"**/deps/**",
"**/node_modules/**",
"**/thirdparty/**",
"**/third_party/**",
"**/vendor/**",
"**/**-min-**",
"**/**-min.**",
"**/**.min.**",
"**/**jquery.?(ui|effects)-*.*.?(*).?(cs|j)s",
"**/**jquery-*.*.?(*).?(cs|j)s",
"**/prototype?(*).js",
"**/mootools*.*.*.js",
"**/dojo.js",
"**/MochiKit.js",
"**/yahoo-*.js",
"**/yui*.js",
"**/ckeditor*.js",
"**/tiny_mce*.js",
"**/tiny_mce/?(langs|plugins|themes|utils)/**",
"**/MathJax/**",
"**/shBrush*.js",
"**/shCore.js",
"**/shLegacy.js",
"**/modernizr.custom.?(*).js",
"**/knockout-*.*.*.debug.js",
"**/extjs/*.js",
"**/extjs/*.xml",
"**/extjs/*.txt",
"**/extjs/*.html",
"**/extjs/*.properties",
"**/extjs/.sencha",
"**/extjs/docs/**",
"**/extjs/builds/**",
"**/extjs/cmd/**",
"**/extjs/examples/**",
"**/extjs/locale/**",
"**/extjs/packages/**",
"**/extjs/plugins/**",
"**/extjs/resources/**",
"**/extjs/src/**",
"**/extjs/welcome/**",
"bower_components/**"
],
"test": [
"**/test/**",
"**/tests/**",
"**/spec/**",
"**/specs/**"
],
"packageJsonLocation": "foo/package.json"
}
@jeremyrcox
Copy link

Is there a way to include two package.json files? I have a project with client and server directories. Each has their own package.json.

@aluxian
Copy link

aluxian commented Jun 8, 2016

+1 for multiple package.json files

@AlexisNo
Copy link

+1 for multiple package.json files. I use a monorepo to host several npm packages of the same project. Another solution would be the possibility to have a bithound report for each package instead of one for the whole repo.

@gmadole
Copy link

gmadole commented Aug 9, 2017

+1 multiple package.json file support would be great!

@Joatin
Copy link

Joatin commented Jan 25, 2018

+1 multiple would be great for monorepos!

@wmorgan69
Copy link

+1 for multiple package.json files.
In it's current format looks like it won't work for us. We have multiple microservices in one repository.

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