@appium/docutils 0.2.1 → 0.2.2

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.
Files changed (133) hide show
  1. package/build/lib/builder/reference.d.ts +1 -1
  2. package/build/lib/builder/reference.d.ts.map +1 -1
  3. package/build/lib/cli/command/build.d.ts +174 -176
  4. package/build/lib/cli/command/build.d.ts.map +1 -1
  5. package/build/lib/cli/command/build.js +3 -5
  6. package/build/lib/cli/command/build.js.map +1 -1
  7. package/build/lib/cli/command/init.d.ts +139 -141
  8. package/build/lib/cli/command/init.d.ts.map +1 -1
  9. package/build/lib/cli/command/init.js +3 -5
  10. package/build/lib/cli/command/init.js.map +1 -1
  11. package/build/lib/cli/command/validate.d.ts +63 -65
  12. package/build/lib/cli/command/validate.d.ts.map +1 -1
  13. package/build/lib/cli/command/validate.js +3 -5
  14. package/build/lib/cli/command/validate.js.map +1 -1
  15. package/build/lib/cli/config.js +1 -1
  16. package/build/lib/cli/config.js.map +1 -1
  17. package/build/lib/init.d.ts +13 -22
  18. package/build/lib/init.d.ts.map +1 -1
  19. package/build/lib/logger.js +0 -4
  20. package/build/lib/logger.js.map +1 -1
  21. package/build/lib/model.d.ts +6 -10
  22. package/build/lib/model.d.ts.map +1 -1
  23. package/build/lib/scaffold.d.ts +5 -5
  24. package/build/lib/scaffold.d.ts.map +1 -1
  25. package/build/lib/util.d.ts +2 -2
  26. package/build/lib/util.d.ts.map +1 -1
  27. package/build/lib/validate.d.ts +1 -1
  28. package/build/lib/validate.d.ts.map +1 -1
  29. package/lib/cli/command/build.ts +4 -7
  30. package/lib/cli/command/init.ts +4 -7
  31. package/lib/cli/command/validate.ts +6 -7
  32. package/lib/logger.ts +6 -11
  33. package/lib/model.ts +3 -9
  34. package/package.json +8 -8
  35. package/requirements.txt +1 -1
  36. package/build/lib/build/mkdocs.d.ts +0 -58
  37. package/build/lib/build/mkdocs.d.ts.map +0 -1
  38. package/build/lib/build/mkdocs.js +0 -80
  39. package/build/lib/build/mkdocs.js.map +0 -1
  40. package/build/lib/build/typedoc.d.ts +0 -55
  41. package/build/lib/build/typedoc.d.ts.map +0 -1
  42. package/build/lib/build/typedoc.js +0 -120
  43. package/build/lib/build/typedoc.js.map +0 -1
  44. package/build/lib/build-api.d.ts +0 -18
  45. package/build/lib/build-api.d.ts.map +0 -1
  46. package/build/lib/build-api.js +0 -75
  47. package/build/lib/build-api.js.map +0 -1
  48. package/build/lib/build.d.ts +0 -21
  49. package/build/lib/build.d.ts.map +0 -1
  50. package/build/lib/build.js +0 -71
  51. package/build/lib/build.js.map +0 -1
  52. package/build/lib/cli/command/deploy.d.ts +0 -1
  53. package/build/lib/cli/command/deploy.d.ts.map +0 -1
  54. package/build/lib/cli/command/deploy.js +0 -2
  55. package/build/lib/cli/command/deploy.js.map +0 -1
  56. package/build/lib/cli/command-init.d.ts +0 -143
  57. package/build/lib/cli/command-init.d.ts.map +0 -1
  58. package/build/lib/cli/command-init.js +0 -164
  59. package/build/lib/cli/command-init.js.map +0 -1
  60. package/build/lib/cli/command-validate.d.ts +0 -52
  61. package/build/lib/cli/command-validate.d.ts.map +0 -1
  62. package/build/lib/cli/command-validate.js +0 -66
  63. package/build/lib/cli/command-validate.js.map +0 -1
  64. package/build/lib/cli/init.d.ts +0 -143
  65. package/build/lib/cli/init.d.ts.map +0 -1
  66. package/build/lib/cli/init.js +0 -164
  67. package/build/lib/cli/init.js.map +0 -1
  68. package/build/lib/cli/options.d.ts +0 -1
  69. package/build/lib/cli/options.d.ts.map +0 -1
  70. package/build/lib/cli/options.js +0 -2
  71. package/build/lib/cli/options.js.map +0 -1
  72. package/build/lib/cli/validate.d.ts +0 -1
  73. package/build/lib/cli/validate.d.ts.map +0 -1
  74. package/build/lib/cli/validate.js +0 -2
  75. package/build/lib/cli/validate.js.map +0 -1
  76. package/build/lib/cli.d.ts +0 -10
  77. package/build/lib/cli.d.ts.map +0 -1
  78. package/build/lib/cli.js +0 -328
  79. package/build/lib/cli.js.map +0 -1
  80. package/build/lib/init-task.d.ts +0 -49
  81. package/build/lib/init-task.d.ts.map +0 -1
  82. package/build/lib/init-task.js +0 -95
  83. package/build/lib/init-task.js.map +0 -1
  84. package/build/lib/io.d.ts +0 -1
  85. package/build/lib/io.d.ts.map +0 -1
  86. package/build/lib/io.js +0 -2
  87. package/build/lib/io.js.map +0 -1
  88. package/build/lib/mkdocs.d.ts +0 -58
  89. package/build/lib/mkdocs.d.ts.map +0 -1
  90. package/build/lib/mkdocs.js +0 -77
  91. package/build/lib/mkdocs.js.map +0 -1
  92. package/build/lib/nav.d.ts +0 -47
  93. package/build/lib/nav.d.ts.map +0 -1
  94. package/build/lib/nav.js +0 -132
  95. package/build/lib/nav.js.map +0 -1
  96. package/build/lib/test.d.ts +0 -9
  97. package/build/lib/test.d.ts.map +0 -1
  98. package/build/lib/test.js +0 -2
  99. package/build/lib/test.js.map +0 -1
  100. package/build/lib/typedoc.d.ts +0 -55
  101. package/build/lib/typedoc.d.ts.map +0 -1
  102. package/build/lib/typedoc.js +0 -122
  103. package/build/lib/typedoc.js.map +0 -1
  104. package/build/lib/types.d.ts +0 -52
  105. package/build/lib/types.d.ts.map +0 -1
  106. package/build/lib/types.js +0 -7
  107. package/build/lib/types.js.map +0 -1
  108. package/build/lib/validation/base-validator.d.ts +0 -218
  109. package/build/lib/validation/base-validator.d.ts.map +0 -1
  110. package/build/lib/validation/base-validator.js +0 -453
  111. package/build/lib/validation/base-validator.js.map +0 -1
  112. package/build/lib/validation/mkdocs-validator.d.ts +0 -5
  113. package/build/lib/validation/mkdocs-validator.d.ts.map +0 -1
  114. package/build/lib/validation/mkdocs-validator.js +0 -54
  115. package/build/lib/validation/mkdocs-validator.js.map +0 -1
  116. package/build/lib/validation/python-validator.d.ts +0 -1
  117. package/build/lib/validation/python-validator.d.ts.map +0 -1
  118. package/build/lib/validation/python-validator.js +0 -2
  119. package/build/lib/validation/python-validator.js.map +0 -1
  120. package/build/lib/validation/python.d.ts +0 -1
  121. package/build/lib/validation/python.d.ts.map +0 -1
  122. package/build/lib/validation/python.js +0 -2
  123. package/build/lib/validation/python.js.map +0 -1
  124. package/build/lib/validation/validate.d.ts +0 -221
  125. package/build/lib/validation/validate.d.ts.map +0 -1
  126. package/build/lib/validation/validate.js +0 -508
  127. package/build/lib/validation/validate.js.map +0 -1
  128. package/build/lib/validation/validator.d.ts +0 -220
  129. package/build/lib/validation/validator.d.ts.map +0 -1
  130. package/build/lib/validation/validator.js +0 -470
  131. package/build/lib/validation/validator.js.map +0 -1
  132. package/build/test/unit/mike.spec.js +0 -17
  133. package/build/test/unit/mike.spec.js.map +0 -1
