Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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

This comment has been minimized.

Show comment Hide comment
@jeremyrcox

jeremyrcox Apr 21, 2016

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.

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

This comment has been minimized.

Show comment Hide comment
@aluxian

aluxian Jun 8, 2016

+1 for multiple package.json files

aluxian commented Jun 8, 2016

+1 for multiple package.json files

@AlexisNo

This comment has been minimized.

Show comment Hide comment
@AlexisNo

AlexisNo Apr 19, 2017

+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.

+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

This comment has been minimized.

Show comment Hide comment
@gmadole

gmadole Aug 9, 2017

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

gmadole commented Aug 9, 2017

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

@Joatin

This comment has been minimized.

Show comment Hide comment
@Joatin

Joatin Jan 25, 2018

+1 multiple would be great for monorepos!

Joatin commented Jan 25, 2018

+1 multiple would be great for monorepos!

@wmorgan69

This comment has been minimized.

Show comment Hide comment
@wmorgan69

wmorgan69 Feb 20, 2018

+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.

+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