-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(core): remove default logic that parse components for lib root p…
…ath, only according to include, and root dir exclude include in config BREAKING CHANGES: should add '' or './' to include when lib root folder is src folder
- Loading branch information
1 parent
964b12a
commit 76d1e78
Showing
12 changed files
with
161 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/** | ||
* @public | ||
*/ | ||
export class MyService {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
packages/cli/test/fixtures/docgenirc/output/.docgenirc-root-equal-source-root.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* @type {import('@docgeni/core').DocgeniConfig} | ||
*/ | ||
module.exports = { | ||
mode: 'lite', | ||
title: 'test-workspace', | ||
description: '', | ||
docsDir: 'docs', | ||
navs: [ | ||
null, | ||
{ | ||
title: 'Components', | ||
path: 'components', | ||
lib: 'lib-test', | ||
locales: {} | ||
} | ||
], | ||
libs: [ | ||
{ | ||
name: 'lib-test', | ||
rootDir: 'projects/lib-test', | ||
include: [ | ||
'' | ||
], | ||
exclude: [], | ||
apiMode: 'automatic', | ||
categories: [] | ||
} | ||
] | ||
}; |
30 changes: 30 additions & 0 deletions
30
packages/cli/test/fixtures/docgenirc/output/.docgenirc-without-lib.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* @type {import('@docgeni/core').DocgeniConfig} | ||
*/ | ||
module.exports = { | ||
mode: 'lite', | ||
title: 'test-workspace', | ||
description: '', | ||
docsDir: 'docs', | ||
navs: [ | ||
null, | ||
{ | ||
title: 'Components', | ||
path: 'components', | ||
lib: 'lib-test', | ||
locales: {} | ||
} | ||
], | ||
libs: [ | ||
{ | ||
name: 'lib-test', | ||
rootDir: 'projects/lib-test', | ||
include: [ | ||
'src' | ||
], | ||
exclude: [], | ||
apiMode: 'automatic', | ||
categories: [] | ||
} | ||
] | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters