@appium/docutils 0.2.1 → 0.3.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/LICENSE +1 -1
- package/build/lib/builder/deploy.d.ts.map +1 -1
- package/build/lib/builder/deploy.js +6 -2
- package/build/lib/builder/deploy.js.map +1 -1
- package/build/lib/builder/index.d.ts +4 -0
- package/build/lib/builder/index.d.ts.map +1 -1
- package/build/lib/builder/index.js +4 -0
- package/build/lib/builder/index.js.map +1 -1
- package/build/lib/builder/nav.d.ts +1 -1
- package/build/lib/builder/nav.d.ts.map +1 -1
- package/build/lib/builder/nav.js +3 -3
- package/build/lib/builder/nav.js.map +1 -1
- package/build/lib/builder/reference.d.ts +1 -1
- package/build/lib/builder/reference.d.ts.map +1 -1
- package/build/lib/builder/reference.js +1 -19
- package/build/lib/builder/reference.js.map +1 -1
- package/build/lib/builder/site.d.ts.map +1 -1
- package/build/lib/builder/site.js +4 -3
- package/build/lib/builder/site.js.map +1 -1
- package/build/lib/cli/check.d.ts +19 -0
- package/build/lib/cli/check.d.ts.map +1 -0
- package/build/lib/cli/check.js +58 -0
- package/build/lib/cli/check.js.map +1 -0
- package/build/lib/cli/command/build.d.ts +42 -29
- package/build/lib/cli/command/build.d.ts.map +1 -1
- package/build/lib/cli/command/build.js +55 -39
- package/build/lib/cli/command/build.js.map +1 -1
- package/build/lib/cli/command/index.d.ts +4 -0
- package/build/lib/cli/command/index.d.ts.map +1 -1
- package/build/lib/cli/command/index.js +4 -0
- package/build/lib/cli/command/index.js.map +1 -1
- package/build/lib/cli/command/init.d.ts +42 -27
- package/build/lib/cli/command/init.d.ts.map +1 -1
- package/build/lib/cli/command/init.js +51 -28
- package/build/lib/cli/command/init.js.map +1 -1
- package/build/lib/cli/command/validate.d.ts +21 -15
- package/build/lib/cli/command/validate.d.ts.map +1 -1
- package/build/lib/cli/command/validate.js +30 -21
- package/build/lib/cli/command/validate.js.map +1 -1
- package/build/lib/cli/config.js +1 -1
- package/build/lib/cli/config.js.map +1 -1
- package/build/lib/cli/index.d.ts.map +1 -1
- package/build/lib/cli/index.js +29 -12
- package/build/lib/cli/index.js.map +1 -1
- package/build/lib/constants.d.ts +4 -0
- package/build/lib/constants.d.ts.map +1 -1
- package/build/lib/constants.js +5 -1
- package/build/lib/constants.js.map +1 -1
- package/build/lib/error.d.ts +5 -0
- package/build/lib/error.d.ts.map +1 -1
- package/build/lib/error.js +5 -0
- package/build/lib/error.js.map +1 -1
- package/build/lib/fs.d.ts +1 -1
- package/build/lib/fs.d.ts.map +1 -1
- package/build/lib/fs.js +2 -2
- package/build/lib/fs.js.map +1 -1
- package/build/lib/index.d.ts +4 -0
- package/build/lib/index.d.ts.map +1 -1
- package/build/lib/index.js +4 -0
- package/build/lib/index.js.map +1 -1
- package/build/lib/init.d.ts +24 -26
- package/build/lib/init.d.ts.map +1 -1
- package/build/lib/init.js +12 -7
- package/build/lib/init.js.map +1 -1
- package/build/lib/logger.js +0 -4
- package/build/lib/logger.js.map +1 -1
- package/build/lib/mike.d.ts.map +1 -1
- package/build/lib/mike.js +4 -0
- package/build/lib/mike.js.map +1 -1
- package/build/lib/model.d.ts +6 -10
- package/build/lib/model.d.ts.map +1 -1
- package/build/lib/scaffold.d.ts +5 -5
- package/build/lib/scaffold.d.ts.map +1 -1
- package/build/lib/util.d.ts +6 -3
- package/build/lib/util.d.ts.map +1 -1
- package/build/lib/util.js.map +1 -1
- package/build/lib/validate.d.ts +5 -2
- package/build/lib/validate.d.ts.map +1 -1
- package/build/lib/validate.js +9 -7
- package/build/lib/validate.js.map +1 -1
- package/lib/builder/deploy.ts +9 -3
- package/lib/builder/index.ts +5 -0
- package/lib/builder/nav.ts +2 -3
- package/lib/builder/reference.ts +2 -22
- package/lib/builder/site.ts +6 -5
- package/lib/cli/check.ts +87 -0
- package/lib/cli/command/build.ts +61 -46
- package/lib/cli/command/index.ts +5 -0
- package/lib/cli/command/init.ts +54 -32
- package/lib/cli/command/validate.ts +35 -28
- package/lib/cli/index.ts +23 -4
- package/lib/constants.ts +5 -0
- package/lib/error.ts +6 -0
- package/lib/fs.ts +6 -3
- package/lib/index.ts +5 -0
- package/lib/init.ts +23 -6
- package/lib/logger.ts +6 -11
- package/lib/mike.js +5 -0
- package/lib/model.ts +3 -9
- package/lib/util.ts +4 -1
- package/lib/validate.ts +10 -9
- package/package.json +10 -12
- package/requirements.txt +1 -1
- package/build/lib/build/mkdocs.d.ts +0 -58
- package/build/lib/build/mkdocs.d.ts.map +0 -1
- package/build/lib/build/mkdocs.js +0 -80
- package/build/lib/build/mkdocs.js.map +0 -1
- package/build/lib/build/typedoc.d.ts +0 -55
- package/build/lib/build/typedoc.d.ts.map +0 -1
- package/build/lib/build/typedoc.js +0 -120
- package/build/lib/build/typedoc.js.map +0 -1
- package/build/lib/build-api.d.ts +0 -18
- package/build/lib/build-api.d.ts.map +0 -1
- package/build/lib/build-api.js +0 -75
- package/build/lib/build-api.js.map +0 -1
- package/build/lib/build.d.ts +0 -21
- package/build/lib/build.d.ts.map +0 -1
- package/build/lib/build.js +0 -71
- package/build/lib/build.js.map +0 -1
- package/build/lib/cli/command/deploy.d.ts +0 -1
- package/build/lib/cli/command/deploy.d.ts.map +0 -1
- package/build/lib/cli/command/deploy.js +0 -2
- package/build/lib/cli/command/deploy.js.map +0 -1
- package/build/lib/cli/command-init.d.ts +0 -143
- package/build/lib/cli/command-init.d.ts.map +0 -1
- package/build/lib/cli/command-init.js +0 -164
- package/build/lib/cli/command-init.js.map +0 -1
- package/build/lib/cli/command-validate.d.ts +0 -52
- package/build/lib/cli/command-validate.d.ts.map +0 -1
- package/build/lib/cli/command-validate.js +0 -66
- package/build/lib/cli/command-validate.js.map +0 -1
- package/build/lib/cli/init.d.ts +0 -143
- package/build/lib/cli/init.d.ts.map +0 -1
- package/build/lib/cli/init.js +0 -164
- package/build/lib/cli/init.js.map +0 -1
- package/build/lib/cli/options.d.ts +0 -1
- package/build/lib/cli/options.d.ts.map +0 -1
- package/build/lib/cli/options.js +0 -2
- package/build/lib/cli/options.js.map +0 -1
- package/build/lib/cli/validate.d.ts +0 -1
- package/build/lib/cli/validate.d.ts.map +0 -1
- package/build/lib/cli/validate.js +0 -2
- package/build/lib/cli/validate.js.map +0 -1
- package/build/lib/cli.d.ts +0 -10
- package/build/lib/cli.d.ts.map +0 -1
- package/build/lib/cli.js +0 -328
- package/build/lib/cli.js.map +0 -1
- package/build/lib/init-task.d.ts +0 -49
- package/build/lib/init-task.d.ts.map +0 -1
- package/build/lib/init-task.js +0 -95
- package/build/lib/init-task.js.map +0 -1
- package/build/lib/io.d.ts +0 -1
- package/build/lib/io.d.ts.map +0 -1
- package/build/lib/io.js +0 -2
- package/build/lib/io.js.map +0 -1
- package/build/lib/mkdocs.d.ts +0 -58
- package/build/lib/mkdocs.d.ts.map +0 -1
- package/build/lib/mkdocs.js +0 -77
- package/build/lib/mkdocs.js.map +0 -1
- package/build/lib/nav.d.ts +0 -47
- package/build/lib/nav.d.ts.map +0 -1
- package/build/lib/nav.js +0 -132
- package/build/lib/nav.js.map +0 -1
- package/build/lib/test.d.ts +0 -9
- package/build/lib/test.d.ts.map +0 -1
- package/build/lib/test.js +0 -2
- package/build/lib/test.js.map +0 -1
- package/build/lib/typedoc.d.ts +0 -55
- package/build/lib/typedoc.d.ts.map +0 -1
- package/build/lib/typedoc.js +0 -122
- package/build/lib/typedoc.js.map +0 -1
- package/build/lib/types.d.ts +0 -52
- package/build/lib/types.d.ts.map +0 -1
- package/build/lib/types.js +0 -7
- package/build/lib/types.js.map +0 -1
- package/build/lib/validation/base-validator.d.ts +0 -218
- package/build/lib/validation/base-validator.d.ts.map +0 -1
- package/build/lib/validation/base-validator.js +0 -453
- package/build/lib/validation/base-validator.js.map +0 -1
- package/build/lib/validation/mkdocs-validator.d.ts +0 -5
- package/build/lib/validation/mkdocs-validator.d.ts.map +0 -1
- package/build/lib/validation/mkdocs-validator.js +0 -54
- package/build/lib/validation/mkdocs-validator.js.map +0 -1
- package/build/lib/validation/python-validator.d.ts +0 -1
- package/build/lib/validation/python-validator.d.ts.map +0 -1
- package/build/lib/validation/python-validator.js +0 -2
- package/build/lib/validation/python-validator.js.map +0 -1
- package/build/lib/validation/python.d.ts +0 -1
- package/build/lib/validation/python.d.ts.map +0 -1
- package/build/lib/validation/python.js +0 -2
- package/build/lib/validation/python.js.map +0 -1
- package/build/lib/validation/validate.d.ts +0 -221
- package/build/lib/validation/validate.d.ts.map +0 -1
- package/build/lib/validation/validate.js +0 -508
- package/build/lib/validation/validate.js.map +0 -1
- package/build/lib/validation/validator.d.ts +0 -220
- package/build/lib/validation/validator.d.ts.map +0 -1
- package/build/lib/validation/validator.js +0 -470
- package/build/lib/validation/validator.js.map +0 -1
- package/build/test/unit/mike.spec.js +0 -17
- package/build/test/unit/mike.spec.js.map +0 -1
package/build/lib/build.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.buildReference = exports.buildTypedoc = exports.runTypedoc = void 0;
|
|
7
|
-
const logger_1 = __importDefault(require("./logger"));
|
|
8
|
-
const support_1 = require("@appium/support");
|
|
9
|
-
const lodash_1 = __importDefault(require("lodash"));
|
|
10
|
-
const node_path_1 = __importDefault(require("node:path"));
|
|
11
|
-
const typedoc_1 = require("typedoc");
|
|
12
|
-
const error_1 = require("./error");
|
|
13
|
-
const util_1 = require("./util");
|
|
14
|
-
const glob_1 = __importDefault(require("glob"));
|
|
15
|
-
const constants_1 = require("./constants");
|
|
16
|
-
/**
|
|
17
|
-
* Replaces TypeDoc's homebrew "glob" implementation with a real one
|
|
18
|
-
*
|
|
19
|
-
* This cannot be done via `require('typedoc')` or `import` due to the file being excluded
|
|
20
|
-
* from the export map in its `package.json`.
|
|
21
|
-
* @see https://github.com/TypeStrong/typedoc/issues/2151
|
|
22
|
-
*/
|
|
23
|
-
const monkeyPatchGlob = lodash_1.default.once((pkgRoot) => {
|
|
24
|
-
const tdFs = require(node_path_1.default.join(pkgRoot, 'node_modules', 'typedoc', 'dist', 'lib', 'utils', 'fs.js'));
|
|
25
|
-
tdFs.glob = glob_1.default.sync;
|
|
26
|
-
});
|
|
27
|
-
/**
|
|
28
|
-
* Executes TypeDoc in the current process
|
|
29
|
-
*
|
|
30
|
-
* Monkeypatch's TypeDoc's homebrew "glob" implementation because it is broken
|
|
31
|
-
* @param pkgRoot - Package root path
|
|
32
|
-
* @param opts - TypeDoc options
|
|
33
|
-
*/
|
|
34
|
-
function runTypedoc(pkgRoot, opts) {
|
|
35
|
-
monkeyPatchGlob(pkgRoot);
|
|
36
|
-
const app = new typedoc_1.Application();
|
|
37
|
-
app.options.addReader(new typedoc_1.TSConfigReader());
|
|
38
|
-
app.bootstrap(opts);
|
|
39
|
-
return app.convert();
|
|
40
|
-
}
|
|
41
|
-
exports.runTypedoc = runTypedoc;
|
|
42
|
-
async function buildTypedoc({ typedocJson: typeDocJsonPath, cwd = process.cwd(), packageJson: packageJsonPath, tsconfigJson: tsconfig, title, } = {}) {
|
|
43
|
-
typeDocJsonPath = typeDocJsonPath ?? (await (0, util_1.getTypedocJsonPath)(cwd, packageJsonPath));
|
|
44
|
-
const pkgRoot = support_1.fs.findRoot(cwd);
|
|
45
|
-
const relativePath = (0, util_1.relative)(cwd);
|
|
46
|
-
const relativeTypedocJsonPath = relativePath(typeDocJsonPath);
|
|
47
|
-
logger_1.default.debug(`Using ${relativeTypedocJsonPath} as typedoc.json`);
|
|
48
|
-
let typedocJson;
|
|
49
|
-
try {
|
|
50
|
-
typedocJson = await (0, util_1.readJson)(typeDocJsonPath);
|
|
51
|
-
}
|
|
52
|
-
catch (err) {
|
|
53
|
-
throw new error_1.DocutilsError(`Could not read ${relativeTypedocJsonPath}; please execute "appium docutils init" to create it`);
|
|
54
|
-
}
|
|
55
|
-
const out = typedocJson.out ??
|
|
56
|
-
node_path_1.default.relative(typeDocJsonPath, node_path_1.default.join(pkgRoot, constants_1.DEFAULT_REL_TYPEDOC_OUT_PATH));
|
|
57
|
-
const finalTypedocJson = lodash_1.default.defaultsDeep(lodash_1.default.pickBy({ tsconfig, name: title, out }, (value, key) => value && key !== constants_1.NAME_SCHEMA));
|
|
58
|
-
try {
|
|
59
|
-
runTypedoc(pkgRoot, finalTypedocJson);
|
|
60
|
-
logger_1.default.success(`API docs built at ${relativePath(out)}`);
|
|
61
|
-
}
|
|
62
|
-
catch (err) {
|
|
63
|
-
logger_1.default.error(err);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
exports.buildTypedoc = buildTypedoc;
|
|
67
|
-
async function buildReference(opts = {}) {
|
|
68
|
-
await buildTypedoc(opts);
|
|
69
|
-
}
|
|
70
|
-
exports.buildReference = buildReference;
|
|
71
|
-
//# sourceMappingURL=build.js.map
|
package/build/lib/build.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../lib/build.ts"],"names":[],"mappings":";;;;;;AAAA,sDAA2B;AAC3B,6CAAmC;AACnC,oDAAuB;AACvB,0DAA6B;AAC7B,qCAAoE;AACpE,mCAAsC;AACtC,iCAA8D;AAC9D,gDAAwB;AAExB,2CAAsE;AAEtE;;;;;;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;;;;;;GAMG;AACH,SAAgB,UAAU,CAAC,OAAe,EAAE,IAAoB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AAC,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAE,GAAG,EAAC,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE,CAAC,KAAK,IAAI,GAAG,KAAK,uBAAW,CAAC,CACrF,CAAC;IAEF,IAAI;QACF,UAAU,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC;QACtC,gBAAG,CAAC,OAAO,CAAC,qBAAqB,YAAY,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;KACvD;IAAC,OAAO,GAAG,EAAE;QACZ,gBAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;KAChB;AACH,CAAC;AAlCD,oCAkCC;AAEM,KAAK,UAAU,cAAc,CAAC,OAA8B,EAAE;IACnE,MAAM,YAAY,CAAC,IAAI,CAAC,CAAC;AAC3B,CAAC;AAFD,wCAEC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=deploy.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../lib/cli/command/deploy.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../../lib/cli/command/deploy.ts"],"names":[],"mappings":""}
|
|
@@ -1,143 +0,0 @@
|
|
|
1
|
-
import { CommandModule, InferredOptionTypes } from 'yargs';
|
|
2
|
-
declare const opts: {
|
|
3
|
-
readonly copyright: {
|
|
4
|
-
readonly description: "Copyright notice";
|
|
5
|
-
readonly group: "MkDocs Config:";
|
|
6
|
-
readonly nargs: 1;
|
|
7
|
-
readonly requiresArg: true;
|
|
8
|
-
readonly type: "string";
|
|
9
|
-
};
|
|
10
|
-
readonly dir: {
|
|
11
|
-
readonly default: ".";
|
|
12
|
-
readonly defaultDescription: "(current directory)";
|
|
13
|
-
readonly description: "Directory of package";
|
|
14
|
-
readonly group: "Paths:";
|
|
15
|
-
readonly normalize: true;
|
|
16
|
-
readonly type: "string";
|
|
17
|
-
};
|
|
18
|
-
readonly 'dry-run': {
|
|
19
|
-
readonly describe: "Do not write any files; show what would be done";
|
|
20
|
-
readonly group: "Initialization Behavior:";
|
|
21
|
-
readonly type: "boolean";
|
|
22
|
-
};
|
|
23
|
-
readonly force: {
|
|
24
|
-
readonly alias: "f";
|
|
25
|
-
readonly describe: "Overwrite existing configurations";
|
|
26
|
-
readonly group: "Initialization Behavior:";
|
|
27
|
-
readonly type: "boolean";
|
|
28
|
-
};
|
|
29
|
-
readonly include: {
|
|
30
|
-
readonly alias: "i";
|
|
31
|
-
readonly array: true;
|
|
32
|
-
readonly coerce: (value: string | string[]) => string[];
|
|
33
|
-
readonly description: "Files to include in compilation (globs OK)";
|
|
34
|
-
readonly nargs: 1;
|
|
35
|
-
readonly requiresArg: true;
|
|
36
|
-
readonly type: "string";
|
|
37
|
-
};
|
|
38
|
-
readonly mkdocs: {
|
|
39
|
-
readonly default: true;
|
|
40
|
-
readonly description: "Create mkdocs.yml if needed";
|
|
41
|
-
readonly group: "Initialization Behavior:";
|
|
42
|
-
readonly type: "boolean";
|
|
43
|
-
};
|
|
44
|
-
readonly 'mkdocs-yml': {
|
|
45
|
-
readonly defaultDescription: "./mkdocs.yml";
|
|
46
|
-
readonly description: "Path to mkdocs.yml";
|
|
47
|
-
readonly group: "Paths:";
|
|
48
|
-
readonly nargs: 1;
|
|
49
|
-
readonly normalize: true;
|
|
50
|
-
readonly requiresArg: true;
|
|
51
|
-
readonly type: "string";
|
|
52
|
-
};
|
|
53
|
-
readonly 'package-json': {
|
|
54
|
-
readonly defaultDescription: "./package.json";
|
|
55
|
-
readonly describe: "Path to package.json";
|
|
56
|
-
readonly group: "Paths:";
|
|
57
|
-
readonly nargs: 1;
|
|
58
|
-
readonly normalize: true;
|
|
59
|
-
readonly requiresArg: true;
|
|
60
|
-
readonly type: "string";
|
|
61
|
-
};
|
|
62
|
-
readonly python: {
|
|
63
|
-
readonly default: true;
|
|
64
|
-
readonly description: "Install Python dependencies if needed";
|
|
65
|
-
readonly group: "Initialization Behavior:";
|
|
66
|
-
readonly type: "boolean";
|
|
67
|
-
};
|
|
68
|
-
readonly 'python-path': {
|
|
69
|
-
readonly defaultDescription: "(derived from shell)";
|
|
70
|
-
readonly description: "Path to python 3 executable";
|
|
71
|
-
readonly group: "Paths:";
|
|
72
|
-
readonly nargs: 1;
|
|
73
|
-
readonly normalize: true;
|
|
74
|
-
readonly requiresArg: true;
|
|
75
|
-
readonly type: "string";
|
|
76
|
-
};
|
|
77
|
-
readonly 'repo-name': {
|
|
78
|
-
readonly defaultDescription: "(derived from --repo-url)";
|
|
79
|
-
readonly description: "Name of extension repository";
|
|
80
|
-
readonly group: "MkDocs Config:";
|
|
81
|
-
readonly nargs: 1;
|
|
82
|
-
readonly requiresArg: true;
|
|
83
|
-
readonly type: "string";
|
|
84
|
-
};
|
|
85
|
-
readonly 'repo-url': {
|
|
86
|
-
readonly defaultDescription: "(from package.json)";
|
|
87
|
-
readonly description: "URL of extension repository";
|
|
88
|
-
readonly group: "MkDocs Config:";
|
|
89
|
-
readonly nargs: 1;
|
|
90
|
-
readonly requiresArg: true;
|
|
91
|
-
readonly type: "string";
|
|
92
|
-
};
|
|
93
|
-
readonly 'site-description': {
|
|
94
|
-
readonly defaultDescription: "(from package.json)";
|
|
95
|
-
readonly description: "Site description";
|
|
96
|
-
readonly group: "MkDocs Config:";
|
|
97
|
-
readonly nargs: 1;
|
|
98
|
-
readonly requiresArg: true;
|
|
99
|
-
readonly type: "string";
|
|
100
|
-
};
|
|
101
|
-
readonly 'site-name': {
|
|
102
|
-
readonly defaultDescription: "(extension package name)";
|
|
103
|
-
readonly description: "Name of site";
|
|
104
|
-
readonly group: "MkDocs Config:";
|
|
105
|
-
readonly nargs: 1;
|
|
106
|
-
readonly requiresArg: true;
|
|
107
|
-
readonly type: "string";
|
|
108
|
-
};
|
|
109
|
-
readonly 'tsconfig-json': {
|
|
110
|
-
readonly defaultDescription: "./tsconfig.json";
|
|
111
|
-
readonly describe: "Path to tsconfig.json";
|
|
112
|
-
readonly group: "Paths:";
|
|
113
|
-
readonly nargs: 1;
|
|
114
|
-
readonly normalize: true;
|
|
115
|
-
readonly requiresArg: true;
|
|
116
|
-
readonly type: "string";
|
|
117
|
-
};
|
|
118
|
-
readonly typedoc: {
|
|
119
|
-
readonly default: true;
|
|
120
|
-
readonly description: "Create typedoc.json if needed";
|
|
121
|
-
readonly group: "Initialization Behavior:";
|
|
122
|
-
readonly type: "boolean";
|
|
123
|
-
};
|
|
124
|
-
readonly 'typedoc-json': {
|
|
125
|
-
readonly defaultDescription: "./typedoc.json";
|
|
126
|
-
readonly describe: "Path to typedoc.json";
|
|
127
|
-
readonly group: "Paths:";
|
|
128
|
-
readonly nargs: 1;
|
|
129
|
-
readonly normalize: true;
|
|
130
|
-
readonly requiresArg: true;
|
|
131
|
-
readonly type: "string";
|
|
132
|
-
};
|
|
133
|
-
readonly typescript: {
|
|
134
|
-
readonly default: true;
|
|
135
|
-
readonly description: "Create tsconfig.json if needed";
|
|
136
|
-
readonly group: "Initialization Behavior:";
|
|
137
|
-
readonly type: "boolean";
|
|
138
|
-
};
|
|
139
|
-
};
|
|
140
|
-
declare type InitOptions = InferredOptionTypes<typeof opts>;
|
|
141
|
-
declare const initCommand: CommandModule<{}, InitOptions>;
|
|
142
|
-
export default initCommand;
|
|
143
|
-
//# sourceMappingURL=command-init.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-init.d.ts","sourceRoot":"","sources":["../../../lib/cli/command-init.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAE,mBAAmB,EAAU,MAAM,OAAO,CAAC;AAWlE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCA8BU,MAAM,GAAG,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2G3B,CAAC;AAGX,aAAK,WAAW,GAAG,mBAAmB,CAAC,OAAO,IAAI,CAAC,CAAC;AAEpD,QAAA,MAAM,WAAW,EAAE,aAAa,CAAC,EAAE,EAAE,WAAW,CAS/C,CAAC;AAEF,eAAe,WAAW,CAAC"}
|
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const lodash_1 = __importDefault(require("lodash"));
|
|
7
|
-
const init_1 = require("../init");
|
|
8
|
-
const logger_1 = __importDefault(require("../logger"));
|
|
9
|
-
const util_1 = require("../util");
|
|
10
|
-
const log = logger_1.default.withTag('init');
|
|
11
|
-
const NAME_GROUP_INIT_MKDOCS = 'MkDocs Config:';
|
|
12
|
-
const NAME_GROUP_INIT_PATHS = 'Paths:';
|
|
13
|
-
const NAME_GROUP_INIT_BEHAVIOR = 'Initialization Behavior:';
|
|
14
|
-
const opts = {
|
|
15
|
-
copyright: {
|
|
16
|
-
description: 'Copyright notice',
|
|
17
|
-
group: NAME_GROUP_INIT_MKDOCS,
|
|
18
|
-
nargs: 1,
|
|
19
|
-
requiresArg: true,
|
|
20
|
-
type: 'string',
|
|
21
|
-
},
|
|
22
|
-
dir: {
|
|
23
|
-
default: '.',
|
|
24
|
-
defaultDescription: '(current directory)',
|
|
25
|
-
description: 'Directory of package',
|
|
26
|
-
group: NAME_GROUP_INIT_PATHS,
|
|
27
|
-
normalize: true,
|
|
28
|
-
type: 'string',
|
|
29
|
-
},
|
|
30
|
-
'dry-run': {
|
|
31
|
-
describe: 'Do not write any files; show what would be done',
|
|
32
|
-
group: NAME_GROUP_INIT_BEHAVIOR,
|
|
33
|
-
type: 'boolean',
|
|
34
|
-
},
|
|
35
|
-
force: {
|
|
36
|
-
alias: 'f',
|
|
37
|
-
describe: 'Overwrite existing configurations',
|
|
38
|
-
group: NAME_GROUP_INIT_BEHAVIOR,
|
|
39
|
-
type: 'boolean',
|
|
40
|
-
},
|
|
41
|
-
include: {
|
|
42
|
-
alias: 'i',
|
|
43
|
-
array: true,
|
|
44
|
-
coerce: (value) => lodash_1.default.castArray(value),
|
|
45
|
-
description: 'Files to include in compilation (globs OK)',
|
|
46
|
-
nargs: 1,
|
|
47
|
-
requiresArg: true,
|
|
48
|
-
type: 'string',
|
|
49
|
-
},
|
|
50
|
-
mkdocs: {
|
|
51
|
-
default: true,
|
|
52
|
-
description: 'Create mkdocs.yml if needed',
|
|
53
|
-
group: NAME_GROUP_INIT_BEHAVIOR,
|
|
54
|
-
type: 'boolean',
|
|
55
|
-
},
|
|
56
|
-
'mkdocs-yml': {
|
|
57
|
-
defaultDescription: './mkdocs.yml',
|
|
58
|
-
description: 'Path to mkdocs.yml',
|
|
59
|
-
group: NAME_GROUP_INIT_PATHS,
|
|
60
|
-
nargs: 1,
|
|
61
|
-
normalize: true,
|
|
62
|
-
requiresArg: true,
|
|
63
|
-
type: 'string',
|
|
64
|
-
},
|
|
65
|
-
'package-json': {
|
|
66
|
-
defaultDescription: './package.json',
|
|
67
|
-
describe: 'Path to package.json',
|
|
68
|
-
group: NAME_GROUP_INIT_PATHS,
|
|
69
|
-
nargs: 1,
|
|
70
|
-
normalize: true,
|
|
71
|
-
requiresArg: true,
|
|
72
|
-
type: 'string',
|
|
73
|
-
},
|
|
74
|
-
python: {
|
|
75
|
-
default: true,
|
|
76
|
-
description: 'Install Python dependencies if needed',
|
|
77
|
-
group: NAME_GROUP_INIT_BEHAVIOR,
|
|
78
|
-
type: 'boolean',
|
|
79
|
-
},
|
|
80
|
-
'python-path': {
|
|
81
|
-
defaultDescription: '(derived from shell)',
|
|
82
|
-
description: 'Path to python 3 executable',
|
|
83
|
-
group: NAME_GROUP_INIT_PATHS,
|
|
84
|
-
nargs: 1,
|
|
85
|
-
normalize: true,
|
|
86
|
-
requiresArg: true,
|
|
87
|
-
type: 'string',
|
|
88
|
-
},
|
|
89
|
-
'repo-name': {
|
|
90
|
-
defaultDescription: '(derived from --repo-url)',
|
|
91
|
-
description: 'Name of extension repository',
|
|
92
|
-
group: NAME_GROUP_INIT_MKDOCS,
|
|
93
|
-
nargs: 1,
|
|
94
|
-
requiresArg: true,
|
|
95
|
-
type: 'string',
|
|
96
|
-
},
|
|
97
|
-
'repo-url': {
|
|
98
|
-
defaultDescription: '(from package.json)',
|
|
99
|
-
description: 'URL of extension repository',
|
|
100
|
-
group: NAME_GROUP_INIT_MKDOCS,
|
|
101
|
-
nargs: 1,
|
|
102
|
-
requiresArg: true,
|
|
103
|
-
type: 'string',
|
|
104
|
-
},
|
|
105
|
-
'site-description': {
|
|
106
|
-
defaultDescription: '(from package.json)',
|
|
107
|
-
description: 'Site description',
|
|
108
|
-
group: NAME_GROUP_INIT_MKDOCS,
|
|
109
|
-
nargs: 1,
|
|
110
|
-
requiresArg: true,
|
|
111
|
-
type: 'string',
|
|
112
|
-
},
|
|
113
|
-
'site-name': {
|
|
114
|
-
defaultDescription: '(extension package name)',
|
|
115
|
-
description: 'Name of site',
|
|
116
|
-
group: NAME_GROUP_INIT_MKDOCS,
|
|
117
|
-
nargs: 1,
|
|
118
|
-
requiresArg: true,
|
|
119
|
-
type: 'string',
|
|
120
|
-
},
|
|
121
|
-
'tsconfig-json': {
|
|
122
|
-
defaultDescription: './tsconfig.json',
|
|
123
|
-
describe: 'Path to tsconfig.json',
|
|
124
|
-
group: NAME_GROUP_INIT_PATHS,
|
|
125
|
-
nargs: 1,
|
|
126
|
-
normalize: true,
|
|
127
|
-
requiresArg: true,
|
|
128
|
-
type: 'string',
|
|
129
|
-
},
|
|
130
|
-
typedoc: {
|
|
131
|
-
default: true,
|
|
132
|
-
description: 'Create typedoc.json if needed',
|
|
133
|
-
group: NAME_GROUP_INIT_BEHAVIOR,
|
|
134
|
-
type: 'boolean',
|
|
135
|
-
},
|
|
136
|
-
'typedoc-json': {
|
|
137
|
-
defaultDescription: './typedoc.json',
|
|
138
|
-
describe: 'Path to typedoc.json',
|
|
139
|
-
group: NAME_GROUP_INIT_PATHS,
|
|
140
|
-
nargs: 1,
|
|
141
|
-
normalize: true,
|
|
142
|
-
requiresArg: true,
|
|
143
|
-
type: 'string',
|
|
144
|
-
},
|
|
145
|
-
typescript: {
|
|
146
|
-
default: true,
|
|
147
|
-
description: 'Create tsconfig.json if needed',
|
|
148
|
-
group: NAME_GROUP_INIT_BEHAVIOR,
|
|
149
|
-
type: 'boolean',
|
|
150
|
-
},
|
|
151
|
-
};
|
|
152
|
-
opts; // type check
|
|
153
|
-
const initCommand = {
|
|
154
|
-
command: 'init',
|
|
155
|
-
describe: 'Initialize package for doc generation',
|
|
156
|
-
builder: opts,
|
|
157
|
-
async handler(args) {
|
|
158
|
-
const done = (0, util_1.stopwatch)('init');
|
|
159
|
-
await (0, init_1.init)({ ...args, overwrite: args.force, cwd: args.dir });
|
|
160
|
-
log.success('Done (%dms)', done());
|
|
161
|
-
},
|
|
162
|
-
};
|
|
163
|
-
exports.default = initCommand;
|
|
164
|
-
//# sourceMappingURL=command-init.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-init.js","sourceRoot":"","sources":["../../../lib/cli/command-init.ts"],"names":[],"mappings":";;;;;AAAA,oDAAuB;AAEvB,kCAA6B;AAC7B,uDAA+B;AAC/B,kCAAkC;AAElC,MAAM,GAAG,GAAG,gBAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;AAEnC,MAAM,sBAAsB,GAAG,gBAAgB,CAAC;AAChD,MAAM,qBAAqB,GAAG,QAAQ,CAAC;AACvC,MAAM,wBAAwB,GAAG,0BAA0B,CAAC;AAE5D,MAAM,IAAI,GAAG;IACX,SAAS,EAAE;QACT,WAAW,EAAE,kBAAkB;QAC/B,KAAK,EAAE,sBAAsB;QAC7B,KAAK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QAAQ;KACf;IACD,OAAO,EAAE;QACP,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,+BAA+B;QAC5C,KAAK,EAAE,wBAAwB;QAC/B,IAAI,EAAE,SAAS;KAChB;IACD,cAAc,EAAE;QACd,kBAAkB,EAAE,gBAAgB;QACpC,QAAQ,EAAE,sBAAsB;QAChC,KAAK,EAAE,qBAAqB;QAC5B,KAAK,EAAE,CAAC;QACR,SAAS,EAAE,IAAI;QACf,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,QAAQ;KACf;IACD,UAAU,EAAE;QACV,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,gCAAgC;QAC7C,KAAK,EAAE,wBAAwB;QAC/B,IAAI,EAAE,SAAS;KAChB;CACO,CAAC;AACX,IAA+B,CAAC,CAAC,aAAa;AAI9C,MAAM,WAAW,GAAmC;IAClD,OAAO,EAAE,MAAM;IACf,QAAQ,EAAE,uCAAuC;IACjD,OAAO,EAAE,IAAI;IACb,KAAK,CAAC,OAAO,CAAC,IAAI;QAChB,MAAM,IAAI,GAAG,IAAA,gBAAS,EAAC,MAAM,CAAC,CAAC;QAC/B,MAAM,IAAA,WAAI,EAAC,EAAC,GAAG,IAAI,EAAE,SAAS,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG,EAAC,CAAC,CAAC;QAC5D,GAAG,CAAC,OAAO,CAAC,aAAa,EAAE,IAAI,EAAE,CAAC,CAAC;IACrC,CAAC;CACF,CAAC;AAEF,kBAAe,WAAW,CAAC"}
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { CommandModule, InferredOptionTypes } from 'yargs';
|
|
2
|
-
declare const opts: {
|
|
3
|
-
readonly python: {
|
|
4
|
-
readonly default: true;
|
|
5
|
-
readonly description: "Validate Python 3 environment";
|
|
6
|
-
readonly group: "Validation:";
|
|
7
|
-
readonly type: "boolean";
|
|
8
|
-
};
|
|
9
|
-
readonly 'python-path': {
|
|
10
|
-
readonly defaultDescription: "(derived from shell)";
|
|
11
|
-
readonly description: "Path to python 3 executable";
|
|
12
|
-
readonly group: "Validation:";
|
|
13
|
-
readonly nargs: 1;
|
|
14
|
-
readonly normalize: true;
|
|
15
|
-
readonly requiresArg: true;
|
|
16
|
-
readonly type: "string";
|
|
17
|
-
};
|
|
18
|
-
readonly 'tsconfig-json': {
|
|
19
|
-
readonly defaultDescription: "./tsconfig.json";
|
|
20
|
-
readonly describe: "Path to tsconfig.json";
|
|
21
|
-
readonly group: "Validation:";
|
|
22
|
-
readonly nargs: 1;
|
|
23
|
-
readonly normalize: true;
|
|
24
|
-
readonly requiresArg: true;
|
|
25
|
-
readonly type: "string";
|
|
26
|
-
};
|
|
27
|
-
readonly typedoc: {
|
|
28
|
-
readonly default: true;
|
|
29
|
-
readonly description: "Validate TypoDoc config";
|
|
30
|
-
readonly group: "Validation:";
|
|
31
|
-
readonly type: "boolean";
|
|
32
|
-
};
|
|
33
|
-
readonly 'typedoc-json': {
|
|
34
|
-
readonly defaultDescription: "./typedoc.json";
|
|
35
|
-
readonly describe: "Path to typedoc.json";
|
|
36
|
-
readonly group: "Validation:";
|
|
37
|
-
readonly nargs: 1;
|
|
38
|
-
readonly normalize: true;
|
|
39
|
-
readonly requiresArg: true;
|
|
40
|
-
readonly type: "string";
|
|
41
|
-
};
|
|
42
|
-
readonly typescript: {
|
|
43
|
-
readonly default: true;
|
|
44
|
-
readonly description: "Validate TypeScript config";
|
|
45
|
-
readonly group: "Validation:";
|
|
46
|
-
readonly type: "boolean";
|
|
47
|
-
};
|
|
48
|
-
};
|
|
49
|
-
declare type ValidateOptions = InferredOptionTypes<typeof opts>;
|
|
50
|
-
declare const validateCommand: CommandModule<{}, ValidateOptions>;
|
|
51
|
-
export default validateCommand;
|
|
52
|
-
//# sourceMappingURL=command-validate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-validate.d.ts","sourceRoot":"","sources":["../../../lib/cli/command-validate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,mBAAmB,EAAU,MAAM,OAAO,CAAC;AAKlE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8CA,CAAC;AAEX,aAAK,eAAe,GAAG,mBAAmB,CAAC,OAAO,IAAI,CAAC,CAAC;AACxD,QAAA,MAAM,eAAe,EAAE,aAAa,CAAC,EAAE,EAAE,eAAe,CAavD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const validate_1 = require("../validate");
|
|
4
|
-
const NAME_GROUP_VALIDATE = 'Validation:';
|
|
5
|
-
const opts = {
|
|
6
|
-
python: {
|
|
7
|
-
default: true,
|
|
8
|
-
description: 'Validate Python 3 environment',
|
|
9
|
-
group: NAME_GROUP_VALIDATE,
|
|
10
|
-
type: 'boolean',
|
|
11
|
-
},
|
|
12
|
-
'python-path': {
|
|
13
|
-
defaultDescription: '(derived from shell)',
|
|
14
|
-
description: 'Path to python 3 executable',
|
|
15
|
-
group: NAME_GROUP_VALIDATE,
|
|
16
|
-
nargs: 1,
|
|
17
|
-
normalize: true,
|
|
18
|
-
requiresArg: true,
|
|
19
|
-
type: 'string',
|
|
20
|
-
},
|
|
21
|
-
'tsconfig-json': {
|
|
22
|
-
defaultDescription: './tsconfig.json',
|
|
23
|
-
describe: 'Path to tsconfig.json',
|
|
24
|
-
group: NAME_GROUP_VALIDATE,
|
|
25
|
-
nargs: 1,
|
|
26
|
-
normalize: true,
|
|
27
|
-
requiresArg: true,
|
|
28
|
-
type: 'string',
|
|
29
|
-
},
|
|
30
|
-
typedoc: {
|
|
31
|
-
default: true,
|
|
32
|
-
description: 'Validate TypoDoc config',
|
|
33
|
-
group: NAME_GROUP_VALIDATE,
|
|
34
|
-
type: 'boolean',
|
|
35
|
-
},
|
|
36
|
-
'typedoc-json': {
|
|
37
|
-
defaultDescription: './typedoc.json',
|
|
38
|
-
describe: 'Path to typedoc.json',
|
|
39
|
-
group: NAME_GROUP_VALIDATE,
|
|
40
|
-
nargs: 1,
|
|
41
|
-
normalize: true,
|
|
42
|
-
requiresArg: true,
|
|
43
|
-
type: 'string',
|
|
44
|
-
},
|
|
45
|
-
typescript: {
|
|
46
|
-
default: true,
|
|
47
|
-
description: 'Validate TypeScript config',
|
|
48
|
-
group: NAME_GROUP_VALIDATE,
|
|
49
|
-
type: 'boolean',
|
|
50
|
-
},
|
|
51
|
-
};
|
|
52
|
-
opts;
|
|
53
|
-
const validateCommand = {
|
|
54
|
-
command: 'validate',
|
|
55
|
-
describe: 'Validate Environment',
|
|
56
|
-
builder: opts,
|
|
57
|
-
async handler(args) {
|
|
58
|
-
if (!args.python && !args.typedoc && !args.typescript) {
|
|
59
|
-
// specifically not a DocutilsError
|
|
60
|
-
throw new Error('No validation targets specified; one or more of --python, --typescript or --typedoc must be provided');
|
|
61
|
-
}
|
|
62
|
-
await (0, validate_1.validate)(args);
|
|
63
|
-
},
|
|
64
|
-
};
|
|
65
|
-
exports.default = validateCommand;
|
|
66
|
-
//# sourceMappingURL=command-validate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command-validate.js","sourceRoot":"","sources":["../../../lib/cli/command-validate.ts"],"names":[],"mappings":";;AACA,0CAAqC;AAErC,MAAM,mBAAmB,GAAG,aAAa,CAAC;AAE1C,MAAM,IAAI,GAAG;IACX,MAAM,EAAE;QACN,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,+BAA+B;QAC5C,KAAK,EAAE,mBAAmB;QAC1B,IAAI,EAAE,SAAS;KAChB;IACD,aAAa,EAAE;QACb,kBAAkB,EAAE,sBAAsB;QAC1C,WAAW,EAAE,6BAA6B;QAC1C,KAAK,EAAE,mBAAmB;QAC1B,KAAK,EAAE,CAAC;QACR,SAAS,EAAE,IAAI;QACf,WAAW,EAA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