@@ -1,47 +0,0 @@
1
- /**
2
- * Handles updating/adding the `nav` property of `mkdocs.yml`, based on the output of `typedoc`;
3
- * specifically, the command documentation generated by `@appium/typedoc-plugin-appium`.
4
- *
5
- * @module
6
- */
7
- /**
8
- * Update the `nav` property of `mkdocs.yml` with a list of "command" files generated by TypeDoc via `@appium/typedoc-plugin-appium`
9
- * @param opts - Options
10
- * @todo implement `dryRun` option
11
- */
12
- export declare function updateNav<S extends string>({ cwd, mkdocsYml: mkDocsYmlPath, referenceHeader, noReferenceHeader, typedocJson: typeDocJsonPath, dryRun, }?: UpdateNavOpts<S>): Promise<void>;
13
- /**
14
- * Options for {@linkcode updateNav}
15
- */
16
- export interface UpdateNavOpts<S extends string> {
17
- /**
18
- * Current working directory
19
- */
20
- cwd?: string;
21
- /**
22
- * Path to `mkdocs.yml`
23
- */
24
- mkdocsYml?: string;
25
- /**
26
- * Path to `package.json`
27
- */
28
- packageJson?: string;
29
- /**
30
- * The name of the header in `nav` to use for reference docs.
31
- */
32
- referenceHeader?: S;
33
- /**
34
- * If `true`, do not add a reference header to `nav` if one does not exist
35
- */
36
- noReferenceHeader?: boolean;
37
- /**
38
- * Path to `typedoc.json`
39
- */
40
- typedocJson?: string;
41
- /**
42
- * If `true`, do not write any files
43
- * @remarks Not yet implemented
44
- */
45
- dryRun?: boolean;
46
- }
47
- //# sourceMappingURL=nav.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nav.d.ts","sourceRoot":"","sources":["../../lib/nav.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AA4BH;;;;GAIG;AACH,wBAAsB,SAAS,CAAC,CAAC,SAAS,MAAM,EAAE,EAChD,GAAmB,EACnB,SAAS,EAAE,aAAa,EACxB,eAA6C,EAC7C,iBAAyB,EACzB,WAAW,EAAE,eAAe,EAC5B,MAAc,GACf,GAAE,aAAa,CAAC,CAAC,CAAM,iBA2HvB;AAED;;GAEG;AACH,MAAM,WAAW,aAAa,CAAC,CAAC,SAAS,MAAM;IAC7C;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,CAAC;IACpB;;OAEG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB"}
package/build/lib/nav.js DELETED
@@ -1,132 +0,0 @@
1
- "use strict";
2
- /**
3
- * Handles updating/adding the `nav` property of `mkdocs.yml`, based on the output of `typedoc`;
4
- * specifically, the command documentation generated by `@appium/typedoc-plugin-appium`.
5
- *
6
- * @module
7
- */
8
- var __importDefault = (this && this.__importDefault) || function (mod) {
9
- return (mod && mod.__esModule) ? mod : { "default": mod };
10
- };
11
- Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.updateNav = void 0;
13
- const support_1 = require("@appium/support");
14
- const lodash_1 = __importDefault(require("lodash"));
15
- const node_path_1 = __importDefault(require("node:path"));
16
- const constants_1 = require("./constants");
17
- const error_1 = require("./error");
18
- const fs_1 = require("./fs");
19
- const logger_1 = __importDefault(require("./logger"));
20
- const util_1 = require("./util");
21
- const DEFAULT_REFERENCE_HEADER = 'Reference';
22
- const log = logger_1.default.withTag('mkdocs-nav');
23
- /**
24
- * Update the `nav` property of `mkdocs.yml` with a list of "command" files generated by TypeDoc via `@appium/typedoc-plugin-appium`
25
- * @param opts - Options
26
- * @todo implement `dryRun` option
27
- */
28
- async function updateNav({ cwd = process.cwd(), mkdocsYml: mkDocsYmlPath, referenceHeader = DEFAULT_REFERENCE_HEADER, noReferenceHeader = false, typedocJson: typeDocJsonPath, dryRun = false, } = {}) {
29
- [mkDocsYmlPath, typeDocJsonPath] = await Promise.all([
30
- mkDocsYmlPath ?? (0, fs_1.findMkDocsYml)(cwd),
31
- typeDocJsonPath ?? (0, fs_1.findTypeDocJsonPath)(cwd),
32
- ]);
33
- if (!mkDocsYmlPath) {
34
- throw new error_1.DocutilsError(`Could not find ${constants_1.NAME_MKDOCS_YML} from ${cwd}; run "${constants_1.NAME_BIN} init" to create it`);
35
- }
36
- if (!typeDocJsonPath) {
37
- throw new error_1.DocutilsError(`Could not find ${constants_1.NAME_TYPEDOC_JSON} from ${cwd}; run "${constants_1.NAME_BIN} init" to create it`);
38
- }
39
- const relativePath = (0, util_1.relative)(cwd);
40
- const relMkDocsYmlPath = relativePath(mkDocsYmlPath);
41
- const typeDocJson = (0, fs_1.readTypedocJson)(typeDocJsonPath);
42
- const mkDocsYml = (await (0, fs_1.readYaml)(mkDocsYmlPath));
43
- const findRefDictIndex = lodash_1.default.partial(lodash_1.default.findIndex, lodash_1.default, lodash_1.default.overEvery([lodash_1.default.isObject, lodash_1.default.partial(lodash_1.default.has, lodash_1.default, referenceHeader)]));
44
- /**
45
- * Absolute path to `typedoc.json`
46
- */
47
- const absTypeDocJsonPath = node_path_1.default.isAbsolute(typeDocJsonPath)
48
- ? typeDocJsonPath
49
- : node_path_1.default.resolve(cwd, typeDocJsonPath);
50
- /**
51
- * Absolute path to TypeDoc's output directory (`out`)
52
- */
53
- const typeDocOutDir = node_path_1.default.resolve(node_path_1.default.dirname(absTypeDocJsonPath), typeDocJson.out ? typeDocJson.out : constants_1.DEFAULT_REL_TYPEDOC_OUT_PATH);
54
- /**
55
- * Absolute path to `mkdocs.yml`
56
- */
57
- const absMkdocsYmlPath = node_path_1.default.isAbsolute(mkDocsYmlPath)
58
- ? mkDocsYmlPath
59
- : node_path_1.default.resolve(cwd, mkDocsYmlPath);
60
- const { docs_dir: docsDir, nav = [] } = mkDocsYml;
61
- /**
62
- * Absolute path to the directory containing MkDocs input docs
63
- */
64
- const mkDocsDocsDir = node_path_1.default.resolve(node_path_1.default.dirname(absMkdocsYmlPath), docsDir ?? 'docs');
65
- /**
66
- * The dir we need to prepend to all entries within `nav`
67
- */
68
- const relReferenceDir = node_path_1.default.relative(mkDocsDocsDir, typeDocOutDir);
69
- const partitionRefArray = lodash_1.default.partialRight(lodash_1.default.partition, lodash_1.default.partialRight(lodash_1.default.startsWith, `${relReferenceDir}/`));
70
- const newRefFilepaths = [];
71
- // TODO: this doesn't respect the 'commandsDir' option for typedoc-plugin-appium. in fact,
72
- // typeDocJson does not even include it, because it's unknown. I suppose that will mean we need
73
- // to load plugins, but that means bootstrapping TypeDoc entirely just to read a `typedoc.json`
74
- // file, which is slow.
75
- const commandDir = node_path_1.default.join(typeDocOutDir, 'commands');
76
- const relCommandDir = node_path_1.default.relative(mkDocsDocsDir, commandDir);
77
- const commandDocFileEnts = await support_1.fs.readdir(commandDir, { withFileTypes: true });
78
- if (!commandDocFileEnts.length) {
79
- log.warn('No reference API docs were found in %s; skipping navigation update', commandDir);
80
- return;
81
- }
82
- for (const ent of commandDocFileEnts) {
83
- if (ent.isFile() && ent.name.endsWith('.md')) {
84
- newRefFilepaths.push(node_path_1.default.join(relCommandDir, ent.name));
85
- }
86
- }
87
- log.debug('New reference filepaths: %O', newRefFilepaths);
88
- const navUsesHeaders = noReferenceHeader || !(0, util_1.isStringArray)(nav);
89
- let shouldWriteMkDocsYml = false;
90
- let refFilepaths;
91
- let nonRefFilepaths;
92
- const refDictIdx = findRefDictIndex(nav);
93
- if (refDictIdx >= 0) {
94
- const refDict = nav[refDictIdx];
95
- const refArray = refDict[referenceHeader];
96
- [refFilepaths, nonRefFilepaths] = partitionRefArray(refArray);
97
- }
98
- else {
99
- [refFilepaths, nonRefFilepaths] = partitionRefArray(nav);
100
- }
101
- const symmetricDiff = lodash_1.default.xor(newRefFilepaths, refFilepaths);
102
- if (symmetricDiff.length) {
103
- log.debug('Difference in old nav vs new: %O', symmetricDiff);
104
- shouldWriteMkDocsYml = true;
105
- if (navUsesHeaders) {
106
- if (refDictIdx >= 0) {
107
- const res = [...nonRefFilepaths, ...newRefFilepaths];
108
- mkDocsYml.nav[refDictIdx][referenceHeader] = res;
109
- log.debug('Replaced "%s" section with %O', referenceHeader, res);
110
- }
111
- else {
112
- mkDocsYml.nav = [...nonRefFilepaths, { [referenceHeader]: newRefFilepaths }];
113
- log.debug('Added "%s" section with %O', referenceHeader, newRefFilepaths);
114
- }
115
- }
116
- else {
117
- mkDocsYml.nav = [...nonRefFilepaths, ...newRefFilepaths];
118
- log.debug('Replaced nav with %O', mkDocsYml.nav);
119
- }
120
- }
121
- if (shouldWriteMkDocsYml) {
122
- const yaml = (0, fs_1.stringifyYaml)(mkDocsYml);
123
- log.debug(yaml);
124
- await (0, fs_1.safeWriteFile)(mkDocsYmlPath, yaml, true);
125
- log.success('Updated navigation for reference documents in %s', relMkDocsYmlPath);
126
- }
127
- else {
128
- log.info('No changes to navigation for reference documents in %s', relMkDocsYmlPath);
129
- }
130
- }
131
- exports.updateNav = updateNav;
132
- //# sourceMappingURL=nav.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"nav.js","sourceRoot":"","sources":["../../lib/nav.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;;;AAEH,6CAAmC;AACnC,oDAAuB;AACvB,0DAA6B;AAC7B,2CAKqB;AACrB,mCAAsC;AACtC,6BAOc;AACd,sDAA8B;AAE9B,iCAA+C;AAE/C,MAAM,wBAAwB,GAAG,WAAW,CA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
1
- declare namespace Mike {
2
- interface MikeOpts {
3
- remote?: string;
4
- prefix?: string;
5
- branch?: string;
6
- configFile: string;
7
- }
8
- }
9
- //# sourceMappingURL=test.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test.d.ts","sourceRoot":"","sources":["../../lib/test.ts"],"names":[],"mappings":"AAAA,kBAAU,IAAI,CAAC;IACb,UAAiB,QAAQ;QACvB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,MAAM,CAAC;QAChB,UAAU,EAAE,MAAM,CAAC;KACpB;CACF"}
package/build/lib/test.js DELETED
@@ -1,2 +0,0 @@
1
- "use strict";
2
- //# sourceMappingURL=test.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"test.js","sourceRoot":"","sources":["../../lib/test.ts"],"names":[],"mappings":""}
@@ -1,55 +0,0 @@
1
- /**
2
- * Runs TypeDoc
3
- *
4
- * @module
5
- */
6
- /**
7
- * Executes TypeDoc _in the current process_
8
- *
9
- * Monkeypatches TypeDoc's homebrew "glob" implementation because it is broken
10
- * @param pkgRoot - Package root path
11
- * @param opts - TypeDoc options
12
- */
13
- export declare function runTypedoc(pkgRoot: string, opts: Record<string, string>): Promise<void>;
14
- /**
15
- * Options for {@linkcode buildReference}
16
- */
17
- export interface BuildReferenceOptions {
18
- /**
19
- * Path to `typedoc.json`
20
- */
21
- typedocJson?: string;
22
- /**
23
- * Current working directory
24
- */
25
- cwd?: string;
26
- /**
27
- * Path to `package.json`
28
- */
29
- packageJson?: string;
30
- /**
31
- * Path to `tsconfig.json`
32
- */
33
- tsconfigJson?: string;
34
- /**
35
- * "Title" for generated docs; this corresponds to {@linkcode typedoc.TypeDocOptionMap.name}
36
- */
37
- title?: string;
38
- /**
39
- * This is here because we pass it thru to TypeDoc
40
- */
41
- logLevel?: LogLevelName;
42
- }
43
- /**
44
- * Log level names as supported by this package
45
- *
46
- * Used to convert our log level to TypeDoc's
47
- */
48
- declare type LogLevelName = 'debug' | 'info' | 'error' | 'warn';
49
- /**
50
- * Build reference documentation via TypeDoc
51
- * @param opts - Options
52
- */
53
- export declare function buildReference({ typedocJson: typeDocJsonPath, cwd, tsconfigJson: tsconfig, logLevel, title, }?: BuildReferenceOptions): Promise<void>;
54
- export {};
55
- //# sourceMappingURL=typedoc.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typedoc.d.ts","sourceRoot":"","sources":["../../lib/typedoc.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AA+CH;;;;;;GAMG;AACH,wBAAsB,UAAU,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,iBAkB7E;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;CACzB;AAED;;;;GAIG;AACH,aAAK,YAAY,GAAG,OAAO,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC;AAexD;;;GAGG;AACH,wBAAsB,cAAc,CAAC,EACnC,WAAW,EAAE,eAAe,EAC5B,GAAmB,EACnB,YAAY,EAAE,QAAQ,EACtB,QAA4B,EAC5B,KAAK,GACN,GAAE,qBAA0B,iBAwD5B"}
@@ -1,122 +0,0 @@
1
- "use strict";
2
- /**
3
- * Runs TypeDoc
4
- *
5
- * @module
6
- */
7
- var __importDefault = (this && this.__importDefault) || function (mod) {
8
- return (mod && mod.__esModule) ? mod : { "default": mod };
9
- };
10
- Object.defineProperty(exports, "__esModule", { value: true });
11
- exports.buildReference = exports.runTypedoc = void 0;
12
- const support_1 = require("@appium/support");
13
- const glob_1 = __importDefault(require("glob"));
14
- const lodash_1 = __importDefault(require("lodash"));
15
- const node_path_1 = __importDefault(require("node:path"));
16
- const typedoc_1 = require("typedoc");
17
- const constants_1 = require("./constants");
18
- const error_1 = require("./error");
19
- const fs_1 = require("./fs");
20
- const logger_1 = __importDefault(require("./logger"));
21
- const util_1 = require("./util");
22
- const log = logger_1.default.withTag('typedoc');
23
- /**
24
- * Replaces TypeDoc's homebrew "glob" implementation with a real one
25
- *
26
- * This cannot be done via `require('typedoc')` or `import` due to the file being excluded
27
- * from the export map in its `package.json`.
28
- * @see https://github.com/TypeStrong/typedoc/issues/2151
29
- */
30
- const monkeyPatchGlob = lodash_1.default.once((pkgRoot) => {
31
- const tdFs = require(node_path_1.default.join(pkgRoot, 'node_modules', 'typedoc', 'dist', 'lib', 'utils', 'fs.js'));
32
- tdFs.glob = glob_1.default.sync;
33
- });
34
- /**
35
- * Converts an object of string values to an array of arguments for CLI
36
- */
37
- const argify = lodash_1.default.flow(lodash_1.default.entries, lodash_1.default.flatten, (list) => list.map((v, idx) => (idx % 2 === 0 ? `--${v}` : v)));
38
- /**
39
- * Executes TypeDoc _in the current process_
40
- *
41
- * Monkeypatches TypeDoc's homebrew "glob" implementation because it is broken
42
- * @param pkgRoot - Package root path
43
- * @param opts - TypeDoc options
44
- */
45
- async function runTypedoc(pkgRoot, opts) {
46
- monkeyPatchGlob(pkgRoot);
47
- log.debug('Monkeypatched TypeDoc');
48
- const args = argify(opts);
49
- log.debug('TypeDoc args:', args);
50
- const app = new typedoc_1.Application();
51
- app.options.addReader(new typedoc_1.TypeDocReader());
52
- app.options.addReader(new typedoc_1.ArgumentsReader(100, args));
53
- app.bootstrap();
54
- log.debug('Frozen options as computed by TypeDoc: %O', app.options.getRawValues());
55
- const out = app.options.getValue('out');
56
- const project = app.convert();
57
- if (project) {
58
- return await app.generateDocs(project, out);
59
- }
60
- throw new error_1.DocutilsError('TypeDoc found nothing to document. Is your package empty?');
61
- }
62
- exports.runTypedoc = runTypedoc;
63
- /**
64
- * Mapping of whatever our log level is to whatever TypeDoc's should be.
65
- *
66
- * TypeDoc's "info" is too verbose for our needs, and it's our default, so
67
- * we map it to "warn".
68
- */
69
- const TypeDocLogLevelMap = {
70
- debug: 'Verbose',
71
- info: 'Warn',
72
- warn: 'Warn',
73
- error: 'Error',
74
- };
75
- /**
76
- * Build reference documentation via TypeDoc
77
- * @param opts - Options
78
- */
79
- async function buildReference({ typedocJson: typeDocJsonPath, cwd = process.cwd(), tsconfigJson: tsconfig, logLevel = constants_1.DEFAULT_LOG_LEVEL, title, } = {}) {
80
- const stop = (0, util_1.stopwatch)('buildReference');
81
- typeDocJsonPath = typeDocJsonPath ?? (await (0, fs_1.findTypeDocJsonPath)(cwd));
82
- if (!typeDocJsonPath) {
83
- throw new error_1.DocutilsError(`Could not find ${constants_1.NAME_TYPEDOC_JSON} from ${cwd}; run "${constants_1.NAME_BIN}" to create it`);
84
- }
85
- const pkgRoot = support_1.fs.findRoot(cwd);
86
- const relativePath = (0, util_1.relative)(cwd);
87
- const relativeTypeDocJsonPath = relativePath(typeDocJsonPath);
88
- log.debug(`Using ${relativeTypeDocJsonPath} as typedoc.json`);
89
- let typeDocJson;
90
- // we only need typedoc.json to make sure we have a custom "out" path.
91
- try {
92
- typeDocJson = (0, fs_1.readTypedocJson)(typeDocJsonPath);
93
- log.debug('Contents of %s: %O', relativeTypeDocJsonPath, typeDocJson);
94
- }
95
- catch (err) {
96
- log.error(err);
97
- throw new error_1.DocutilsError(`Could not read ${relativeTypeDocJsonPath}; run "${constants_1.NAME_BIN} init" to create it`);
98
- }
99
- // if for some reason "out" is not in typedoc.json, we want to use our default path.
100
- // otherwise, typedoc's default behavior is to write to the "docs" dir, which is the same dir that
101
- // we use (by default) as a source dir for the mkdocs site--which might contain files under vcs.
102
- let out;
103
- if (!typeDocJson.out) {
104
- out = node_path_1.default.relative(node_path_1.default.dirname(typeDocJsonPath), node_path_1.default.join(pkgRoot, constants_1.DEFAULT_REL_TYPEDOC_OUT_PATH));
105
- log.debug('Overriding "out" option with %s', out);
106
- }
107
- else {
108
- out = typeDocJson.out;
109
- log.debug(`Found "out" option in ${constants_1.NAME_TYPEDOC_JSON}: ${out}`);
110
- }
111
- const extraTypedocOpts = lodash_1.default.pickBy({ tsconfig, name: title, out, logLevel: TypeDocLogLevelMap[logLevel] }, Boolean);
112
- log.debug('Extra typedoc opts: %O', extraTypedocOpts);
113
- try {
114
- await runTypedoc(pkgRoot, extraTypedocOpts);
115
- log.success('Reference docs built at %s (%dms)', node_path_1.default.isAbsolute(out) ? relativePath(out) : out, stop());
116
- }
117
- catch (err) {
118
- log.error(err);
119
- }
120
- }
121
- exports.buildReference = buildReference;
122
- //# sourceMappingURL=typedoc.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"typedoc.js","sourceRoot":"","sources":["../../lib/typedoc.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAEH,6CAAmC;AACnC,gDAAwB;AACxB,oDAAuB;AACvB,0DAA6B;AAC7B,qCAAoF;AACpF,2CAKqB;AACrB,mCAAsC;AACtC,6BAA0D;AAC1D,sDAA8B;AAC9B,iCAA2C;AAE3C,MAAM,GAAG,GAAG,gBAAM,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;AAEtC;;;;;;GAMG;AACH,MAAM,eAAe,GAAG,gBAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE;IACzC,MAAM,IAAI,GAAG,OAAO,CAAC,mBAAI,CAAC,IAAI,CAC5B,OAAO,EACP,cAAc,EACd,SAAS,EACT,MAAM,EACN,KAAK,EACL,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACH,IAAI,CAAC,IAAI,GAAG,cAAI,CAAC,IAAI,CAAC;AACxB,CAAC,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,GAA8C,gBAAC,CAAC,IAAI,CAAC,gBAAC,CAA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,IAAI,GAAW,CAAC;IAChB,IAAI,CAAC,WAAW,CAAC,GAAG,EAAE;QACpB,GAAG,GAAG,mBAAI,CAAC,QAAQ,CACjB,mBAAI,CAAC,OAAO,CAAC,eAAe,CAAC,EAC7B,mBAAI,CAAC,IAAI,CAAC,OAAO,EAAE,wCAA4B,CAAC,CACjD,CAAC;QACF,GAAG,CAAC,KAAK,CAAC,iCAAiC,EAAE,GAAG,CAAC,CAAC;KACnD;SAAM;QACL,GAAG,GAAG,WAAW,CAAC,GAAG,CAAC;QACtB,GAAG,CAAC,KAAK,CAAC,yBAAyB,6BAAiB,KAAK,GAAG,EAAE,CAAC,CAAC;KACjE;IAED,MAAM,gBAAgB,GAAG,gBAAC,CAAC,MAAM,CAC/B,EAAC,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,kBAAkB,CAAC,QAAQ,CAAC,EAAC,EACpE,OAAO,CACkB,CAAC;IAE5B,GAAG,CAAC,KAAK,CAAC,wBAAwB,EAAE,gBAAgB,CAAC,CAAC;IACtD,IAAI;QACF,MAAM,UAAU,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC;QAC5C,GAAG,CAAC,OAAO,CACT,mCAAmC,EACnC,mBAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,EAC9C,IAAI,EAAE,CACP,CAAC;KACH;IAAC,OAAO,GAAG,EAAE;QACZ,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;KAChB;AACH,CAAC;AA9DD,wCA8DC"}
@@ -1,52 +0,0 @@
1
- /**
2
- * Utility types
3
- * @module
4
- */
5
- import type { Jsonify, JsonValue, TsConfigJson as TsConfigJsonBase } from 'type-fest';
6
- import type { TypeDocOptions } from 'typedoc';
7
- /**
8
- * A `tsconfig.json` file w/ `$schema` prop
9
- */
10
- export declare type TsConfigJson = Jsonify<TsConfigJsonBase & {
11
- $schema?: string;
12
- }>;
13
- /**
14
- * A `typedoc.json` file w/ `$schema` and `extends` props
15
- */
16
- export declare type TypeDocJson = Jsonify<Partial<TypeDocOptions> & {
17
- $schema?: string;
18
- extends?: string;
19
- }>;
20
- export declare type MkDocsYml = Jsonify<{
21
- copyright?: string;
22
- dev_addr?: string;
23
- docs_dir?: string;
24
- extra_css?: string[];
25
- extra_javascript?: string[];
26
- extra_templates?: string[];
27
- extra?: Record<string, JsonValue>;
28
- hooks?: string[];
29
- INHERIT?: string;
30
- markdown_extensions?: (string | Record<string, JsonValue>)[];
31
- nav?: (string | Record<string, string>)[];
32
- plugins?: (string | Record<string, JsonValue>)[];
33
- repo_name?: string;
34
- repo_url?: string;
35
- site_dir?: string;
36
- /**
37
- * This is _actually_ required by mkdocs
38
- */
39
- site_name?: string;
40
- site_description?: string;
41
- strict?: boolean;
42
- theme?: MkDocsYmlTheme;
43
- use_directory_urls?: boolean;
44
- watch?: string[];
45
- }>;
46
- export declare type MkDocsYmlTheme = string | ({
47
- name: string;
48
- locale?: string;
49
- custom_dir?: string;
50
- static_templates?: string[];
51
- } & Record<string, JsonValue>);
52
- //# sourceMappingURL=types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../lib/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAC,OAAO,EAAE,SAAS,EAAe,YAAY,IAAI,gBAAgB,EAAC,MAAM,WAAW,CAAC;AACjG,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,SAAS,CAAC;AAE5C;;GAEG;AACH,oBAAY,YAAY,GAAG,OAAO,CAChC,gBAAgB,GAAG;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,CACF,CAAC;AAEF;;GAEG;AACH,oBAAY,WAAW,GAAG,OAAO,CAC/B,OAAO,CAAC,cAAc,CAAC,GAAG;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAA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IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,EAAE,CAAC;CAC7B,GAAG,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC,CAAC"}
@@ -1,7 +0,0 @@
1
- "use strict";
2
- /**
3
- * Utility types
4
- * @module
5
- */
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../lib/types.ts"],"names":[],"mappings":";AAAA;;;GAGG"}