@cparra/apexdocs 3.8.0-alpha.0 → 3.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -9
- package/dist/cli/generate.js +17 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.js +1 -1
- package/dist/{logger-Y4IyA77j.js → logger-Cr61RvjC.js} +520 -290
- package/package.json +40 -8
package/README.md
CHANGED
|
@@ -115,7 +115,8 @@ apexdocs changelog --previousVersionDir force-app-previous --currentVersionDir f
|
|
|
115
115
|
|----------------------------|-------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------|----------|
|
|
116
116
|
| `--sourceDir` | `-s` | The directory where the source files are located. | N/A | Yes |
|
|
117
117
|
| `--targetDir` | `-t` | The directory where the generated files will be placed. | `docs` | No |
|
|
118
|
-
| `--scope` | `-p` | A list of scopes to document. Values should be separated by a space, e.g --scope global public namespaceaccessible. | `global`
|
|
118
|
+
| `--scope` | `-p` | A list of scopes to document. Values should be separated by a space, e.g --scope global public namespaceaccessible. | `[global]` | No |
|
|
119
|
+
| `--customObjectVisibility` | `-v` | Controls which custom objects are documented. Values should be separated by a space. | `[public]` | No |
|
|
119
120
|
| `--defaultGroupName` | N/A | The default group name to use when a group is not specified. | `Miscellaneous` | No |
|
|
120
121
|
| `--namespace` | N/A | The package namespace, if any. If provided, it will be added to the generated files. | N/A | No |
|
|
121
122
|
| `--sortAlphabetically` | N/A | Sorts files appearing in the Reference Guide alphabetically, as well as the members of a class, interface or enum alphabetically. If false, the members will be displayed in the same order as the code. | `false` | No |
|
|
@@ -184,14 +185,15 @@ apexdocs openapi -s force-app -t docs -n MyNamespace --title "My Custom OpenApi
|
|
|
184
185
|
|
|
185
186
|
#### Flags
|
|
186
187
|
|
|
187
|
-
| Flag
|
|
188
|
-
|
|
189
|
-
| `--previousVersionDir`
|
|
190
|
-
| `--currentVersionDir`
|
|
191
|
-
| `--targetDir`
|
|
192
|
-
| `--fileName`
|
|
193
|
-
| `--scope`
|
|
194
|
-
| `--
|
|
188
|
+
| Flag | Alias | Description | Default | Required |
|
|
189
|
+
|----------------------------|-------|--------------------------------------------------------------------------------------|-------------|----------|
|
|
190
|
+
| `--previousVersionDir` | `-p` | The directory location of the previous version of the source code. | N/A | Yes |
|
|
191
|
+
| `--currentVersionDir` | `-t` | The directory location of the current version of the source code. | N/A | Yes |
|
|
192
|
+
| `--targetDir` | `-t` | The directory location where the changelog file will be generated. | `./docs/` | No |
|
|
193
|
+
| `--fileName` | N/A | The name of the changelog file to be generated. | `changelog` | No |
|
|
194
|
+
| `--scope` | N/A | The list of scope to respect when generating the changelog. | ['global'] | No |
|
|
195
|
+
| `--customObjectVisibility` | `-v` | Controls which custom objects are documented. Values should be separated by a space. | ['public'] | No |
|
|
196
|
+
| `--skipIfNoChanges` | N/A | Whether to skip generating the changelog if there are no changes. | `true` | No |
|
|
195
197
|
|
|
196
198
|
#### Sample Usage
|
|
197
199
|
|
|
@@ -309,6 +311,15 @@ export default defineMarkdownConfig({
|
|
|
309
311
|
});
|
|
310
312
|
```
|
|
311
313
|
|
|
314
|
+
You can also leverage the `exclude` property to indirectly modify things like custom metadata records you do
|
|
315
|
+
not want included in the custom metadata type object documentation.
|
|
316
|
+
|
|
317
|
+
```typescript
|
|
318
|
+
//...
|
|
319
|
+
exclude: ['**/*.md-meta.xml']
|
|
320
|
+
//...
|
|
321
|
+
```
|
|
322
|
+
|
|
312
323
|
### Excluding Tags from Appearing in the Documentation
|
|
313
324
|
|
|
314
325
|
Note: Only works for Markdown documentation.
|
package/dist/cli/generate.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
'use strict';
|
|
3
3
|
|
|
4
|
-
var logger$1 = require('../logger-
|
|
4
|
+
var logger$1 = require('../logger-Cr61RvjC.js');
|
|
5
5
|
var module$1 = require('module');
|
|
6
6
|
var cosmiconfig = require('cosmiconfig');
|
|
7
7
|
var E = require('fp-ts/Either');
|
|
@@ -70,6 +70,14 @@ const markdownOptions = {
|
|
|
70
70
|
default: logger$1.markdownDefaults.scope,
|
|
71
71
|
describe: "A list of scopes to document. Values should be separated by a space, e.g --scope global public namespaceaccessible. Annotations are supported and should be passed lowercased and without the @ symbol, e.g. namespaceaccessible auraenabled."
|
|
72
72
|
},
|
|
73
|
+
customObjectVisibility: {
|
|
74
|
+
type: "string",
|
|
75
|
+
array: true,
|
|
76
|
+
alias: "v",
|
|
77
|
+
default: logger$1.markdownDefaults.customObjectVisibility,
|
|
78
|
+
choices: ["public", "protected", "packageprotected"],
|
|
79
|
+
describe: "Controls which custom objects are documented. Values should be separated by a space."
|
|
80
|
+
},
|
|
73
81
|
defaultGroupName: {
|
|
74
82
|
type: "string",
|
|
75
83
|
default: logger$1.markdownDefaults.defaultGroupName,
|
|
@@ -172,6 +180,14 @@ const changeLogOptions = {
|
|
|
172
180
|
default: logger$1.changeLogDefaults.scope,
|
|
173
181
|
describe: "The list of scope to respect when generating the changelog. Values should be separated by a space, e.g --scope global public namespaceaccessible. Annotations are supported and should be passed lowercased and without the @ symbol, e.g. namespaceaccessible auraenabled."
|
|
174
182
|
},
|
|
183
|
+
customObjectVisibility: {
|
|
184
|
+
type: "string",
|
|
185
|
+
array: true,
|
|
186
|
+
alias: "v",
|
|
187
|
+
default: logger$1.changeLogDefaults.customObjectVisibility,
|
|
188
|
+
choices: ["public", "protected", "packageprotected"],
|
|
189
|
+
describe: "Controls which custom objects are documented. Values should be separated by a space."
|
|
190
|
+
},
|
|
175
191
|
skipIfNoChanges: {
|
|
176
192
|
type: "boolean",
|
|
177
193
|
default: logger$1.changeLogDefaults.skipIfNoChanges,
|
package/dist/index.d.ts
CHANGED
|
@@ -15,6 +15,7 @@ type CliConfigurableMarkdownConfig = {
|
|
|
15
15
|
sourceDir: string;
|
|
16
16
|
targetDir: string;
|
|
17
17
|
scope: string[];
|
|
18
|
+
customObjectVisibility: string[];
|
|
18
19
|
namespace?: string;
|
|
19
20
|
defaultGroupName: string;
|
|
20
21
|
customObjectsGroupName: string;
|
|
@@ -25,7 +26,7 @@ type CliConfigurableMarkdownConfig = {
|
|
|
25
26
|
};
|
|
26
27
|
|
|
27
28
|
type UserDefinedMarkdownConfig = {
|
|
28
|
-
targetGenerator: 'markdown'
|
|
29
|
+
targetGenerator: 'markdown';
|
|
29
30
|
excludeTags: string[];
|
|
30
31
|
exclude: string[];
|
|
31
32
|
} & CliConfigurableMarkdownConfig &
|
|
@@ -49,13 +50,14 @@ type UserDefinedChangelogConfig = {
|
|
|
49
50
|
targetDir: string;
|
|
50
51
|
fileName: string;
|
|
51
52
|
scope: string[];
|
|
53
|
+
customObjectVisibility: string[];
|
|
52
54
|
exclude: string[];
|
|
53
55
|
skipIfNoChanges: boolean;
|
|
54
56
|
} & Partial<ChangelogConfigurableHooks>;
|
|
55
57
|
|
|
56
58
|
type UserDefinedConfig = UserDefinedMarkdownConfig | UserDefinedOpenApiConfig | UserDefinedChangelogConfig;
|
|
57
59
|
|
|
58
|
-
type MetadataTypes = 'interface' | 'class' | 'enum' | 'customobject' | 'customfield';
|
|
60
|
+
type MetadataTypes = 'interface' | 'class' | 'enum' | 'customobject' | 'customfield' | 'custommetadata';
|
|
59
61
|
|
|
60
62
|
type SourceFileMetadata = {
|
|
61
63
|
filePath: string;
|