@appium/docutils 2.2.0 → 2.2.1
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/bin/appium-docs.js +0 -1
- package/build/lib/cli/index.d.ts.map +1 -1
- package/build/lib/cli/index.js +1 -2
- package/build/lib/cli/index.js.map +1 -1
- package/build/lib/fs.d.ts.map +1 -1
- package/build/lib/fs.js +7 -7
- package/build/lib/fs.js.map +1 -1
- package/build/lib/validate.d.ts.map +1 -1
- package/build/lib/validate.js +2 -3
- package/build/lib/validate.js.map +1 -1
- package/lib/cli/index.ts +2 -3
- package/lib/fs.ts +8 -8
- package/lib/validate.ts +4 -10
- package/package.json +10 -11
- package/requirements.txt +1 -1
- package/LICENSE +0 -201
- package/build/test/e2e/build.e2e.spec.d.ts +0 -6
- package/build/test/e2e/build.e2e.spec.d.ts.map +0 -1
- package/build/test/e2e/build.e2e.spec.js +0 -313
- package/build/test/e2e/build.e2e.spec.js.map +0 -1
- package/build/test/unit/util.spec.d.ts +0 -2
- package/build/test/unit/util.spec.d.ts.map +0 -1
- package/build/test/unit/util.spec.js +0 -79
- package/build/test/unit/util.spec.js.map +0 -1
package/bin/appium-docs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/cli/index.ts"],"names":[],"mappings":";AAGA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../lib/cli/index.ts"],"names":[],"mappings":";AAGA;;;GAGG;AAkBH,wBAAsB,IAAI,CAAC,IAAI,WAAwB;;;;;;;;;;GAuFtD"}
|
package/build/lib/cli/index.js
CHANGED
|
@@ -12,7 +12,6 @@ exports.main = main;
|
|
|
12
12
|
const logger_1 = require("../logger");
|
|
13
13
|
const support_1 = require("@appium/support");
|
|
14
14
|
const lodash_1 = __importDefault(require("lodash"));
|
|
15
|
-
// eslint-disable-next-line import/named
|
|
16
15
|
const read_pkg_1 = require("read-pkg");
|
|
17
16
|
const helpers_1 = require("yargs/helpers");
|
|
18
17
|
const yargs_1 = __importDefault(require("yargs/yargs"));
|
|
@@ -20,7 +19,7 @@ const constants_1 = require("../constants");
|
|
|
20
19
|
const error_1 = require("../error");
|
|
21
20
|
const command_1 = require("./command");
|
|
22
21
|
const config_1 = require("./config");
|
|
23
|
-
const pkg = (0, read_pkg_1.
|
|
22
|
+
const pkg = (0, read_pkg_1.readPackageSync)({ cwd: support_1.fs.findRoot(__dirname) });
|
|
24
23
|
const log = (0, logger_1.getLogger)('cli');
|
|
25
24
|
const IMPLICATIONS_FAILED_REGEX = /implications\s+failed:\n\s*(.+)\s->\s(.+)$/i;
|
|
26
25
|
async function main(argv = (0, helpers_1.hideBin)(process.argv)) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/cli/index.ts"],"names":[],"mappings":";;AAGA;;;GAGG;;;;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../lib/cli/index.ts"],"names":[],"mappings":";;AAGA;;;GAGG;;;;;AAkBH,oBAuFC;AAvGD,sCAAoC;AAEpC,6CAAmC;AACnC,oDAAuB;AACvB,uCAAyC;AACzC,2CAAsC;AACtC,wDAAgC;AAChC,4CAAsE;AACtE,oCAAuC;AACvC,uCAAgD;AAChD,qCAAoC;AAEpC,MAAM,GAAG,GAAG,IAAA,0BAAe,EAAC,EAAC,GAAG,EAAE,YAAE,CAAC,QAAQ,CAAC,SAAS,CAAC,EAAC,CAAC,CAAC;AAC3D,MAAM,GAAG,GAAG,IAAA,kBAAS,EAAC,KAAK,CAAC,CAAC;AAC7B,MAAM,yBAAyB,GAAG,6CAA6C,CAAC;AAEzE,KAAK,UAAU,IAAI,CAAC,IAAI,GAAG,IAAA,iBAAO,EAAC,OAAO,CAAC,IAAI,CAAC;IACrD,MAAM,MAAM,GAAG,MAAM,IAAA,mBAAU,EAAC,IAAI,CAAC,CA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;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,iBAKnE;AAmBD;;GAEG;AACH,eAAO,MAAM,iBAAiB,SAAuB,OAAO,CAAC,OAAO,CAAC,sBAiBnE,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,QAAQ,mCAsBnB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,UAAU,SACX,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,sBACjC,CAAC;AAEF;;GAEG;AACH,wBAAsB,aAAa,CAAC,UAAU,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAMxE;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa,cACP,MAAM,gBAAwB,OAAO,CAAC,SAAS,CAAC,sBAyBlE,CAAC"}
|
package/build/lib/fs.js
CHANGED
|
@@ -47,8 +47,8 @@ exports.requirePython = requirePython;
|
|
|
47
47
|
const support_1 = require("@appium/support");
|
|
48
48
|
const lodash_1 = __importDefault(require("lodash"));
|
|
49
49
|
const node_path_1 = __importDefault(require("node:path"));
|
|
50
|
-
const
|
|
51
|
-
const read_pkg_1 =
|
|
50
|
+
const package_directory_1 = require("package-directory");
|
|
51
|
+
const read_pkg_1 = require("read-pkg");
|
|
52
52
|
const YAML = __importStar(require("yaml"));
|
|
53
53
|
const constants_1 = require("./constants");
|
|
54
54
|
const error_1 = require("./error");
|
|
@@ -60,7 +60,7 @@ const log = (0, logger_1.getLogger)('fs');
|
|
|
60
60
|
*
|
|
61
61
|
* Caches result
|
|
62
62
|
*/
|
|
63
|
-
const findPkgDir = lodash_1.default.memoize(
|
|
63
|
+
const findPkgDir = lodash_1.default.memoize(package_directory_1.packageDirectory, (opts) => opts?.cwd);
|
|
64
64
|
/**
|
|
65
65
|
* Stringifies a thing into a YAML
|
|
66
66
|
* @param value Something to yamlify
|
|
@@ -88,7 +88,7 @@ const readYaml = lodash_1.default.memoize(async (filepath) => YAML.parse(await s
|
|
|
88
88
|
* @returns
|
|
89
89
|
*/
|
|
90
90
|
async function findInPkgDir(filename, cwd = process.cwd()) {
|
|
91
|
-
const pkgDir = await findPkgDir(cwd);
|
|
91
|
+
const pkgDir = await findPkgDir({ cwd });
|
|
92
92
|
if (!pkgDir) {
|
|
93
93
|
return;
|
|
94
94
|
}
|
|
@@ -103,18 +103,18 @@ async function findInPkgDir(filename, cwd = process.cwd()) {
|
|
|
103
103
|
*/
|
|
104
104
|
exports.findMkDocsYml = lodash_1.default.memoize(lodash_1.default.partial(findInPkgDir, constants_1.NAME_MKDOCS_YML));
|
|
105
105
|
async function _readPkgJson(cwd, normalize) {
|
|
106
|
-
const pkgDir = await findPkgDir(cwd);
|
|
106
|
+
const pkgDir = await findPkgDir({ cwd });
|
|
107
107
|
if (!pkgDir) {
|
|
108
108
|
throw new error_1.DocutilsError(`Could not find a ${constants_1.NAME_PACKAGE_JSON} near ${cwd}; please create it before using this utility`);
|
|
109
109
|
}
|
|
110
110
|
const pkgPath = node_path_1.default.join(pkgDir, constants_1.NAME_PACKAGE_JSON);
|
|
111
111
|
log.debug('Found `package.json` at %s', pkgPath);
|
|
112
112
|
if (normalize) {
|
|
113
|
-
const pkg = await (0, read_pkg_1.
|
|
113
|
+
const pkg = await (0, read_pkg_1.readPackage)({ cwd: pkgDir, normalize });
|
|
114
114
|
return { pkg, pkgPath };
|
|
115
115
|
}
|
|
116
116
|
else {
|
|
117
|
-
const pkg = await (0, read_pkg_1.
|
|
117
|
+
const pkg = await (0, read_pkg_1.readPackage)({ cwd: pkgDir });
|
|
118
118
|
return { pkg, pkgPath };
|
|
119
119
|
}
|
|
120
120
|
}
|
package/build/lib/fs.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fs.js","sourceRoot":"","sources":["../../lib/fs.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsEH,oCASC;AAgED,0CA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,CAAC;YAC5D,CAAC;YACD,IAAI,UAAU,CAAC,QAAQ,EAAE,CAAC;gBACxB,UAAU,CAAC,QAAQ,GAAG,mBAAI,CAAC,OAAO,CAAC,mBAAI,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;gBACnF,GAAG,CAAC,KAAK,CAAC,yBAAyB,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC;YAC5D,CAAC;YACD,SAAS,GAAG,gBAAC,CAAC,YAAY,CAAC,SAAS,EAAE,UAAU,CAAC,CAAC;YAClD,WAAW,GAAG,UAAU,CAAC,OAAO;gBAC9B,CAAC,CAAC,mBAAI,CAAC,OAAO,CAAC,mBAAI,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC,OAAO,CAAC;gBAC7D,CAAC,CAAC,SAAS,CAAC;QAChB,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC,CACF,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../lib/validate.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../lib/validate.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAIH,OAAO,EAAC,YAAY,EAAC,MAAM,aAAa,CAAC;AAEzC,OAAO,EAIL,WAAW,EAGX,WAAW,EAGZ,MAAM,aAAa,CAAC;AACrB,OAAO,EAAC,aAAa,EAAC,MAAM,SAAS,CAAC;AAGtC,OAAO,EAAY,UAAU,EAAC,MAAM,SAAS,CAAC;AAc9C;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG,OAAO,WAAW,GAAG,OAAO,WAAW,CAAC;AAErE;;;;;;;;GAQG;AACH,qBAAa,iBAAkB,SAAQ,YAAY;IACjD;;;OAGG;IACH,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAE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|| function (mod) {
|
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
11
|
exports.DocutilsValidator = void 0;
|
|
12
12
|
const support_1 = require("@appium/support");
|
|
13
|
-
const chalk_1 = __importDefault(require("chalk"));
|
|
14
13
|
const lodash_1 = __importDefault(require("lodash"));
|
|
15
14
|
const node_events_1 = require("node:events");
|
|
16
15
|
const teen_process_1 = require("teen_process");
|
|
@@ -286,12 +285,12 @@ class DocutilsValidator extends node_events_1.EventEmitter {
|
|
|
286
285
|
const msgParts = [];
|
|
287
286
|
if (missingPackages.length) {
|
|
288
287
|
msgParts.push(`The following required ${support_1.util.pluralize('package', missingPackages.length)} could not be found:\n${missingPackages
|
|
289
|
-
.map((p) =>
|
|
288
|
+
.map((p) => `- ${p.name} @ ${p.version}`)
|
|
290
289
|
.join('\n')}`);
|
|
291
290
|
}
|
|
292
291
|
if (invalidVersionPackages.length) {
|
|
293
292
|
msgParts.push(`The following required ${support_1.util.pluralize('package', invalidVersionPackages.length)} are installed, but at the wrong version:\n${invalidVersionPackages
|
|
294
|
-
.map(([expected, actual]) =>
|
|
293
|
+
.map(([expected, actual]) => `- ${expected.name} @ ${expected.version} (found ${actual.version})`)
|
|
295
294
|
.join('\n')}`);
|
|
296
295
|
}
|
|
297
296
|
if (msgParts.length) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../lib/validate.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAEH,6CAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../lib/validate.ts"],"names":[],"mappings":";AAAA;;;;GAIG;;;;;;AAEH,6CAAyC;AACzC,oDAAuB;AACvB,6CAAyC;AACzC,+CAAkC;AAClC,2CAUqB;AACrB,mCAAsC;AACtC,6BAAiF;AACjF,qCAAmC;AAGnC;;GAEG;AACH,MAAM,cAAc,GAAG,WAAW,CAAC;AAEnC;;GAEG;AACH,MAAM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AI,CAAC,EAAE,CAAC,wBAAwB,CAAC,CAAC;IACpC,CAAC;IAED;;OAEG;IACO,KAAK,CAAC,qBAAqB;QACnC,GAAG,CAAC,KAAK,CAAC,cAAc,uBAAW,UAAU,CAAC,CAAC;QAE/C,MAAM,UAAU,GAAG,IAAI,CAAC,UAAU,IAAI,CAAC,MAAM,IAAA,eAAU,GAAE,CAAC,CAAC;QAC3D,IAAI,CAAC,UAAU,EAAE,CAAC;YAChB,OAAO,IAAI,CAAC,IAAI,CAAC,kCAAsB,CAAC,CAAC;QAC3C,CAAC;QAED,IAAI,CAAC;YACH,MAAM,EAAC,MAAM,EAAC,GAAG,MAAM,IAAA,mBAAI,EAAC,UAAU,EAAE,CAAC,WAAW,CAAC,CAAC,CAAC;YACvD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,CAAC,EAAE,CAAC;gBACrC,OAAO,IAAI,CAAC,IAAI,CAAC,4CAA4C,MAAM,EAAE,CAAC,CAAC;YACzE,CAAC;QACH,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,IAAI,CAAC,IAAI,CAAC,mCAAmC,CAAC,CAAC;QACxD,CAAC;QACD,IAAI,CAAC,EAAE,CAAC,mBAAmB,CAAC,CAAC;IAC/B,CAAC;;AApVH,8CAqVC"}
|
package/lib/cli/index.ts
CHANGED
|
@@ -10,8 +10,7 @@ import {getLogger} from '../logger';
|
|
|
10
10
|
|
|
11
11
|
import {fs} from '@appium/support';
|
|
12
12
|
import _ from 'lodash';
|
|
13
|
-
|
|
14
|
-
import {sync as readPkg} from 'read-pkg';
|
|
13
|
+
import {readPackageSync} from 'read-pkg';
|
|
15
14
|
import {hideBin} from 'yargs/helpers';
|
|
16
15
|
import yargs from 'yargs/yargs';
|
|
17
16
|
import {DEFAULT_LOG_LEVEL, LogLevelMap, NAME_BIN} from '../constants';
|
|
@@ -19,7 +18,7 @@ import {DocutilsError} from '../error';
|
|
|
19
18
|
import {build, init, validate} from './command';
|
|
20
19
|
import {findConfig} from './config';
|
|
21
20
|
|
|
22
|
-
const pkg =
|
|
21
|
+
const pkg = readPackageSync({cwd: fs.findRoot(__dirname)});
|
|
23
22
|
const log = getLogger('cli');
|
|
24
23
|
const IMPLICATIONS_FAILED_REGEX = /implications\s+failed:\n\s*(.+)\s->\s(.+)$/i;
|
|
25
24
|
|
package/lib/fs.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
import {fs} from '@appium/support';
|
|
7
7
|
import _ from 'lodash';
|
|
8
8
|
import path from 'node:path';
|
|
9
|
-
import
|
|
10
|
-
import
|
|
9
|
+
import {packageDirectory} from 'package-directory';
|
|
10
|
+
import {readPackage, NormalizedPackageJson, PackageJson} from 'read-pkg';
|
|
11
11
|
import {JsonValue} from 'type-fest';
|
|
12
12
|
import * as YAML from 'yaml';
|
|
13
13
|
import {
|
|
@@ -30,7 +30,7 @@ const log = getLogger('fs');
|
|
|
30
30
|
*
|
|
31
31
|
* Caches result
|
|
32
32
|
*/
|
|
33
|
-
const findPkgDir = _.memoize(
|
|
33
|
+
const findPkgDir = _.memoize(packageDirectory, (opts) => opts?.cwd);
|
|
34
34
|
|
|
35
35
|
/**
|
|
36
36
|
* Stringifies a thing into a YAML
|
|
@@ -75,7 +75,7 @@ export async function findInPkgDir(
|
|
|
75
75
|
filename: string,
|
|
76
76
|
cwd = process.cwd(),
|
|
77
77
|
): Promise<string | undefined> {
|
|
78
|
-
const pkgDir = await findPkgDir(cwd);
|
|
78
|
+
const pkgDir = await findPkgDir({cwd});
|
|
79
79
|
if (!pkgDir) {
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
@@ -109,7 +109,7 @@ async function _readPkgJson(
|
|
|
109
109
|
cwd: string,
|
|
110
110
|
normalize?: boolean,
|
|
111
111
|
): Promise<{pkgPath: string; pkg: PackageJson | NormalizedPackageJson}> {
|
|
112
|
-
const pkgDir = await findPkgDir(cwd);
|
|
112
|
+
const pkgDir = await findPkgDir({cwd});
|
|
113
113
|
if (!pkgDir) {
|
|
114
114
|
throw new DocutilsError(
|
|
115
115
|
`Could not find a ${NAME_PACKAGE_JSON} near ${cwd}; please create it before using this utility`,
|
|
@@ -118,10 +118,10 @@ async function _readPkgJson(
|
|
|
118
118
|
const pkgPath = path.join(pkgDir, NAME_PACKAGE_JSON);
|
|
119
119
|
log.debug('Found `package.json` at %s', pkgPath);
|
|
120
120
|
if (normalize) {
|
|
121
|
-
const pkg = await
|
|
121
|
+
const pkg = await readPackage({cwd: pkgDir, normalize});
|
|
122
122
|
return {pkg, pkgPath};
|
|
123
123
|
} else {
|
|
124
|
-
const pkg = await
|
|
124
|
+
const pkg = await readPackage({cwd: pkgDir});
|
|
125
125
|
return {pkg, pkgPath};
|
|
126
126
|
}
|
|
127
127
|
}
|
|
@@ -151,7 +151,7 @@ export function writeFileString(filepath: string, content: JsonValue) {
|
|
|
151
151
|
});
|
|
152
152
|
}
|
|
153
153
|
|
|
154
|
-
type WhichFunction = (cmd: string, opts?: {nothrow: boolean}) => Promise<string|null>;
|
|
154
|
+
type WhichFunction = (cmd: string, opts?: {nothrow: boolean}) => Promise<string | null>;
|
|
155
155
|
|
|
156
156
|
/**
|
|
157
157
|
* `which` with memoization
|
package/lib/validate.ts
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import {fs, util} from '@appium/support';
|
|
8
|
-
import chalk from 'chalk';
|
|
9
8
|
import _ from 'lodash';
|
|
10
9
|
import {EventEmitter} from 'node:events';
|
|
11
10
|
import {exec} from 'teen_process';
|
|
@@ -21,12 +20,7 @@ import {
|
|
|
21
20
|
REQUIREMENTS_TXT_PATH,
|
|
22
21
|
} from './constants';
|
|
23
22
|
import {DocutilsError} from './error';
|
|
24
|
-
import {
|
|
25
|
-
findMkDocsYml,
|
|
26
|
-
isMkDocsInstalled,
|
|
27
|
-
readMkDocsYml,
|
|
28
|
-
findPython,
|
|
29
|
-
} from './fs';
|
|
23
|
+
import {findMkDocsYml, isMkDocsInstalled, readMkDocsYml, findPython} from './fs';
|
|
30
24
|
import {getLogger} from './logger';
|
|
31
25
|
import {MkDocsYml, PipPackage} from './model';
|
|
32
26
|
|
|
@@ -319,7 +313,7 @@ export class DocutilsValidator extends EventEmitter {
|
|
|
319
313
|
]));
|
|
320
314
|
} catch {
|
|
321
315
|
return this.fail(
|
|
322
|
-
`Could not find ${NAME_PIP} installation for Python at ${pythonPath}. Is it installed
|
|
316
|
+
`Could not find ${NAME_PIP} installation for Python at ${pythonPath}. Is it installed?`,
|
|
323
317
|
);
|
|
324
318
|
}
|
|
325
319
|
|
|
@@ -352,7 +346,7 @@ export class DocutilsValidator extends EventEmitter {
|
|
|
352
346
|
'package',
|
|
353
347
|
missingPackages.length,
|
|
354
348
|
)} could not be found:\n${missingPackages
|
|
355
|
-
.map((p) =>
|
|
349
|
+
.map((p) => `- ${p.name} @ ${p.version}`)
|
|
356
350
|
.join('\n')}`,
|
|
357
351
|
);
|
|
358
352
|
}
|
|
@@ -364,7 +358,7 @@ export class DocutilsValidator extends EventEmitter {
|
|
|
364
358
|
)} are installed, but at the wrong version:\n${invalidVersionPackages
|
|
365
359
|
.map(
|
|
366
360
|
([expected, actual]) =>
|
|
367
|
-
|
|
361
|
+
`- ${expected.name} @ ${expected.version} (found ${actual.version})`,
|
|
368
362
|
)
|
|
369
363
|
.join('\n')}`,
|
|
370
364
|
);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appium/docutils",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"description": "Documentation generation utilities for Appium and related projects",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"automation",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
"build",
|
|
39
39
|
"tsconfig.json",
|
|
40
40
|
"!build/tsconfig.tsbuildinfo",
|
|
41
|
+
"!build/test",
|
|
41
42
|
"requirements.txt"
|
|
42
43
|
],
|
|
43
44
|
"scripts": {
|
|
@@ -48,17 +49,15 @@
|
|
|
48
49
|
"start": "node ./build/lib/cli/index.js"
|
|
49
50
|
},
|
|
50
51
|
"dependencies": {
|
|
51
|
-
"@appium/support": "^7.0.
|
|
52
|
-
"chalk": "4.1.2",
|
|
52
|
+
"@appium/support": "^7.0.5",
|
|
53
53
|
"consola": "3.4.2",
|
|
54
|
-
"diff": "8.0.
|
|
54
|
+
"diff": "8.0.3",
|
|
55
55
|
"lilconfig": "3.1.3",
|
|
56
|
-
"lodash": "4.17.
|
|
57
|
-
"
|
|
58
|
-
"read-pkg": "
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"type-fest": "5.3.0",
|
|
56
|
+
"lodash": "4.17.23",
|
|
57
|
+
"package-directory": "8.1.0",
|
|
58
|
+
"read-pkg": "10.0.0",
|
|
59
|
+
"teen_process": "4.0.8",
|
|
60
|
+
"type-fest": "5.4.1",
|
|
62
61
|
"yaml": "2.8.2",
|
|
63
62
|
"yargs": "18.0.0",
|
|
64
63
|
"yargs-parser": "22.0.0"
|
|
@@ -70,5 +69,5 @@
|
|
|
70
69
|
"publishConfig": {
|
|
71
70
|
"access": "public"
|
|
72
71
|
},
|
|
73
|
-
"gitHead": "
|
|
72
|
+
"gitHead": "f7b20335eab4022e5cbbb627ec86866a994444f8"
|
|
74
73
|
}
|
package/requirements.txt
CHANGED
package/LICENSE
DELETED
|
@@ -1,201 +0,0 @@
|
|
|
1
|
-
Apache License
|
|
2
|
-
Version 2.0, January 2004
|
|
3
|
-
http://www.apache.org/licenses/
|
|
4
|
-
|
|
5
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
-
|
|
7
|
-
1. Definitions.
|
|
8
|
-
|
|
9
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
-
|
|
12
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
-
the copyright owner that is granting the License.
|
|
14
|
-
|
|
15
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
-
other entities that control, are controlled by, or are under common
|
|
17
|
-
control with that entity. For the purposes of this definition,
|
|
18
|
-
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
-
direction or management of such entity, whether by contract or
|
|
20
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
-
|
|
23
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
-
exercising permissions granted by this License.
|
|
25
|
-
|
|
26
|
-
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
-
including but not limited to software source code, documentation
|
|
28
|
-
source, and configuration files.
|
|
29
|
-
|
|
30
|
-
"Object" form shall mean any form resulting from mechanical
|
|
31
|
-
transformation or translation of a Source form, including but
|
|
32
|
-
not limited to compiled object code, generated documentation,
|
|
33
|
-
and conversions to other media types.
|
|
34
|
-
|
|
35
|
-
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
-
Object form, made available under the License, as indicated by a
|
|
37
|
-
copyright notice that is included in or attached to the work
|
|
38
|
-
(an example is provided in the Appendix below).
|
|
39
|
-
|
|
40
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
-
form, that is based on (or derived from) the Work and for which the
|
|
42
|
-
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
-
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
-
of this License, Derivative Works shall not include works that remain
|
|
45
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
-
the Work and Derivative Works thereof.
|
|
47
|
-
|
|
48
|
-
"Contribution" shall mean any work of authorship, including
|
|
49
|
-
the original version of the Work and any modifications or additions
|
|
50
|
-
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
-
means any form of electronic, verbal, or written communication sent
|
|
55
|
-
to the Licensor or its representatives, including but not limited to
|
|
56
|
-
communication on electronic mailing lists, source code control systems,
|
|
57
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
-
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
-
excluding communication that is conspicuously marked or otherwise
|
|
60
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
-
|
|
62
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
-
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
-
subsequently incorporated within the Work.
|
|
65
|
-
|
|
66
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
-
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
-
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
-
Work and such Derivative Works in Source or Object form.
|
|
72
|
-
|
|
73
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
-
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
-
(except as stated in this section) patent license to make, have made,
|
|
77
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
-
where such license applies only to those patent claims licensable
|
|
79
|
-
by such Contributor that are necessarily infringed by their
|
|
80
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
-
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
-
institute patent litigation against any entity (including a
|
|
83
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
-
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
-
or contributory patent infringement, then any patent licenses
|
|
86
|
-
granted to You under this License for that Work shall terminate
|
|
87
|
-
as of the date such litigation is filed.
|
|
88
|
-
|
|
89
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
-
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
-
modifications, and in Source or Object form, provided that You
|
|
92
|
-
meet the following conditions:
|
|
93
|
-
|
|
94
|
-
(a) You must give any other recipients of the Work or
|
|
95
|
-
Derivative Works a copy of this License; and
|
|
96
|
-
|
|
97
|
-
(b) You must cause any modified files to carry prominent notices
|
|
98
|
-
stating that You changed the files; and
|
|
99
|
-
|
|
100
|
-
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
-
that You distribute, all copyright, patent, trademark, and
|
|
102
|
-
attribution notices from the Source form of the Work,
|
|
103
|
-
excluding those notices that do not pertain to any part of
|
|
104
|
-
the Derivative Works; and
|
|
105
|
-
|
|
106
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
-
distribution, then any Derivative Works that You distribute must
|
|
108
|
-
include a readable copy of the attribution notices contained
|
|
109
|
-
within such NOTICE file, excluding those notices that do not
|
|
110
|
-
pertain to any part of the Derivative Works, in at least one
|
|
111
|
-
of the following places: within a NOTICE text file distributed
|
|
112
|
-
as part of the Derivative Works; within the Source form or
|
|
113
|
-
documentation, if provided along with the Derivative Works; or,
|
|
114
|
-
within a display generated by the Derivative Works, if and
|
|
115
|
-
wherever such third-party notices normally appear. The contents
|
|
116
|
-
of the NOTICE file are for informational purposes only and
|
|
117
|
-
do not modify the License. You may add Your own attribution
|
|
118
|
-
notices within Derivative Works that You distribute, alongside
|
|
119
|
-
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
-
that such additional attribution notices cannot be construed
|
|
121
|
-
as modifying the License.
|
|
122
|
-
|
|
123
|
-
You may add Your own copyright statement to Your modifications and
|
|
124
|
-
may provide additional or different license terms and conditions
|
|
125
|
-
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
-
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
-
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
-
the conditions stated in this License.
|
|
129
|
-
|
|
130
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
-
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
-
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
-
this License, without any additional terms or conditions.
|
|
134
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
-
the terms of any separate license agreement you may have executed
|
|
136
|
-
with Licensor regarding such Contributions.
|
|
137
|
-
|
|
138
|
-
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
-
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
-
except as required for reasonable and customary use in describing the
|
|
141
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
-
|
|
143
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
-
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
-
implied, including, without limitation, any warranties or conditions
|
|
148
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
-
appropriateness of using or redistributing the Work and assume any
|
|
151
|
-
risks associated with Your exercise of permissions under this License.
|
|
152
|
-
|
|
153
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
-
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
-
unless required by applicable law (such as deliberate and grossly
|
|
156
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
-
liable to You for damages, including any direct, indirect, special,
|
|
158
|
-
incidental, or consequential damages of any character arising as a
|
|
159
|
-
result of this License or out of the use or inability to use the
|
|
160
|
-
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
-
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
-
other commercial damages or losses), even if such Contributor
|
|
163
|
-
has been advised of the possibility of such damages.
|
|
164
|
-
|
|
165
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
-
or other liability obligations and/or rights consistent with this
|
|
169
|
-
License. However, in accepting such obligations, You may act only
|
|
170
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
-
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
-
defend, and hold each Contributor harmless for any liability
|
|
173
|
-
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
-
of your accepting any such warranty or additional liability.
|
|
175
|
-
|
|
176
|
-
END OF TERMS AND CONDITIONS
|
|
177
|
-
|
|
178
|
-
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
-
|
|
180
|
-
To apply the Apache License to your work, attach the following
|
|
181
|
-
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
182
|
-
replaced with your own identifying information. (Don't include
|
|
183
|
-
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
-
comment syntax for the file format. We also recommend that a
|
|
185
|
-
file or class name and description of purpose be included on the
|
|
186
|
-
same "printed page" as the copyright notice for easier
|
|
187
|
-
identification within third-party archives.
|
|
188
|
-
|
|
189
|
-
Copyright OpenJS Foundation and other contributors, https://openjsf.org/
|
|
190
|
-
|
|
191
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
-
you may not use this file except in compliance with the License.
|
|
193
|
-
You may obtain a copy of the License at
|
|
194
|
-
|
|
195
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
-
|
|
197
|
-
Unless required by applicable law or agreed to in writing, software
|
|
198
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
-
See the License for the specific language governing permissions and
|
|
201
|
-
limitations under the License.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build.e2e.spec.d.ts","sourceRoot":"","sources":["../../../test/e2e/build.e2e.spec.ts"],"names":[],"mappings":"AAAA;;;GAGG"}
|
|
@@ -1,313 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* E2E tests for the `appium-docs build` and `init` commands
|
|
4
|
-
* @module
|
|
5
|
-
*/
|
|
6
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7
|
-
if (k2 === undefined) k2 = k;
|
|
8
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
9
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
10
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
11
|
-
}
|
|
12
|
-
Object.defineProperty(o, k2, desc);
|
|
13
|
-
}) : (function(o, m, k, k2) {
|
|
14
|
-
if (k2 === undefined) k2 = k;
|
|
15
|
-
o[k2] = m[k];
|
|
16
|
-
}));
|
|
17
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
18
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
19
|
-
}) : function(o, v) {
|
|
20
|
-
o["default"] = v;
|
|
21
|
-
});
|
|
22
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
23
|
-
var ownKeys = function(o) {
|
|
24
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
25
|
-
var ar = [];
|
|
26
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
27
|
-
return ar;
|
|
28
|
-
};
|
|
29
|
-
return ownKeys(o);
|
|
30
|
-
};
|
|
31
|
-
return function (mod) {
|
|
32
|
-
if (mod && mod.__esModule) return mod;
|
|
33
|
-
var result = {};
|
|
34
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
35
|
-
__setModuleDefault(result, mod);
|
|
36
|
-
return result;
|
|
37
|
-
};
|
|
38
|
-
})();
|
|
39
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
40
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
41
|
-
};
|
|
42
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
-
const node_path_1 = __importDefault(require("node:path"));
|
|
44
|
-
const chai = __importStar(require("chai"));
|
|
45
|
-
const chai_as_promised_1 = __importDefault(require("chai-as-promised"));
|
|
46
|
-
const YAML = __importStar(require("yaml"));
|
|
47
|
-
const yargs_1 = __importDefault(require("yargs/yargs"));
|
|
48
|
-
const support_1 = require("@appium/support");
|
|
49
|
-
const builder_1 = require("../../lib/builder");
|
|
50
|
-
const init_1 = require("../../lib/init");
|
|
51
|
-
const fs_1 = require("../../lib/fs");
|
|
52
|
-
const constants_1 = require("../../lib/constants");
|
|
53
|
-
const command_1 = require("../../lib/cli/command");
|
|
54
|
-
chai.use(chai_as_promised_1.default);
|
|
55
|
-
const { expect } = chai;
|
|
56
|
-
/**
|
|
57
|
-
* Helper function to create a project directory with package.json
|
|
58
|
-
*/
|
|
59
|
-
async function createProjectDir(testDir, subdir, packageJson) {
|
|
60
|
-
const projectDir = node_path_1.default.join(testDir, subdir);
|
|
61
|
-
await support_1.fs.mkdirp(projectDir);
|
|
62
|
-
await support_1.fs.writeFile(node_path_1.default.join(projectDir, constants_1.NAME_PACKAGE_JSON), JSON.stringify(packageJson, null, 2), 'utf8');
|
|
63
|
-
return projectDir;
|
|
64
|
-
}
|
|
65
|
-
/**
|
|
66
|
-
* Helper function to create a minimal mkdocs.yml file
|
|
67
|
-
*/
|
|
68
|
-
async function createMkdocsYml(projectDir, mkdocsYml) {
|
|
69
|
-
await support_1.fs.writeFile(node_path_1.default.join(projectDir, constants_1.NAME_MKDOCS_YML), (0, fs_1.stringifyYaml)(mkdocsYml), 'utf8');
|
|
70
|
-
}
|
|
71
|
-
/**
|
|
72
|
-
* Helper function to create a docs directory with a markdown file
|
|
73
|
-
*/
|
|
74
|
-
async function createDocsFile(projectDir, filename, content) {
|
|
75
|
-
const docsDir = node_path_1.default.join(projectDir, 'docs');
|
|
76
|
-
await support_1.fs.mkdirp(docsDir);
|
|
77
|
-
await support_1.fs.writeFile(node_path_1.default.join(docsDir, filename), content, 'utf8');
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Helper function to ensure Python dependencies are installed
|
|
81
|
-
*/
|
|
82
|
-
async function ensurePythonDeps(projectDir, context) {
|
|
83
|
-
try {
|
|
84
|
-
await (0, init_1.initPython)({ cwd: projectDir });
|
|
85
|
-
}
|
|
86
|
-
catch {
|
|
87
|
-
context.skip();
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Helper function to verify a site was built
|
|
92
|
-
*/
|
|
93
|
-
async function verifySiteBuilt(siteDir, expectedContent) {
|
|
94
|
-
const siteDirExists = await support_1.fs.exists(siteDir);
|
|
95
|
-
expect(siteDirExists).to.be.true;
|
|
96
|
-
const indexHtml = node_path_1.default.join(siteDir, 'index.html');
|
|
97
|
-
const indexHtmlExists = await support_1.fs.exists(indexHtml);
|
|
98
|
-
expect(indexHtmlExists).to.be.true;
|
|
99
|
-
const indexHtmlContent = await support_1.fs.readFile(indexHtml, 'utf8');
|
|
100
|
-
expect(indexHtmlContent).to.include(expectedContent);
|
|
101
|
-
}
|
|
102
|
-
/**
|
|
103
|
-
* Helper function to read and parse mkdocs.yml
|
|
104
|
-
*/
|
|
105
|
-
async function readMkdocsYml(projectDir) {
|
|
106
|
-
const mkdocsYmlPath = node_path_1.default.join(projectDir, constants_1.NAME_MKDOCS_YML);
|
|
107
|
-
const mkdocsYmlContent = await support_1.fs.readFile(mkdocsYmlPath, 'utf8');
|
|
108
|
-
return YAML.parse(mkdocsYmlContent);
|
|
109
|
-
}
|
|
110
|
-
describe('@appium/docutils build e2e', function () {
|
|
111
|
-
let testDir;
|
|
112
|
-
before(async function () {
|
|
113
|
-
// Create a temporary directory for the test
|
|
114
|
-
testDir = await support_1.tempDir.openDir();
|
|
115
|
-
});
|
|
116
|
-
after(async function () {
|
|
117
|
-
// Clean up the temporary directory
|
|
118
|
-
if (testDir) {
|
|
119
|
-
await support_1.fs.rimraf(testDir);
|
|
120
|
-
}
|
|
121
|
-
});
|
|
122
|
-
describe('buildSite', function () {
|
|
123
|
-
it('should build a site with mkdocs', async function () {
|
|
124
|
-
const projectDir = await createProjectDir(testDir, 'test1', {
|
|
125
|
-
name: 'test-docs',
|
|
126
|
-
version: '1.0.0',
|
|
127
|
-
description: 'Test documentation',
|
|
128
|
-
});
|
|
129
|
-
// Create a minimal mkdocs.yml
|
|
130
|
-
// For testing, we use a simple config without INHERIT to avoid path resolution issues
|
|
131
|
-
await createMkdocsYml(projectDir, {
|
|
132
|
-
site_name: 'Test Docs',
|
|
133
|
-
docs_dir: 'docs',
|
|
134
|
-
site_dir: constants_1.DEFAULT_SITE_DIR,
|
|
135
|
-
theme: {
|
|
136
|
-
name: 'material',
|
|
137
|
-
},
|
|
138
|
-
plugins: ['search'],
|
|
139
|
-
});
|
|
140
|
-
await createDocsFile(projectDir, 'index.md', '# Test Documentation\n\nThis is a test page.\n');
|
|
141
|
-
await ensurePythonDeps(projectDir, this);
|
|
142
|
-
// Build the site
|
|
143
|
-
await (0, builder_1.buildSite)({
|
|
144
|
-
mkdocsYml: node_path_1.default.join(projectDir, constants_1.NAME_MKDOCS_YML),
|
|
145
|
-
cwd: projectDir,
|
|
146
|
-
});
|
|
147
|
-
// Verify the site was built
|
|
148
|
-
await verifySiteBuilt(node_path_1.default.join(projectDir, constants_1.DEFAULT_SITE_DIR), 'Test Documentation');
|
|
149
|
-
});
|
|
150
|
-
it('should build a site with custom site-dir', async function () {
|
|
151
|
-
const customSiteDir = 'custom-site';
|
|
152
|
-
const projectDir = await createProjectDir(testDir, 'test2', {
|
|
153
|
-
name: 'test-docs-2',
|
|
154
|
-
version: '1.0.0',
|
|
155
|
-
description: 'Test documentation',
|
|
156
|
-
});
|
|
157
|
-
// Create a minimal mkdocs.yml
|
|
158
|
-
// For testing, we use a simple config without INHERIT to avoid path resolution issues
|
|
159
|
-
await createMkdocsYml(projectDir, {
|
|
160
|
-
site_name: 'Test Docs 2',
|
|
161
|
-
docs_dir: 'docs',
|
|
162
|
-
site_dir: customSiteDir,
|
|
163
|
-
theme: {
|
|
164
|
-
name: 'material',
|
|
165
|
-
},
|
|
166
|
-
plugins: ['search'],
|
|
167
|
-
});
|
|
168
|
-
await createDocsFile(projectDir, 'index.md', '# Test Documentation 2\n\nThis is another test page.\n');
|
|
169
|
-
await ensurePythonDeps(projectDir, this);
|
|
170
|
-
// Build the site with custom site-dir
|
|
171
|
-
const customSiteDirPath = node_path_1.default.join(projectDir, customSiteDir);
|
|
172
|
-
await (0, builder_1.buildSite)({
|
|
173
|
-
mkdocsYml: node_path_1.default.join(projectDir, constants_1.NAME_MKDOCS_YML),
|
|
174
|
-
siteDir: customSiteDirPath,
|
|
175
|
-
cwd: projectDir,
|
|
176
|
-
});
|
|
177
|
-
// Verify the site was built in the custom directory
|
|
178
|
-
await verifySiteBuilt(customSiteDirPath, 'Test Documentation 2');
|
|
179
|
-
});
|
|
180
|
-
});
|
|
181
|
-
describe('init', function () {
|
|
182
|
-
it('should scaffold mkdocs.yml file', async function () {
|
|
183
|
-
const projectDir = await createProjectDir(testDir, 'init-test', {
|
|
184
|
-
name: 'test-package',
|
|
185
|
-
version: '1.0.0',
|
|
186
|
-
description: 'Test package description',
|
|
187
|
-
repository: {
|
|
188
|
-
type: 'git',
|
|
189
|
-
url: 'https://github.com/testuser/test-package.git',
|
|
190
|
-
},
|
|
191
|
-
});
|
|
192
|
-
// Run init command (skip Python installation for faster test)
|
|
193
|
-
await (0, init_1.init)({
|
|
194
|
-
cwd: projectDir,
|
|
195
|
-
mkdocs: true,
|
|
196
|
-
python: false,
|
|
197
|
-
});
|
|
198
|
-
// Verify mkdocs.yml was created
|
|
199
|
-
const mkdocsYmlPath = node_path_1.default.join(projectDir, constants_1.NAME_MKDOCS_YML);
|
|
200
|
-
expect(await support_1.fs.exists(mkdocsYmlPath)).to.be.true;
|
|
201
|
-
// Read and verify the content of mkdocs.yml
|
|
202
|
-
const mkdocsYml = await readMkdocsYml(projectDir);
|
|
203
|
-
// Verify expected fields are present
|
|
204
|
-
expect(mkdocsYml.INHERIT).to.equal('./node_modules/@appium/docutils/base-mkdocs.yml');
|
|
205
|
-
expect(mkdocsYml.docs_dir).to.equal('docs');
|
|
206
|
-
expect(mkdocsYml.site_dir).to.equal('site');
|
|
207
|
-
expect(mkdocsYml.site_name).to.equal('test-package');
|
|
208
|
-
expect(mkdocsYml.site_description).to.equal('Test package description');
|
|
209
|
-
// Repository URL may be normalized with "git+" prefix by read-pkg
|
|
210
|
-
expect(mkdocsYml.repo_url).to.include('github.com/testuser/test-package');
|
|
211
|
-
expect(mkdocsYml.repo_name).to.equal('testuser/test-package');
|
|
212
|
-
});
|
|
213
|
-
it('should scaffold mkdocs.yml with custom options', async function () {
|
|
214
|
-
const projectDir = await createProjectDir(testDir, 'init-custom-test', {
|
|
215
|
-
name: 'custom-package',
|
|
216
|
-
version: '2.0.0',
|
|
217
|
-
description: 'Custom package',
|
|
218
|
-
});
|
|
219
|
-
// Run init command with custom options
|
|
220
|
-
await (0, init_1.init)({
|
|
221
|
-
cwd: projectDir,
|
|
222
|
-
mkdocs: true,
|
|
223
|
-
python: false,
|
|
224
|
-
siteName: 'Custom Site Name',
|
|
225
|
-
repoUrl: 'https://github.com/custom/repo',
|
|
226
|
-
repoName: 'custom/repo',
|
|
227
|
-
siteDescription: 'Custom description',
|
|
228
|
-
});
|
|
229
|
-
// Verify mkdocs.yml was created
|
|
230
|
-
const mkdocsYmlPath = node_path_1.default.join(projectDir, constants_1.NAME_MKDOCS_YML);
|
|
231
|
-
expect(await support_1.fs.exists(mkdocsYmlPath)).to.be.true;
|
|
232
|
-
// Read and verify the content
|
|
233
|
-
const mkdocsYml = await readMkdocsYml(projectDir);
|
|
234
|
-
// Verify custom values are used
|
|
235
|
-
expect(mkdocsYml.site_name).to.equal('Custom Site Name');
|
|
236
|
-
// Note: siteDescription from options should override package.json description
|
|
237
|
-
// If it doesn't work, it falls back to package description
|
|
238
|
-
expect(mkdocsYml.site_description).to.be.oneOf(['Custom description', 'Custom package']);
|
|
239
|
-
expect(mkdocsYml.repo_url).to.equal('https://github.com/custom/repo');
|
|
240
|
-
expect(mkdocsYml.repo_name).to.equal('custom/repo');
|
|
241
|
-
});
|
|
242
|
-
});
|
|
243
|
-
describe('CLI help', function () {
|
|
244
|
-
it('should print help when --help is passed', async function () {
|
|
245
|
-
let helpOutput = '';
|
|
246
|
-
// Create yargs instance similar to CLI
|
|
247
|
-
const y = (0, yargs_1.default)(['--help'])
|
|
248
|
-
.scriptName(constants_1.NAME_BIN)
|
|
249
|
-
.command(command_1.build)
|
|
250
|
-
.command(command_1.init)
|
|
251
|
-
.command(command_1.validate)
|
|
252
|
-
.options({
|
|
253
|
-
verbose: {
|
|
254
|
-
type: 'boolean',
|
|
255
|
-
describe: 'Alias for --log-level=debug',
|
|
256
|
-
},
|
|
257
|
-
'log-level': {
|
|
258
|
-
alias: 'L',
|
|
259
|
-
choices: ['debug', 'info', 'warn', 'error', 'silent'],
|
|
260
|
-
describe: 'Sets the log level',
|
|
261
|
-
default: 'info',
|
|
262
|
-
},
|
|
263
|
-
config: {
|
|
264
|
-
alias: 'c',
|
|
265
|
-
type: 'string',
|
|
266
|
-
describe: 'Path to config file',
|
|
267
|
-
normalize: true,
|
|
268
|
-
nargs: 1,
|
|
269
|
-
requiresArg: true,
|
|
270
|
-
defaultDescription: '(discovered automatically)',
|
|
271
|
-
},
|
|
272
|
-
'no-config': {
|
|
273
|
-
type: 'boolean',
|
|
274
|
-
describe: 'Disable config file discovery',
|
|
275
|
-
},
|
|
276
|
-
})
|
|
277
|
-
.demandCommand(1)
|
|
278
|
-
.strict();
|
|
279
|
-
// Try getHelp first (returns a string, no I/O needed)
|
|
280
|
-
try {
|
|
281
|
-
const helpText = await y.getHelp();
|
|
282
|
-
helpOutput = helpText;
|
|
283
|
-
}
|
|
284
|
-
catch {
|
|
285
|
-
// If getHelp doesn't work, use showHelp which writes to stderr by default
|
|
286
|
-
// Capture stderr since showHelp() writes to stderr by default
|
|
287
|
-
const originalStderrWrite = process.stderr.write.bind(process.stderr);
|
|
288
|
-
const mockStderrWrite = (chunk) => {
|
|
289
|
-
if (typeof chunk === 'string' || Buffer.isBuffer(chunk)) {
|
|
290
|
-
helpOutput += chunk.toString();
|
|
291
|
-
}
|
|
292
|
-
return true;
|
|
293
|
-
};
|
|
294
|
-
process.stderr.write = mockStderrWrite;
|
|
295
|
-
try {
|
|
296
|
-
y.showHelp();
|
|
297
|
-
}
|
|
298
|
-
finally {
|
|
299
|
-
process.stderr.write = originalStderrWrite;
|
|
300
|
-
}
|
|
301
|
-
}
|
|
302
|
-
// Verify help output contains expected content
|
|
303
|
-
expect(helpOutput).to.include(constants_1.NAME_BIN);
|
|
304
|
-
expect(helpOutput).to.include('Commands:');
|
|
305
|
-
expect(helpOutput).to.include('build');
|
|
306
|
-
expect(helpOutput).to.include('init');
|
|
307
|
-
expect(helpOutput).to.include('validate');
|
|
308
|
-
expect(helpOutput).to.include('Options:');
|
|
309
|
-
expect(helpOutput).to.include('--help');
|
|
310
|
-
});
|
|
311
|
-
});
|
|
312
|
-
});
|
|
313
|
-
//# sourceMappingURL=build.e2e.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build.e2e.spec.js","sourceRoot":"","sources":["../../../test/e2e/build.e2e.spec.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0DAA6B;AAC7B,2CAA6B;AAC7B,wEAA8C;AAC9C,2CAA6B;AAC7B,wDAAgC;AAChC,6CAA4C;AAC5C,+CAA4C;AAC5C,yCAAgD;AAChD,qCAA2C;AAE3C,mDAAmG;AACnG,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AAC;oBACD,OAAO,IAAI,CAAC;gBACd,CAAC,CAAC;gBACF,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,eAA8C,CAAC;gBACtE,IAAI,CAAC;oBACH,CAAC,CAAC,QAAQ,EAAE,CAAC;gBACf,CAAC;wBAAS,CAAC;oBACT,OAAO,CAAC,MAAM,CAAC,KAAK,GAAG,mBAAmB,CAAC;gBAC7C,CAAC;YACH,CAAC;YAED,+CAA+C;YAC/C,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,oBAAQ,CAAC,CAAC;YACxC,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;YAC3C,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YACvC,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;YACtC,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;YAC1C,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC;YAC1C,MAAM,CAAC,UAAU,CAAC,CAAC,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QAC1C,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.spec.d.ts","sourceRoot":"","sources":["../../../test/unit/util.spec.ts"],"names":[],"mappings":""}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
const util_1 = require("../../lib/util");
|
|
40
|
-
const lodash_1 = __importDefault(require("lodash"));
|
|
41
|
-
const chai = __importStar(require("chai"));
|
|
42
|
-
const chai_as_promised_1 = __importDefault(require("chai-as-promised"));
|
|
43
|
-
chai.use(chai_as_promised_1.default);
|
|
44
|
-
const { expect } = chai;
|
|
45
|
-
describe('argify', function () {
|
|
46
|
-
it('should create args from params', function () {
|
|
47
|
-
// deploy example
|
|
48
|
-
const version = '2.0';
|
|
49
|
-
const mikeOpts = {
|
|
50
|
-
'config-file': '/path/to/yml',
|
|
51
|
-
push: true,
|
|
52
|
-
remote: 'origin',
|
|
53
|
-
branch: 'gh-pages',
|
|
54
|
-
'deploy-prefix': '2.0',
|
|
55
|
-
message: 'docs: a thing',
|
|
56
|
-
port: 8100,
|
|
57
|
-
host: 'localhost',
|
|
58
|
-
};
|
|
59
|
-
const mikeArgs = [
|
|
60
|
-
...(0, util_1.argify)(lodash_1.default.omitBy(mikeOpts, (value, key) => lodash_1.default.includes(['port', 'host'], key) || (!lodash_1.default.isNumber(value) && !value))),
|
|
61
|
-
version,
|
|
62
|
-
];
|
|
63
|
-
expect(mikeArgs).to.eql([
|
|
64
|
-
'--config-file',
|
|
65
|
-
'/path/to/yml',
|
|
66
|
-
'--push',
|
|
67
|
-
'--remote',
|
|
68
|
-
'origin',
|
|
69
|
-
'--branch',
|
|
70
|
-
'gh-pages',
|
|
71
|
-
'--deploy-prefix',
|
|
72
|
-
'2.0',
|
|
73
|
-
'--message',
|
|
74
|
-
'docs: a thing',
|
|
75
|
-
'2.0',
|
|
76
|
-
]);
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
//# sourceMappingURL=util.spec.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"util.spec.js","sourceRoot":"","sources":["../../../test/unit/util.spec.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAsC;AACtC,oDAAuB;AACvB,2CAA6B;AAC7B,wEAA8C;AAE9C,IAAI,CAAC,GAAG,CAAC,0BAAc,CAAC,CAAC;AACzB,MAAM,EAAC,MAAM,EAAC,GAAG,IAAI,CAAC;AAEtB,QAAQ,CAAC,QAAQ,EAAE;IACjB,EAAE,CAAC,gCAA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