@appium/docutils 0.1.6 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -5
- package/build/lib/build/mkdocs.d.ts +58 -0
- package/build/lib/build/mkdocs.d.ts.map +1 -0
- package/build/lib/build/mkdocs.js +80 -0
- package/build/lib/build/mkdocs.js.map +1 -0
- package/build/lib/build/typedoc.d.ts +55 -0
- package/build/lib/build/typedoc.d.ts.map +1 -0
- package/build/lib/build/typedoc.js +120 -0
- package/build/lib/build/typedoc.js.map +1 -0
- package/build/lib/build-api.d.ts +18 -0
- package/build/lib/build-api.d.ts.map +1 -0
- package/build/lib/build-api.js +75 -0
- package/build/lib/build-api.js.map +1 -0
- package/build/lib/build.d.ts +21 -0
- package/build/lib/build.d.ts.map +1 -0
- package/build/lib/build.js +71 -0
- package/build/lib/build.js.map +1 -0
- package/build/lib/builder/deploy.d.ts +89 -0
- package/build/lib/builder/deploy.d.ts.map +1 -0
- package/build/lib/builder/deploy.js +102 -0
- package/build/lib/builder/deploy.js.map +1 -0
- package/build/lib/builder/index.d.ts +5 -0
- package/build/lib/builder/index.d.ts.map +1 -0
- package/build/lib/builder/index.js +21 -0
- package/build/lib/builder/index.js.map +1 -0
- package/build/lib/builder/nav.d.ts +81 -0
- package/build/lib/builder/nav.d.ts.map +1 -0
- package/build/lib/builder/nav.js +272 -0
- package/build/lib/builder/nav.js.map +1 -0
- package/build/lib/builder/reference.d.ts +57 -0
- package/build/lib/builder/reference.d.ts.map +1 -0
- package/build/lib/builder/reference.js +129 -0
- package/build/lib/builder/reference.js.map +1 -0
- package/build/lib/builder/site.d.ts +55 -0
- package/build/lib/builder/site.d.ts.map +1 -0
- package/build/lib/builder/site.js +81 -0
- package/build/lib/builder/site.js.map +1 -0
- package/build/lib/cli/command/build.d.ts +178 -0
- package/build/lib/cli/command/build.d.ts.map +1 -0
- package/build/lib/cli/command/build.js +223 -0
- package/build/lib/cli/command/build.js.map +1 -0
- package/build/lib/cli/command/deploy.d.ts +1 -0
- package/build/lib/cli/command/deploy.d.ts.map +1 -0
- package/build/lib/cli/command/deploy.js +2 -0
- package/build/lib/cli/command/deploy.js.map +1 -0
- package/build/lib/cli/command/index.d.ts +4 -0
- package/build/lib/cli/command/index.d.ts.map +1 -0
- package/build/lib/cli/command/index.js +13 -0
- package/build/lib/cli/command/index.js.map +1 -0
- package/build/lib/cli/command/init.d.ts +143 -0
- package/build/lib/cli/command/init.d.ts.map +1 -0
- package/build/lib/cli/command/init.js +164 -0
- package/build/lib/cli/command/init.js.map +1 -0
- package/build/lib/cli/command/validate.d.ts +76 -0
- package/build/lib/cli/command/validate.d.ts.map +1 -0
- package/build/lib/cli/command/validate.js +115 -0
- package/build/lib/cli/command/validate.js.map +1 -0
- package/build/lib/cli/command-init.d.ts +143 -0
- package/build/lib/cli/command-init.d.ts.map +1 -0
- package/build/lib/cli/command-init.js +164 -0
- package/build/lib/cli/command-init.js.map +1 -0
- package/build/lib/cli/command-validate.d.ts +52 -0
- package/build/lib/cli/command-validate.d.ts.map +1 -0
- package/build/lib/cli/command-validate.js +66 -0
- package/build/lib/cli/command-validate.js.map +1 -0
- package/build/lib/cli/config.d.ts +28 -0
- package/build/lib/cli/config.d.ts.map +1 -0
- package/build/lib/cli/config.js +114 -0
- package/build/lib/cli/config.js.map +1 -0
- package/build/lib/cli/index.d.ts +13 -0
- package/build/lib/cli/index.d.ts.map +1 -0
- package/build/lib/cli/index.js +91 -0
- package/build/lib/cli/index.js.map +1 -0
- package/build/lib/cli/init.d.ts +143 -0
- package/build/lib/cli/init.d.ts.map +1 -0
- package/build/lib/cli/init.js +164 -0
- package/build/lib/cli/init.js.map +1 -0
- package/build/lib/cli/options.d.ts +1 -0
- package/build/lib/cli/options.d.ts.map +1 -0
- package/build/lib/cli/options.js +2 -0
- package/build/lib/cli/options.js.map +1 -0
- package/build/lib/cli/validate.d.ts +1 -0
- package/build/lib/cli/validate.d.ts.map +1 -0
- package/build/lib/cli/validate.js +2 -0
- package/build/lib/cli/validate.js.map +1 -0
- package/build/lib/cli.d.ts +10 -0
- package/build/lib/cli.d.ts.map +1 -0
- package/build/lib/cli.js +328 -0
- package/build/lib/cli.js.map +1 -0
- package/build/lib/constants.d.ts +125 -0
- package/build/lib/constants.d.ts.map +1 -0
- package/build/lib/constants.js +133 -0
- package/build/lib/constants.js.map +1 -0
- package/build/lib/error.d.ts +3 -0
- package/build/lib/error.d.ts.map +1 -0
- package/build/lib/error.js +7 -0
- package/build/lib/error.js.map +1 -0
- package/build/lib/fs.d.ts +142 -0
- package/build/lib/fs.d.ts.map +1 -0
- package/build/lib/fs.js +237 -0
- package/build/lib/fs.js.map +1 -0
- package/build/lib/index.d.ts +5 -2
- package/build/lib/index.d.ts.map +1 -1
- package/build/lib/index.js +4 -1
- package/build/lib/index.js.map +1 -1
- package/build/lib/init-task.d.ts +49 -0
- package/build/lib/init-task.d.ts.map +1 -0
- package/build/lib/init-task.js +95 -0
- package/build/lib/init-task.js.map +1 -0
- package/build/lib/init.d.ts +202 -0
- package/build/lib/init.d.ts.map +1 -0
- package/build/lib/init.js +225 -0
- package/build/lib/init.js.map +1 -0
- package/build/lib/io.d.ts +1 -0
- package/build/lib/io.d.ts.map +1 -0
- package/build/lib/io.js +2 -0
- package/build/lib/io.js.map +1 -0
- package/build/lib/logger.d.ts +17 -2
- package/build/lib/logger.d.ts.map +1 -1
- package/build/lib/logger.js +187 -2
- package/build/lib/logger.js.map +1 -1
- package/build/lib/mike.d.ts +3 -0
- 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/mkdocs.d.ts +51 -12
- package/build/lib/mkdocs.d.ts.map +1 -1
- package/build/lib/mkdocs.js +64 -32
- package/build/lib/mkdocs.js.map +1 -1
- package/build/lib/model.d.ts +80 -0
- package/build/lib/model.d.ts.map +1 -0
- package/build/lib/model.js +8 -0
- package/build/lib/model.js.map +1 -0
- package/build/lib/nav.d.ts +47 -0
- package/build/lib/nav.d.ts.map +1 -0
- package/build/lib/nav.js +132 -0
- package/build/lib/nav.js.map +1 -0
- package/build/lib/scaffold.d.ts +95 -0
- package/build/lib/scaffold.d.ts.map +1 -0
- package/build/lib/scaffold.js +103 -0
- package/build/lib/scaffold.js.map +1 -0
- package/build/lib/test.d.ts +9 -0
- package/build/lib/test.d.ts.map +1 -0
- package/build/lib/test.js +2 -0
- package/build/lib/test.js.map +1 -0
- package/build/lib/typedoc.d.ts +55 -0
- package/build/lib/typedoc.d.ts.map +1 -0
- package/build/lib/typedoc.js +122 -0
- package/build/lib/typedoc.js.map +1 -0
- package/build/lib/types.d.ts +52 -0
- package/build/lib/types.d.ts.map +1 -0
- package/build/lib/types.js +7 -0
- package/build/lib/types.js.map +1 -0
- package/build/lib/util.d.ts +42 -0
- package/build/lib/util.d.ts.map +1 -0
- package/build/lib/util.js +56 -0
- package/build/lib/util.js.map +1 -0
- package/build/lib/validate.d.ts +218 -0
- package/build/lib/validate.d.ts.map +1 -0
- package/build/lib/validate.js +501 -0
- package/build/lib/validate.js.map +1 -0
- package/build/lib/validation/base-validator.d.ts +218 -0
- package/build/lib/validation/base-validator.d.ts.map +1 -0
- package/build/lib/validation/base-validator.js +453 -0
- package/build/lib/validation/base-validator.js.map +1 -0
- package/build/lib/validation/mkdocs-validator.d.ts +5 -0
- package/build/lib/validation/mkdocs-validator.d.ts.map +1 -0
- package/build/lib/validation/mkdocs-validator.js +54 -0
- package/build/lib/validation/mkdocs-validator.js.map +1 -0
- package/build/lib/validation/python-validator.d.ts +1 -0
- package/build/lib/validation/python-validator.d.ts.map +1 -0
- package/build/lib/validation/python-validator.js +2 -0
- package/build/lib/validation/python-validator.js.map +1 -0
- package/build/lib/validation/python.d.ts +1 -0
- package/build/lib/validation/python.d.ts.map +1 -0
- package/build/lib/validation/python.js +2 -0
- package/build/lib/validation/python.js.map +1 -0
- package/build/lib/validation/validate.d.ts +221 -0
- package/build/lib/validation/validate.d.ts.map +1 -0
- package/build/lib/validation/validate.js +508 -0
- package/build/lib/validation/validate.js.map +1 -0
- package/build/lib/validation/validator.d.ts +220 -0
- package/build/lib/validation/validator.d.ts.map +1 -0
- package/build/lib/validation/validator.js +470 -0
- package/build/lib/validation/validator.js.map +1 -0
- package/lib/builder/deploy.ts +217 -0
- package/lib/builder/index.ts +4 -0
- package/lib/builder/nav.ts +393 -0
- package/lib/builder/reference.ts +191 -0
- package/lib/builder/site.ts +143 -0
- package/lib/cli/command/build.ts +229 -0
- package/lib/cli/command/index.ts +3 -0
- package/lib/cli/command/init.ts +166 -0
- package/lib/cli/command/validate.ts +122 -0
- package/lib/cli/config.ts +89 -0
- package/lib/cli/index.ts +88 -0
- package/lib/constants.ts +150 -0
- package/lib/error.ts +1 -0
- package/lib/fs.ts +274 -0
- package/lib/index.ts +5 -0
- package/lib/init.ts +319 -0
- package/lib/logger.ts +198 -0
- package/lib/mike.js +4 -0
- package/lib/model.ts +92 -0
- package/lib/scaffold.ts +225 -0
- package/lib/util.ts +76 -0
- package/lib/validate.ts +728 -0
- package/package.json +38 -6
- package/requirements.txt +4 -0
- package/tsconfig.json +2 -1
- package/build/tsconfig.tsbuildinfo +0 -1
- package/lib/index.js +0 -2
- package/lib/logger.js +0 -3
- package/lib/mkdocs.js +0 -43
|
@@ -0,0 +1,223 @@
|
|
|
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 builder_1 = require("../../builder");
|
|
7
|
+
const constants_1 = require("../../constants");
|
|
8
|
+
const logger_1 = __importDefault(require("../../logger"));
|
|
9
|
+
const util_1 = require("../../util");
|
|
10
|
+
const log = logger_1.default.withTag('build');
|
|
11
|
+
const NAME_GROUP_BUILD = 'Build Options:';
|
|
12
|
+
const NAME_GROUP_DEPLOY = 'Deployment Options:';
|
|
13
|
+
const NAME_GROUP_SERVE = 'Serve Options:';
|
|
14
|
+
const NAME_GROUP_BUILD_PATHS = 'Paths:';
|
|
15
|
+
const opts = {
|
|
16
|
+
reference: {
|
|
17
|
+
describe: 'Run TypeDoc command API reference build (Markdown)',
|
|
18
|
+
group: NAME_GROUP_BUILD,
|
|
19
|
+
type: 'boolean',
|
|
20
|
+
default: true,
|
|
21
|
+
},
|
|
22
|
+
site: {
|
|
23
|
+
describe: 'Run MkDocs build (HTML)',
|
|
24
|
+
group: NAME_GROUP_BUILD,
|
|
25
|
+
type: 'boolean',
|
|
26
|
+
default: true,
|
|
27
|
+
},
|
|
28
|
+
'site-dir': {
|
|
29
|
+
alias: 'd',
|
|
30
|
+
describe: 'HTML output directory',
|
|
31
|
+
group: NAME_GROUP_BUILD_PATHS,
|
|
32
|
+
nargs: 1,
|
|
33
|
+
requiresArg: true,
|
|
34
|
+
type: 'string',
|
|
35
|
+
normalize: true,
|
|
36
|
+
implies: 'site',
|
|
37
|
+
defaultDescription: '(from mkdocs.yml)',
|
|
38
|
+
},
|
|
39
|
+
'package-json': {
|
|
40
|
+
defaultDescription: './package.json',
|
|
41
|
+
describe: 'Path to package.json',
|
|
42
|
+
group: NAME_GROUP_BUILD_PATHS,
|
|
43
|
+
nargs: 1,
|
|
44
|
+
normalize: true,
|
|
45
|
+
requiresArg: true,
|
|
46
|
+
type: 'string',
|
|
47
|
+
},
|
|
48
|
+
title: {
|
|
49
|
+
defaultDescription: '(extension package name)',
|
|
50
|
+
describe: 'Title of the API reference',
|
|
51
|
+
group: NAME_GROUP_BUILD,
|
|
52
|
+
nargs: 1,
|
|
53
|
+
requiresArg: true,
|
|
54
|
+
type: 'string',
|
|
55
|
+
},
|
|
56
|
+
'tsconfig-json': {
|
|
57
|
+
defaultDescription: './tsconfig.json',
|
|
58
|
+
describe: 'Path to tsconfig.json',
|
|
59
|
+
group: NAME_GROUP_BUILD_PATHS,
|
|
60
|
+
nargs: 1,
|
|
61
|
+
normalize: true,
|
|
62
|
+
requiresArg: true,
|
|
63
|
+
type: 'string',
|
|
64
|
+
},
|
|
65
|
+
'mkdocs-yml': {
|
|
66
|
+
defaultDescription: './mkdocs.yml',
|
|
67
|
+
description: 'Path to mkdocs.yml',
|
|
68
|
+
group: NAME_GROUP_BUILD_PATHS,
|
|
69
|
+
nargs: 1,
|
|
70
|
+
normalize: true,
|
|
71
|
+
requiresArg: true,
|
|
72
|
+
type: 'string',
|
|
73
|
+
},
|
|
74
|
+
'typedoc-json': {
|
|
75
|
+
defaultDescription: './typedoc.json',
|
|
76
|
+
describe: 'Path to typedoc.json',
|
|
77
|
+
group: NAME_GROUP_BUILD_PATHS,
|
|
78
|
+
nargs: 1,
|
|
79
|
+
normalize: true,
|
|
80
|
+
requiresArg: true,
|
|
81
|
+
type: 'string',
|
|
82
|
+
},
|
|
83
|
+
all: {
|
|
84
|
+
describe: 'Output all reference docs (not just Appium comands)',
|
|
85
|
+
group: NAME_GROUP_BUILD,
|
|
86
|
+
implies: 'site',
|
|
87
|
+
type: 'boolean',
|
|
88
|
+
},
|
|
89
|
+
deploy: {
|
|
90
|
+
describe: 'Commit HTML output',
|
|
91
|
+
group: NAME_GROUP_DEPLOY,
|
|
92
|
+
type: 'boolean',
|
|
93
|
+
implies: 'site',
|
|
94
|
+
},
|
|
95
|
+
push: {
|
|
96
|
+
describe: 'Push after deploy',
|
|
97
|
+
group: NAME_GROUP_DEPLOY,
|
|
98
|
+
type: 'boolean',
|
|
99
|
+
implies: 'deploy',
|
|
100
|
+
},
|
|
101
|
+
branch: {
|
|
102
|
+
alias: 'b',
|
|
103
|
+
describe: 'Branch to commit to',
|
|
104
|
+
implies: 'deploy',
|
|
105
|
+
group: NAME_GROUP_DEPLOY,
|
|
106
|
+
type: 'string',
|
|
107
|
+
requiresArg: true,
|
|
108
|
+
nargs: 1,
|
|
109
|
+
defaultDescription: 'gh-pages',
|
|
110
|
+
},
|
|
111
|
+
remote: {
|
|
112
|
+
alias: 'r',
|
|
113
|
+
describe: 'Remote to push to',
|
|
114
|
+
implies: ['deploy', 'push'],
|
|
115
|
+
group: NAME_GROUP_DEPLOY,
|
|
116
|
+
type: 'string',
|
|
117
|
+
requiresArg: true,
|
|
118
|
+
nargs: 1,
|
|
119
|
+
defaultDescription: 'origin',
|
|
120
|
+
},
|
|
121
|
+
prefix: {
|
|
122
|
+
describe: 'Subdirectory within <branch> to commit to',
|
|
123
|
+
implies: ['deploy', 'branch'],
|
|
124
|
+
group: NAME_GROUP_DEPLOY,
|
|
125
|
+
type: 'string',
|
|
126
|
+
nargs: 1,
|
|
127
|
+
requiresArg: true,
|
|
128
|
+
},
|
|
129
|
+
message: {
|
|
130
|
+
alias: 'm',
|
|
131
|
+
describe: 'Commit message',
|
|
132
|
+
implies: 'deploy',
|
|
133
|
+
group: NAME_GROUP_DEPLOY,
|
|
134
|
+
type: 'string',
|
|
135
|
+
nargs: 1,
|
|
136
|
+
requiresArg: true,
|
|
137
|
+
},
|
|
138
|
+
'deploy-version': {
|
|
139
|
+
describe: 'Version (directory) to deploy build to',
|
|
140
|
+
implies: 'deploy',
|
|
141
|
+
group: NAME_GROUP_DEPLOY,
|
|
142
|
+
type: 'string',
|
|
143
|
+
nargs: 1,
|
|
144
|
+
requiresArg: true,
|
|
145
|
+
defaultDescription: '(derived from package.json)',
|
|
146
|
+
},
|
|
147
|
+
alias: {
|
|
148
|
+
describe: 'Alias for the build (e.g., "latest"); triggers alias update',
|
|
149
|
+
implies: 'deploy',
|
|
150
|
+
group: NAME_GROUP_DEPLOY,
|
|
151
|
+
type: 'string',
|
|
152
|
+
nargs: 1,
|
|
153
|
+
requiresArg: true,
|
|
154
|
+
defaultDescription: 'latest',
|
|
155
|
+
},
|
|
156
|
+
rebase: {
|
|
157
|
+
describe: 'Rebase <branch> with remote before deploy',
|
|
158
|
+
implies: ['deploy', 'branch', 'remote'],
|
|
159
|
+
group: NAME_GROUP_DEPLOY,
|
|
160
|
+
type: 'boolean',
|
|
161
|
+
},
|
|
162
|
+
serve: {
|
|
163
|
+
describe: 'Start development server',
|
|
164
|
+
group: NAME_GROUP_SERVE,
|
|
165
|
+
type: 'boolean',
|
|
166
|
+
},
|
|
167
|
+
port: {
|
|
168
|
+
alias: 'p',
|
|
169
|
+
describe: 'Development server port',
|
|
170
|
+
group: NAME_GROUP_SERVE,
|
|
171
|
+
type: 'number',
|
|
172
|
+
defaultDescription: '8000',
|
|
173
|
+
implies: 'serve',
|
|
174
|
+
nargs: 1,
|
|
175
|
+
requiresArg: true,
|
|
176
|
+
},
|
|
177
|
+
host: {
|
|
178
|
+
alias: 'h',
|
|
179
|
+
describe: 'Development server host',
|
|
180
|
+
group: NAME_GROUP_SERVE,
|
|
181
|
+
type: 'string',
|
|
182
|
+
nargs: 1,
|
|
183
|
+
requiresArg: true,
|
|
184
|
+
implies: 'serve',
|
|
185
|
+
defaultDescription: 'localhost',
|
|
186
|
+
},
|
|
187
|
+
};
|
|
188
|
+
opts;
|
|
189
|
+
const buildCommand = {
|
|
190
|
+
command: 'build',
|
|
191
|
+
describe: 'Build Appium extension documentation',
|
|
192
|
+
builder: (yargs) => yargs.options(opts).check((argv) => {
|
|
193
|
+
// either this method doesn't provide camel-cased props, or the types are wrong.
|
|
194
|
+
if (argv.deploy === true && argv['site-dir']) {
|
|
195
|
+
log.error(`--site-dir is unsupported when running "${constants_1.NAME_BIN} deploy"; use --prefix if needd, but remember that the default behavior is to deploy to the root of the branch (${argv.branch}) instead of a subdirectory`);
|
|
196
|
+
return false;
|
|
197
|
+
}
|
|
198
|
+
return true;
|
|
199
|
+
}),
|
|
200
|
+
async handler(args) {
|
|
201
|
+
const stop = (0, util_1.stopwatch)('build');
|
|
202
|
+
log.debug('Build command called with args: %O', args);
|
|
203
|
+
if (!args.site && !args.reference) {
|
|
204
|
+
// specifically not a DocUtils error
|
|
205
|
+
throw new Error('Cannot use both --no-site (--site=false) and --no-reference (--reference=false)');
|
|
206
|
+
}
|
|
207
|
+
if (args.reference) {
|
|
208
|
+
await (0, builder_1.buildReferenceDocs)(args);
|
|
209
|
+
}
|
|
210
|
+
if (args.site) {
|
|
211
|
+
await (0, builder_1.updateNav)(args);
|
|
212
|
+
if (args.deploy) {
|
|
213
|
+
await (0, builder_1.deploy)(args);
|
|
214
|
+
}
|
|
215
|
+
else {
|
|
216
|
+
await (0, builder_1.buildSite)(args);
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
log.success('Done! (total: %dms)', stop());
|
|
220
|
+
},
|
|
221
|
+
};
|
|
222
|
+
exports.default = buildCommand;
|
|
223
|
+
//# sourceMappingURL=build.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../../../lib/cli/command/build.ts"],"names":[],"mappings":";;;;;AACA,2CAA+E;AAC/E,+CAAyC;AACzC,0DAAkC;AAClC,qCAAqC;AAErC,MAAM,GAAG,GAAG,gBAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;AAEpC,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;AAC1C,MAAM,iBAAiB,GAAG,qBAAqB,CAAC;AAChD,MAAM,gBAAgB,GAAG,gBAAgB,CAAC;AAC1C,MAAM,sBAAsB,GAAG,QAAQ,CAAC;AAExC,MAAM,IAAI,GAAG;IACX,SAAS,EAAE;QACT,QAAQ,EAAE,oDAAoD;QAC9D,KAAK,EAAE,gBAAgB;QACvB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;KACd;IACD,IAAI,EAAE;QACJ,QAAQ,EAAE,yBAAyB;QACnC,KAAK,EAAE,gBAAgB;QACvB,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;KACd;IACD,UAAU,EAAE;QACV,KAAK,EAAE,GAAG;QACV,QAAQ,EAAE,uBAAuB;QACjC,KAAK,EAAE,sBAAsB;QAC7B,KAAK,EAAE,CAAC;QACR,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,QAAQ;QACd,SAAS,EAAE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CAAC,UAAU,CAAC,EAAE;YAC5C,GAAG,CAAC,KAAK,CACP,2CAA2C,oBAAQ,mHAAmH,IAAI,CAAC,MAAM,6BAA6B,CAC/M,CAAC;YACF,OAAO,KAAK,CAAC;SACd;QACD,OAAO,IAAI,CAAC;IACd,CAAC,CAAC;IACJ,KAAK,CAAC,OAAO,CAAC,IAAI;QAChB,MAAM,IAAI,GAAG,IAAA,gBAAS,EAAC,OAAO,CAAC,CAAC;QAChC,GAAG,CAAC,KAAK,CAAC,oCAAoC,EAAE,IAAI,CAAC,CAAC;QACtD,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACjC,oCAAoC;YACpC,MAAM,IAAI,KAAK,CACb,iFAAiF,CAClF,CAAC;SACH;QACD,IAAI,IAAI,CAAC,SAAS,EAAE;YAClB,MAAM,IAAA,4BAAkB,EAAC,IAAI,CAAC,CAAC;SAChC;QACD,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,MAAM,IAAA,mBAAS,EAAC,IAAI,CAAC,CAAC;YACtB,IAAI,IAAI,CAAC,MAAM,EAAE;gBACf,MAAM,IAAA,gBAAM,EAAC,IAAI,CAAC,CAAC;aACpB;iBAAM;gBACL,MAAM,IAAA,mBAAS,EAAC,IAAI,CAAC,CAAC;aACvB;SACF;QACD,GAAG,CAAC,OAAO,CAAC,qBAAqB,EAAE,IAAI,EAAE,CAAC,CAAC;IAC7C,CAAC;CACF,CAAC;AAEF,kBAAe,YAAY,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=deploy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../../../lib/cli/command/deploy.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deploy.js","sourceRoot":"","sources":["../../../../lib/cli/command/deploy.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../lib/cli/command/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,IAAI,IAAI,EAAC,MAAM,QAAQ,CAAC;AACvC,OAAO,EAAC,OAAO,IAAI,QAAQ,EAAC,MAAM,YAAY,CAAC;AAC/C,OAAO,EAAC,OAAO,IAAI,KAAK,EAAC,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
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.build = exports.validate = exports.init = void 0;
|
|
7
|
+
var init_1 = require("./init");
|
|
8
|
+
Object.defineProperty(exports, "init", { enumerable: true, get: function () { return __importDefault(init_1).default; } });
|
|
9
|
+
var validate_1 = require("./validate");
|
|
10
|
+
Object.defineProperty(exports, "validate", { enumerable: true, get: function () { return __importDefault(validate_1).default; } });
|
|
11
|
+
var build_1 = require("./build");
|
|
12
|
+
Object.defineProperty(exports, "build", { enumerable: true, get: function () { return __importDefault(build_1).default; } });
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../lib/cli/command/index.ts"],"names":[],"mappings":";;;;;;AAAA,+BAAuC;AAA/B,6GAAA,OAAO,OAAQ;AACvB,uCAA+C;AAAvC,qHAAA,OAAO,OAAY;AAC3B,iCAAyC;AAAjC,+GAAA,OAAO,OAAS"}
|
|
@@ -0,0 +1,143 @@
|
|
|
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=init.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"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"}
|
|
@@ -0,0 +1,164 @@
|
|
|
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=init.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../lib/cli/command/init.ts"],"names":[],"mappings":";;;;;AAAA,oDAAuB;AAEvB,qCAAgC;AAChC,0DAAkC;AAClC,qCAAqC;AAErC,MAAM,GAAG,GAAG,gBAAM,CAAC,OAAO,CAAC,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|
1
|
+
import { CommandModule, InferredOptionTypes } from 'yargs';
|
|
2
|
+
declare const opts: {
|
|
3
|
+
readonly mkdocs: {
|
|
4
|
+
readonly default: true;
|
|
5
|
+
readonly description: "Validate MkDocs environment";
|
|
6
|
+
readonly group: "Validation Behavior:";
|
|
7
|
+
readonly type: "boolean";
|
|
8
|
+
};
|
|
9
|
+
readonly 'mkdocs-yml': {
|
|
10
|
+
readonly defaultDescription: "./mkdocs.yml";
|
|
11
|
+
readonly description: "Path to mkdocs.yml";
|
|
12
|
+
readonly group: "Paths:";
|
|
13
|
+
readonly nargs: 1;
|
|
14
|
+
readonly normalize: true;
|
|
15
|
+
readonly requiresArg: true;
|
|
16
|
+
readonly type: "string";
|
|
17
|
+
};
|
|
18
|
+
readonly 'npm-path': {
|
|
19
|
+
readonly defaultDescription: "(derived from shell)";
|
|
20
|
+
readonly description: "Path to npm executable";
|
|
21
|
+
readonly group: "Paths:";
|
|
22
|
+
readonly nargs: 1;
|
|
23
|
+
readonly normalize: true;
|
|
24
|
+
readonly requiresArg: true;
|
|
25
|
+
readonly type: "string";
|
|
26
|
+
};
|
|
27
|
+
readonly python: {
|
|
28
|
+
readonly default: true;
|
|
29
|
+
readonly description: "Validate Python 3 environment";
|
|
30
|
+
readonly group: "Validation Behavior:";
|
|
31
|
+
readonly type: "boolean";
|
|
32
|
+
};
|
|
33
|
+
readonly 'python-path': {
|
|
34
|
+
readonly defaultDescription: "(derived from shell)";
|
|
35
|
+
readonly description: "Path to python 3 executable";
|
|
36
|
+
readonly group: "Paths:";
|
|
37
|
+
readonly nargs: 1;
|
|
38
|
+
readonly normalize: true;
|
|
39
|
+
readonly requiresArg: true;
|
|
40
|
+
readonly type: "string";
|
|
41
|
+
};
|
|
42
|
+
readonly 'tsconfig-json': {
|
|
43
|
+
readonly defaultDescription: "./tsconfig.json";
|
|
44
|
+
readonly describe: "Path to tsconfig.json";
|
|
45
|
+
readonly group: "Paths:";
|
|
46
|
+
readonly nargs: 1;
|
|
47
|
+
readonly normalize: true;
|
|
48
|
+
readonly requiresArg: true;
|
|
49
|
+
readonly type: "string";
|
|
50
|
+
};
|
|
51
|
+
readonly typedoc: {
|
|
52
|
+
readonly default: true;
|
|
53
|
+
readonly description: "Validate TypoDoc environment";
|
|
54
|
+
readonly group: "Validation Behavior:";
|
|
55
|
+
readonly type: "boolean";
|
|
56
|
+
};
|
|
57
|
+
readonly 'typedoc-json': {
|
|
58
|
+
readonly defaultDescription: "./typedoc.json";
|
|
59
|
+
readonly describe: "Path to typedoc.json";
|
|
60
|
+
readonly group: "Paths:";
|
|
61
|
+
readonly nargs: 1;
|
|
62
|
+
readonly normalize: true;
|
|
63
|
+
readonly requiresArg: true;
|
|
64
|
+
readonly type: "string";
|
|
65
|
+
};
|
|
66
|
+
readonly typescript: {
|
|
67
|
+
readonly default: true;
|
|
68
|
+
readonly description: "Validate TypeScript environment";
|
|
69
|
+
readonly group: "Validation Behavior:";
|
|
70
|
+
readonly type: "boolean";
|
|
71
|
+
};
|
|
72
|
+
};
|
|
73
|
+
declare type ValidateOptions = InferredOptionTypes<typeof opts>;
|
|
74
|
+
declare const validateCommand: CommandModule<{}, ValidateOptions>;
|
|
75
|
+
export default validateCommand;
|
|
76
|
+
//# sourceMappingURL=validate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../../lib/cli/command/validate.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,aAAa,EAAE,mBAAmB,EAAU,MAAM,OAAO,CAAC;AAUlE,QAAA,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsEA,CAAC;AAEX,aAAK,eAAe,GAAG,mBAAmB,CAAC,OAAO,IAAI,CAAC,CAAC;AACxD,QAAA,MAAM,eAAe,EAAE,aAAa,CAAC,EAAE,EAAE,eAAe,CAmCvD,CAAC;AAEF,eAAe,eAAe,CAAC"}
|