You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/docs/node-tools/providence-analytics/LocalConfiguration.md
+10-4
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,11 @@
1
1
# Node Tools >> Providence Analytics >> Local configuration ||40
2
2
3
-
The file `providence.conf.js` is read by providence cli and by the dashboard to get all
4
-
default configurations.
3
+
The Providence configuration file is read by providence cli (optional) and by the dashboard (required).
4
+
It has a few requirements:
5
+
6
+
- it must be called `providence.conf.js` or `providence.conf.mjs`
7
+
- it must be in ESM format
8
+
- it must be located in the root of a repository (under `process.cwd()`)
5
9
6
10
## Meta data
7
11
@@ -11,6 +15,7 @@ Based on the filePath of a result, a category can be added.
11
15
For example:
12
16
13
17
```js
18
+
exportdefault {
14
19
metaConfig: {
15
20
categoryConfig: [
16
21
{
@@ -29,6 +34,7 @@ For example:
29
34
},
30
35
],
31
36
},
37
+
}
32
38
```
33
39
34
40
> N.B. category info is regarded as subjective, therefore it's advised to move this away from
@@ -38,7 +44,7 @@ For example:
38
44
39
45
### referenceCollections
40
46
41
-
A list of file system paths. They can be defined relative from the current project root (`process.cwd()`) or they can be full paths.
47
+
A list of file system paths. They can be defined relative from the current project root or they can be full paths.
42
48
When a [MatchAnalyzer](../../../docs/node-tools/providence-analytics/analyzer.md) like `match-imports` or `match-subclasses` is used, the default reference(s) can be configured here. For instance: ['/path/to/@lion/form']
43
49
44
50
An example:
@@ -57,6 +63,6 @@ An example:
57
63
### searchTargetCollections
58
64
59
65
A list of file system paths. They can be defined relative from the current project root
60
-
(`process.cwd()`) or they can be full paths.
66
+
or they can be full paths.
61
67
When not defined, the current project will be the search target (this is most common when
> The example above illustrates how to run the "match-imports" analyzer for reference project 'lion-based-ui'. Note that it is possible to run other analyzers and configurations supported by providence as well. For a full overview of cli options, run `providence --help`. All supported analyzers will be viewed when running `providence analyze`
45
+
> The example above illustrates how to run the "match-imports" analyzer for reference project 'lion-based-ui'. Note that it is possible to run other analyzers and configurations supported by providence as well. For a full overview of cli options, run `npx providence --help`. All supported analyzers will be viewed when running `npx providence analyze`
46
46
47
47
You are now ready to use providence in your project. All
48
48
data will be stored in json files in the folder `./providence-output`
@@ -57,20 +57,21 @@ data will be stored in json files in the folder `./providence-output`
0 commit comments