@appium/docutils 0.0.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/LICENSE +201 -0
- package/build/lib/index.d.ts +5 -0
- package/build/lib/index.d.ts.map +1 -0
- package/build/lib/index.js +49 -0
- package/build/lib/jsdoc-config-base.d.ts +27 -0
- package/build/lib/jsdoc-config-base.d.ts.map +1 -0
- package/build/lib/jsdoc-config-base.js +44 -0
- package/build/lib/logger.d.ts +3 -0
- package/build/lib/logger.d.ts.map +1 -0
- package/build/lib/logger.js +15 -0
- package/build/lib/mike.d.ts +78 -0
- package/build/lib/mike.d.ts.map +1 -0
- package/build/lib/mike.js +106 -0
- package/build/lib/mkdocs.d.ts +19 -0
- package/build/lib/mkdocs.d.ts.map +1 -0
- package/build/lib/mkdocs.js +40 -0
- package/build/test/unit/mike.spec.js +20 -0
- package/build/tsconfig.tsbuildinfo +1 -0
- package/index.js +1 -0
- package/lib/index.js +5 -0
- package/lib/jsdoc-config-base.js +40 -0
- package/lib/logger.js +3 -0
- package/lib/mike.js +137 -0
- package/lib/mkdocs.js +41 -0
- package/package.json +58 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,201 @@
|
|
|
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 JS Foundation and other contributors, https://js.foundation
|
|
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.
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/index.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
var _exportNames = {
|
|
9
|
+
baseConfig: true
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "baseConfig", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () {
|
|
14
|
+
return _jsdocConfigBase.default;
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
require("source-map-support/register");
|
|
19
|
+
|
|
20
|
+
var _jsdocConfigBase = _interopRequireDefault(require("./jsdoc-config-base"));
|
|
21
|
+
|
|
22
|
+
var _mkdocs = require("./mkdocs");
|
|
23
|
+
|
|
24
|
+
Object.keys(_mkdocs).forEach(function (key) {
|
|
25
|
+
if (key === "default" || key === "__esModule") return;
|
|
26
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
27
|
+
if (key in exports && exports[key] === _mkdocs[key]) return;
|
|
28
|
+
Object.defineProperty(exports, key, {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () {
|
|
31
|
+
return _mkdocs[key];
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
var _mike = require("./mike");
|
|
37
|
+
|
|
38
|
+
Object.keys(_mike).forEach(function (key) {
|
|
39
|
+
if (key === "default" || key === "__esModule") return;
|
|
40
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
41
|
+
if (key in exports && exports[key] === _mike[key]) return;
|
|
42
|
+
Object.defineProperty(exports, key, {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function () {
|
|
45
|
+
return _mike[key];
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
});
|
|
49
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9pbmRleC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUE7O0FBRUE7O0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTs7QUFDQTs7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBO0FBQUE7QUFBQTtBQUFBIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IGJhc2VDb25maWcgZnJvbSAnLi9qc2RvYy1jb25maWctYmFzZSc7XG5cbmV4cG9ydCAqIGZyb20gJy4vbWtkb2NzJztcbmV4cG9ydCAqIGZyb20gJy4vbWlrZSc7XG5leHBvcnQgeyBiYXNlQ29uZmlnIH07XG4iXX0=
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default baseConfig;
|
|
2
|
+
declare namespace baseConfig {
|
|
3
|
+
const plugins: string[];
|
|
4
|
+
namespace opts {
|
|
5
|
+
export const destination: string;
|
|
6
|
+
export const tutorials: string;
|
|
7
|
+
export namespace source {
|
|
8
|
+
const include: string[];
|
|
9
|
+
const exclude: never[];
|
|
10
|
+
const includePattern: string;
|
|
11
|
+
const excludePattern: string;
|
|
12
|
+
}
|
|
13
|
+
export { docdashPath as template };
|
|
14
|
+
export const encoding: string;
|
|
15
|
+
}
|
|
16
|
+
namespace typescript {
|
|
17
|
+
const moduleRoot: string;
|
|
18
|
+
}
|
|
19
|
+
namespace docdash {
|
|
20
|
+
const sectionOrder: string[];
|
|
21
|
+
const navLevel: number;
|
|
22
|
+
const search: boolean;
|
|
23
|
+
const collapse: boolean;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
declare const docdashPath: string;
|
|
27
|
+
//# sourceMappingURL=jsdoc-config-base.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"jsdoc-config-base.d.ts","sourceRoot":"","sources":["../../lib/jsdoc-config-base.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAGA,kCAA+C"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
|
|
10
|
+
require("source-map-support/register");
|
|
11
|
+
|
|
12
|
+
var _path = _interopRequireDefault(require("path"));
|
|
13
|
+
|
|
14
|
+
const docdashEntry = require.resolve('docdash');
|
|
15
|
+
|
|
16
|
+
const docdashPath = _path.default.dirname(docdashEntry);
|
|
17
|
+
|
|
18
|
+
const baseConfig = {
|
|
19
|
+
plugins: ['plugins/markdown', 'jsdoc-plugin-typescript'],
|
|
20
|
+
opts: {
|
|
21
|
+
destination: './jsdoc-out',
|
|
22
|
+
tutorials: './docs',
|
|
23
|
+
source: {
|
|
24
|
+
include: ['./lib'],
|
|
25
|
+
exclude: [],
|
|
26
|
+
includePattern: '.+\\.js(doc|x)?$',
|
|
27
|
+
excludePattern: '(^|\\/|\\\\)_'
|
|
28
|
+
},
|
|
29
|
+
template: docdashPath,
|
|
30
|
+
encoding: 'utf8'
|
|
31
|
+
},
|
|
32
|
+
typescript: {
|
|
33
|
+
moduleRoot: 'lib'
|
|
34
|
+
},
|
|
35
|
+
docdash: {
|
|
36
|
+
sectionOrder: ['Tutorials', 'Classes', 'Modules', 'Externals', 'Events', 'Namespaces', 'Mixins', 'Interfaces'],
|
|
37
|
+
navLevel: 5,
|
|
38
|
+
search: true,
|
|
39
|
+
collapse: false
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
var _default = baseConfig;
|
|
43
|
+
exports.default = _default;
|
|
44
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4u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ICBlbmNvZGluZzogJ3V0ZjgnLFxuICB9LFxuICB0eXBlc2NyaXB0OiB7XG4gICAgbW9kdWxlUm9vdDogJ2xpYicsXG4gIH0sXG4gIGRvY2Rhc2g6IHtcbiAgICBzZWN0aW9uT3JkZXI6IFtcbiAgICAgICdUdXRvcmlhbHMnLFxuICAgICAgJ0NsYXNzZXMnLFxuICAgICAgJ01vZHVsZXMnLFxuICAgICAgJ0V4dGVybmFscycsXG4gICAgICAnRXZlbnRzJyxcbiAgICAgICdOYW1lc3BhY2VzJyxcbiAgICAgICdNaXhpbnMnLFxuICAgICAgJ0ludGVyZmFjZXMnXG4gICAgXSxcbiAgICBuYXZMZXZlbDogNSxcbiAgICBzZWFyY2g6IHRydWUsXG4gICAgY29sbGFwc2U6IGZhbHNlLFxuICB9XG59O1xuXG5leHBvcnQgZGVmYXVsdCBiYXNlQ29uZmlnO1xuIl19
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"logger.d.ts","sourceRoot":"","sources":["../../lib/logger.js"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
require("source-map-support/register");
|
|
9
|
+
|
|
10
|
+
var _support = require("@appium/support");
|
|
11
|
+
|
|
12
|
+
var _default = _support.logger.getLogger('Docutils');
|
|
13
|
+
|
|
14
|
+
exports.default = _default;
|
|
15
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9sb2dnZXIuanMiXSwibmFtZXMiOlsibG9nZ2VyIiwiZ2V0TG9nZ2VyIl0sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7QUFBQTs7ZUFFZUEsZ0JBQU9DLFNBQVAsQ0FBaUIsVUFBakIsQyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IGxvZ2dlciB9IGZyb20gJ0BhcHBpdW0vc3VwcG9ydCc7XG5cbmV4cG9ydCBkZWZhdWx0IGxvZ2dlci5nZXRMb2dnZXIoJ0RvY3V0aWxzJyk7XG4iXX0=
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export class Mike {
|
|
2
|
+
constructor(opts: MikeOpts);
|
|
3
|
+
/** @type string */ remote: string;
|
|
4
|
+
/** @type string */ branch: string;
|
|
5
|
+
/** @type string? */ prefix: string | null;
|
|
6
|
+
/** @type string */ configFile: string;
|
|
7
|
+
/** @type boolean */ _mikeVerified: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Throw an error if the 'mike' binary cannot be found
|
|
10
|
+
*
|
|
11
|
+
* @throws Error
|
|
12
|
+
*/
|
|
13
|
+
verifyMike(): Promise<void>;
|
|
14
|
+
/**
|
|
15
|
+
* Get an array of args based on the class members that can be used with Mike-related subprocess
|
|
16
|
+
* execution
|
|
17
|
+
*
|
|
18
|
+
* @param {string} cmdName - the name of the mike command to run
|
|
19
|
+
* @param {string[]} cmdArgs - an array of command-specific arguments
|
|
20
|
+
*
|
|
21
|
+
* @returns string[]
|
|
22
|
+
*/
|
|
23
|
+
getMikeArgs(cmdName: string, cmdArgs: string[]): (string | null)[];
|
|
24
|
+
/**
|
|
25
|
+
* Exec mike as a subprocess
|
|
26
|
+
*
|
|
27
|
+
* @param {string} mikeCmd - the mike command to run
|
|
28
|
+
* @param {string[]} [mikeArgs=[]] - the arguments to pass to the mike command
|
|
29
|
+
* @param {boolean?} [verify=true] - whether to verify mike exists first
|
|
30
|
+
*
|
|
31
|
+
* @returns Promise<import('teen_process').ExecResult<string>>
|
|
32
|
+
*/
|
|
33
|
+
exec(mikeCmd: string, mikeArgs?: string[] | undefined, verify?: boolean | null | undefined): Promise<import("teen_process").ExecResult<Buffer> & import("teen_process").ExecResult<string>>;
|
|
34
|
+
/**
|
|
35
|
+
* Return the list of mike deploys
|
|
36
|
+
*
|
|
37
|
+
* @returns string[]
|
|
38
|
+
*/
|
|
39
|
+
list(): Promise<string[]>;
|
|
40
|
+
/**
|
|
41
|
+
* Set the default version or alias
|
|
42
|
+
*
|
|
43
|
+
* @param {string} alias - the version or alias
|
|
44
|
+
*/
|
|
45
|
+
setDefault(alias: string): Promise<void>;
|
|
46
|
+
/**
|
|
47
|
+
* Deploy docs to the branch
|
|
48
|
+
*
|
|
49
|
+
* @param {MikeDeployOpts} opts - the deploy options
|
|
50
|
+
*/
|
|
51
|
+
deploy(opts: any): Promise<void>;
|
|
52
|
+
}
|
|
53
|
+
/**
|
|
54
|
+
* - options for instantiating a Mike object
|
|
55
|
+
*/
|
|
56
|
+
export type MikeOpts = {
|
|
57
|
+
/**
|
|
58
|
+
* - the git remote to push docs to
|
|
59
|
+
*/
|
|
60
|
+
remote?: string | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* - the git branch to push docs to
|
|
63
|
+
*/
|
|
64
|
+
branch?: string | undefined;
|
|
65
|
+
/**
|
|
66
|
+
* - the path prefix on the branch if any
|
|
67
|
+
*/
|
|
68
|
+
prefix: string | null;
|
|
69
|
+
/**
|
|
70
|
+
* - the mkdocs config file to use
|
|
71
|
+
*/
|
|
72
|
+
configFile: string;
|
|
73
|
+
};
|
|
74
|
+
/**
|
|
75
|
+
* - options for deploying docs with Mike
|
|
76
|
+
*/
|
|
77
|
+
export type MikeDeployOpts = any;
|
|
78
|
+
//# sourceMappingURL=mike.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mike.d.ts","sourceRoot":"","sources":["../../lib/mike.js"],"names":[],"mappings":"AAOA;IAOE,kBAAuB,QAAQ,EAK9B;IAXD,mBAAmB,CAAC,QAAV,MAAM,CAAW;IAC3B,mBAAmB,CAAC,QAAV,MAAM,CAAW;IAC3B,oBAAoB,CAAC,QAAX,MAAM,QAAY;IAC5B,mBAAmB,CAAC,YAAV,MAAM,CAAe;IAC/B,oBAAoB,CAAC,eAAX,OAAO,CAA0B;IAS3C;;;;OAIG;IACH,4BAaC;IAED;;;;;;;;OAQG;IACH,qBALW,MAAM,WACN,MAAM,EAAE,qBAYlB;IAED;;;;;;;;OAQG;IACH,cANW,MAAM,wKAahB;IAED;;;;OAIG;IACH,0BAGC;IAED;;;;OAIG;IACH,kBAFW,MAAM,iBAIhB;IAED;;;;OAIG;IACH,iCAeC;CAEF;;;;;;;;;;;;;;;;YAMa,MAAM;;;;gBACN,MAAM"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.Mike = void 0;
|
|
9
|
+
|
|
10
|
+
require("source-map-support/register");
|
|
11
|
+
|
|
12
|
+
var _teen_process = require("teen_process");
|
|
13
|
+
|
|
14
|
+
var _logger = _interopRequireDefault(require("./logger"));
|
|
15
|
+
|
|
16
|
+
const DEFAULT_REMOTE = 'origin';
|
|
17
|
+
const DEFAULT_BRANCH = 'gh-pages';
|
|
18
|
+
const MIKE_VER_STRING = 'mike 1.';
|
|
19
|
+
|
|
20
|
+
class Mike {
|
|
21
|
+
remote;
|
|
22
|
+
branch;
|
|
23
|
+
prefix;
|
|
24
|
+
configFile;
|
|
25
|
+
_mikeVerified = false;
|
|
26
|
+
|
|
27
|
+
constructor(opts) {
|
|
28
|
+
this.remote = opts.remote || DEFAULT_REMOTE;
|
|
29
|
+
this.branch = opts.branch || DEFAULT_BRANCH;
|
|
30
|
+
this.prefix = opts.prefix;
|
|
31
|
+
this.configFile = opts.configFile;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
async verifyMike() {
|
|
35
|
+
if (this._mikeVerified) {
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
try {
|
|
40
|
+
const {
|
|
41
|
+
stdout
|
|
42
|
+
} = await this.exec('--version', [], false);
|
|
43
|
+
|
|
44
|
+
if (!stdout.includes(MIKE_VER_STRING)) {
|
|
45
|
+
throw new Error('Mike was installed but was not version 1.x');
|
|
46
|
+
}
|
|
47
|
+
} catch (err) {
|
|
48
|
+
throw new Error(`Could not verify appropriate mike binary exists: ${err}`);
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
this._mikeVerified = true;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
getMikeArgs(cmdName, cmdArgs) {
|
|
55
|
+
return [cmdName, ...cmdArgs, '--config-file', this.configFile, '--remote', this.remote, '--branch', this.branch, '--prefix', this.prefix];
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async exec(mikeCmd, mikeArgs = [], verify = true) {
|
|
59
|
+
if (verify) {
|
|
60
|
+
await this.verifyMike();
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
const args = this.getMikeArgs(mikeCmd, mikeArgs);
|
|
64
|
+
|
|
65
|
+
_logger.default.debug(`Running mike ${args.join(' ')}`);
|
|
66
|
+
|
|
67
|
+
return await (0, _teen_process.exec)('mike', args);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
async list() {
|
|
71
|
+
const {
|
|
72
|
+
stdout
|
|
73
|
+
} = await this.exec('list');
|
|
74
|
+
return stdout.split('\n').map(s => s.trim()).filter(Boolean);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
async setDefault(alias) {
|
|
78
|
+
await this.exec('set-default', [alias]);
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
async deploy(opts) {
|
|
82
|
+
const args = [opts.version];
|
|
83
|
+
|
|
84
|
+
if (opts.alias) {
|
|
85
|
+
args.push(opts.alias, '--update-aliases');
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
if (opts.shouldPush) {
|
|
89
|
+
args.push('--push');
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if (opts.shouldRebase) {
|
|
93
|
+
args.push('--rebase');
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
if (opts.commit) {
|
|
97
|
+
args.push('--message', opts.commit);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
await this.exec('deploy', args);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
exports.Mike = Mike;
|
|
106
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9taWtlLmpzIl0sIm5hbWVzIjpbIkRFRkFVTFRfUkVNT1RFIiwiREVGQVVMVF9CUkFOQ0giLCJNSUtFX1ZFUl9TVFJJTkciLCJNaWtlIiwicmVtb3RlIiwiYnJhbmNoIiwicHJlZml4IiwiY29uZmlnRmlsZSIsIl9taWtlVmVyaWZpZWQiLCJjb25zdHJ1Y3RvciIsIm9wdHMiLCJ2ZXJpZnlNaWtlIiwic3Rkb3V0IiwiZXhlYyIsImluY2x1ZGVzIiwiRXJyb3IiLCJlcnIiLCJnZXRNaWtlQXJncyIsImNtZE5hbWUiLCJjbWRBcmdzIiwibWlrZUNtZCIsIm1pa2VBcmdzIiwidmVyaWZ5IiwiYXJncyIsImxvZyIsImRlYnVnIiwiam9pbiIsImxpc3QiLCJzcGxpdCIsIm1hcCIsInMiLCJ0cmltIiwiZmlsdGVyIiwiQm9vbGVhbiIsInNldERlZmF1bHQiLCJhbGlhcyIsImRlcGxveSIsInZlcnNpb24iLCJwdXNoIiwic2hvdWxkUHVzaCIsInNob3VsZFJlYmFzZSIsImNvbW1pdCJdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7QUFBQTs7QUFDQTs7QUFFQSxNQUFNQSxjQUFjLEdBQUcsUUFBdkI7QUFDQSxNQUFNQyxjQUFjLEdBQUcsVUFBdkI7QUFDQSxNQUFNQyxlQUFlLEdBQUcsU0FBeEI7O0FBRU8sTUF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mZpZyBmaWxlIHRvIHVzZVxuICovXG5cbi8qKlxuICogQHR5cGVkZWYgTWlrZURlcGxveU9wdHMgLSBvcHRpb25zIGZvciBkZXBsb3lpbmcgZG9jcyB3aXRoIE1pa2VcbiAqIEBwYXJhbSB7c3RyaW5nfSB2ZXJzaW9uIC0gdGhlIHZlcnNpb24gdG8gZGVwbG95XG4gKiBAcGFyYW0ge3N0cmluZz99IGFsaWFzIC0gdGhlIGFsaWFzIHRvIGFsaWFzIChvciByZS1hbGlhcykgdGhlIHZlcnNpb25cbiAqIEBwYXJhbSB7c3RyaW5nP30gY29tbWl0IC0gdGhlIGNvbW1pdCBtZXNzYWdlIHRvIHVzZSBhcyBhbiBvdmVycmlkZVxuICogQHBhcmFtIHtib29sZWFuP30gc2hvdWxkUHVzaCAtIHdoZXRoZXIgbWlrZSBzaG91bGQgcHVzaCB0aGUgY29tbWl0cyB0byB0aGUgcmVtb3RlXG4gKiBAcGFyYW0ge2Jvb2xlYW4/fSBzaG91bGRSZWJhc2UgLSB3aGV0aGVyIG1pa2Ugc2hvdWxkIHJlYmFzZVxuICovXG4iXX0=
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Run a version check on the system-installed mkdocs to make sure it is set up
|
|
3
|
+
*/
|
|
4
|
+
export function verifyMkdocs(): Promise<void>;
|
|
5
|
+
/**
|
|
6
|
+
* Run 'mkdocs build' on a project
|
|
7
|
+
*
|
|
8
|
+
* @param {string} configPath path to mkdocs config yml
|
|
9
|
+
* @param {string} outputDir directory mkdocs should build into
|
|
10
|
+
* @param {?string} theme theme name
|
|
11
|
+
*/
|
|
12
|
+
export function mkdocsBuild(configPath: string, outputDir: string, theme?: string | null): Promise<void>;
|
|
13
|
+
/**
|
|
14
|
+
* Run 'mkdocs serve' on a project
|
|
15
|
+
*
|
|
16
|
+
* @param {string} configPath path to mkdocs config yml
|
|
17
|
+
*/
|
|
18
|
+
export function mkdocsServe(configPath: string): Promise<void>;
|
|
19
|
+
//# sourceMappingURL=mkdocs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mkdocs.d.ts","sourceRoot":"","sources":["../../lib/mkdocs.js"],"names":[],"mappings":"AAIA;;GAEG;AACH,8CAUC;AAED;;;;;;GAMG;AACH,wCAJW,MAAM,aACN,MAAM,UACL,MAAM,wBAKjB;AAED;;;;GAIG;AACH,wCAFW,MAAM,iBAMhB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.mkdocsBuild = mkdocsBuild;
|
|
7
|
+
exports.mkdocsServe = mkdocsServe;
|
|
8
|
+
exports.verifyMkdocs = verifyMkdocs;
|
|
9
|
+
|
|
10
|
+
require("source-map-support/register");
|
|
11
|
+
|
|
12
|
+
var _teen_process = require("teen_process");
|
|
13
|
+
|
|
14
|
+
const MKDOCS_VER_STR = 'version 1.';
|
|
15
|
+
|
|
16
|
+
async function verifyMkdocs() {
|
|
17
|
+
try {
|
|
18
|
+
const {
|
|
19
|
+
stdout
|
|
20
|
+
} = await (0, _teen_process.exec)('mkdocs', ['-V']);
|
|
21
|
+
|
|
22
|
+
if (!stdout.includes(MKDOCS_VER_STR)) {
|
|
23
|
+
throw new Error('version mismatch');
|
|
24
|
+
}
|
|
25
|
+
} catch (err) {
|
|
26
|
+
throw new Error(`Could not verify mkdocs 1.x is available. Make sure it's installed ` + `and on your path. Specific error: ${err}`);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
async function mkdocsBuild(configPath, outputDir, theme = 'mkdocs') {
|
|
31
|
+
await verifyMkdocs();
|
|
32
|
+
await (0, _teen_process.exec)('mkdocs', ['build', '-f', configPath, '-t', theme, '-d', outputDir]);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
async function mkdocsServe(configPath) {
|
|
36
|
+
await verifyMkdocs();
|
|
37
|
+
const proc = new _teen_process.SubProcess('mkdocs', ['serve', '-f', configPath]);
|
|
38
|
+
await proc.start();
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL2xpYi9ta2RvY3MuanMiXSwibmFtZXMiOlsiTUtET0NTX1ZFUl9TVFIiLCJ2ZXJpZnlNa2RvY3MiLCJzdGRvdXQiLCJpbmNsdWRlcyIsIkVycm9yIiwiZXJyIiwibWtkb2NzQnVpbGQiLCJjb25maWdQYXRoIiwib3V0cHV0RGlyIiwidGhlbWUiLCJta2RvY3NTZXJ2ZSIsInByb2MiLCJTdWJQcm9jZXNzIiwic3RhcnQiXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7O0FBQUE7O0FBRUEsTUFBTUEsY0FBYyxHQUFHLFlBQXZCOztBQUtPLGVBQWVDLFlBQWYsR0FBK0I7QUFDcEMsTUFBSTtBQUNGLFVBQU07QUFBQ0MsTUFBQUE7QUFBRCxRQUFXLE1BQU0sd0JBQUssUUFBTCxFQUFlLENBQUMsSUFBRCxDQUFmLENBQXZCOztBQUNBLFFBQUksQ0FBQ0EsTUFBTSxDQUFDQyxRQUFQLENBQWdCSCxjQUFoQixDQUFMLEVBQXNDO0FBQ3BDLFlBQU0sSUFBSUksS0FBSixDQUFVLGtCQUFWLENBQU47QUFDRDtBQUNGLEdBTEQsQ0FLRSxPQUFPQyxHQUFQLEVBQVk7QUFDWixVQUFNLElBQUlELEtBQUosQ0FBVyxxRUFBRCxHQUNDLHFDQUFvQ0MsR0FBSSxFQURuRCxDQUFOO0FBRUQ7QUFDRjs7QUFTTSxlQUFlQyxXQUFmLENBQTRCQyxVQUE1QixFQUF3Q0MsU0FBeEMsRUFBbURDLEtBQUssR0FBRyxRQUEzRCxFQUFxRTtBQUMxRSxRQUFNUixZQUFZLEVBQWxCO0FBQ0EsUUFBTSx3QkFBS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2
|
+
|
|
3
|
+
require("source-map-support/register");
|
|
4
|
+
|
|
5
|
+
var _ = require("../..");
|
|
6
|
+
|
|
7
|
+
var _chai = require("chai");
|
|
8
|
+
|
|
9
|
+
describe('Mike', function () {
|
|
10
|
+
it('should create args from params', function () {
|
|
11
|
+
const m = new _.Mike({
|
|
12
|
+
configFile: '1',
|
|
13
|
+
remote: '2',
|
|
14
|
+
branch: '3',
|
|
15
|
+
prefix: '4'
|
|
16
|
+
});
|
|
17
|
+
(0, _chai.expect)(m.getMikeArgs('cmd', ['arg1', 'arg2'])).eql(['cmd', 'arg1', 'arg2', '--config-file', '1', '--remote', '2', '--branch', '3', '--prefix', '4']);
|
|
18
|
+
});
|
|
19
|
+
});
|
|
20
|
+
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Rlc3QvdW5pdC9taWtlLnNwZWMuanMiXSwibmFtZXMiOlsiZGVzY3JpYmUiLCJpdCIsIm0iLCJNaWtlIiwiY29uZmlnRmlsZSIsInJlbW90ZSIsImJyYW5jaCIsInByZWZpeCIsImdldE1pa2VBcmdzIiwiZXFsIl0sIm1hcHBpbmdzIjoiOzs7O0FBQUE7O0FBQ0E7O0FBRUFBLFFBQVEsQ0FBQyxNQUFELEVBQVMsWUFBWTtBQUUzQkMsRUFBQUEsRUFBRSxDQUFDLGdDQUFELEVBQW1DLFlBQVk7QUFDL0MsVUFBTUMsQ0FBQyxHQUFHLElBQUlDLE1BQUosQ0FBUztBQUFDQyxNQUFBQSxVQUFVLEVBQUUsR0FBYjtBQUFrQkMsTUFBQUEsTUFBTSxFQUFFLEdBQTFCO0FBQStCQyxNQUFBQSxNQUFNLEVBQUUsR0FBdkM7QUFBNENDLE1BQUFBLE1BQU0sRUFBRTtBQUFwRCxLQUFULENBQVY7QUFDQSxzQkFBT0wsQ0FBQyxDQUFDTSxXQUFGLENBQWMsS0FBZCxFQUFxQixDQUFDLE1BQUQsRUFBUyxNQUFULENBQXJCLENBQVAsRUFBK0NDLEdBQS9DLENBQW1ELENBQ2pELEtBRGlELEVBQzFDLE1BRDBDLEVBQ2xDLE1BRGtDLEVBQzFCLGVBRDBCLEVBQ1QsR0FEUyxFQUNKLFVBREksRUFDUSxHQURSLEVBQ2EsVUFEYixFQUN5QixHQUR6QixFQUM4QixVQUQ5QixFQUMwQyxHQUQxQyxDQUFuRDtBQUdELEdBTEMsQ0FBRjtBQU1ELENBUk8sQ0FBUiIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IE1pa2UgfSBmcm9tICcuLi8uLic7XG5pbXBvcnQgeyBleHBlY3QgfSBmcm9tICdjaGFpJztcblxuZGVzY3JpYmUoJ01pa2UnLCBmdW5jdGlvbiAoKSB7XG5cbiAgaXQoJ3Nob3VsZCBjcmVhdGUgYXJncyBmcm9tIHBhcmFtcycsIGZ1bmN0aW9uICgpIHtcbiAgICBjb25zdCBtID0gbmV3IE1pa2Uoe2NvbmZpZ0ZpbGU6ICcxJywgcmVtb3RlOiAnMicsIGJyYW5jaDogJzMnLCBwcmVmaXg6ICc0J30pO1xuICAgIGV4cGVjdChtLmdldE1pa2VBcmdzKCdjbWQnLCBbJ2FyZzEnLCAnYXJnMiddKSkuZXFsKFtcbiAgICAgICdjbWQnLCAnYXJnMScsICdhcmcyJywgJy0tY29uZmlnLWZpbGUnLCAnMScsICctLXJlbW90ZScsICcyJywgJy0tYnJhbmNoJywgJzMnLCAnLS1wcmVmaXgnLCAnNCdcbiAgICBdKTtcbiAgfSk7XG59KTtcbiJdfQ==
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es6.d.ts","../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/typescript/lib/lib.es2021.d.ts","../../../node_modules/typescript/lib/lib.es2022.d.ts","../../../node_modules/typescript/lib/lib.esnext.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/typescript/lib/lib.scripthost.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/typescript/lib/lib.es2021.promise.d.ts","../../../node_modules/typescript/lib/lib.es2021.string.d.ts","../../../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../../../node_modules/typescript/lib/lib.es2021.intl.d.ts","../../../node_modules/typescript/lib/lib.es2022.array.d.ts","../../../node_modules/typescript/lib/lib.es2022.error.d.ts","../../../node_modules/typescript/lib/lib.es2022.object.d.ts","../../../node_modules/typescript/lib/lib.es2022.string.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../lib/jsdoc-config-base.js","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/assert/strict.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/dns/promises.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/stream/promises.d.ts","../../../node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/@types/node/stream/web.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/timers/promises.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/globals.global.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@types/teen_process/index.d.ts","../lib/mkdocs.js","../../../node_modules/type-fest/source/primitive.d.ts","../../../node_modules/type-fest/source/typed-array.d.ts","../../../node_modules/type-fest/source/basic.d.ts","../../../node_modules/type-fest/source/observable-like.d.ts","../../../node_modules/type-fest/source/internal.d.ts","../../../node_modules/type-fest/source/except.d.ts","../../../node_modules/type-fest/source/simplify.d.ts","../../../node_modules/type-fest/source/mutable.d.ts","../../../node_modules/type-fest/source/merge.d.ts","../../../node_modules/type-fest/source/merge-exclusive.d.ts","../../../node_modules/type-fest/source/require-at-least-one.d.ts","../../../node_modules/type-fest/source/require-exactly-one.d.ts","../../../node_modules/type-fest/source/require-all-or-none.d.ts","../../../node_modules/type-fest/source/remove-index-signature.d.ts","../../../node_modules/type-fest/source/partial-deep.d.ts","../../../node_modules/type-fest/source/readonly-deep.d.ts","../../../node_modules/type-fest/source/literal-union.d.ts","../../../node_modules/type-fest/source/promisable.d.ts","../../../node_modules/type-fest/source/opaque.d.ts","../../../node_modules/type-fest/source/invariant-of.d.ts","../../../node_modules/type-fest/source/set-optional.d.ts","../../../node_modules/type-fest/source/set-required.d.ts","../../../node_modules/type-fest/source/value-of.d.ts","../../../node_modules/type-fest/source/promise-value.d.ts","../../../node_modules/type-fest/source/async-return-type.d.ts","../../../node_modules/type-fest/source/conditional-keys.d.ts","../../../node_modules/type-fest/source/conditional-except.d.ts","../../../node_modules/type-fest/source/conditional-pick.d.ts","../../../node_modules/type-fest/source/union-to-intersection.d.ts","../../../node_modules/type-fest/source/stringified.d.ts","../../../node_modules/type-fest/source/fixed-length-array.d.ts","../../../node_modules/type-fest/source/multidimensional-array.d.ts","../../../node_modules/type-fest/source/multidimensional-readonly-array.d.ts","../../../node_modules/type-fest/source/iterable-element.d.ts","../../../node_modules/type-fest/source/entry.d.ts","../../../node_modules/type-fest/source/entries.d.ts","../../../node_modules/type-fest/source/set-return-type.d.ts","../../../node_modules/type-fest/source/asyncify.d.ts","../../../node_modules/type-fest/source/jsonify.d.ts","../../../node_modules/type-fest/source/schema.d.ts","../../../node_modules/type-fest/source/literal-to-primitive.d.ts","../../../node_modules/type-fest/source/numeric.d.ts","../../../node_modules/type-fest/source/string-key-of.d.ts","../../../node_modules/type-fest/source/utilities.d.ts","../../../node_modules/type-fest/source/split.d.ts","../../../node_modules/type-fest/source/camel-case.d.ts","../../../node_modules/type-fest/source/camel-cased-properties.d.ts","../../../node_modules/type-fest/source/camel-cased-properties-deep.d.ts","../../../node_modules/type-fest/source/delimiter-case.d.ts","../../../node_modules/type-fest/source/kebab-case.d.ts","../../../node_modules/type-fest/source/delimiter-cased-properties.d.ts","../../../node_modules/type-fest/source/kebab-cased-properties.d.ts","../../../node_modules/type-fest/source/delimiter-cased-properties-deep.d.ts","../../../node_modules/type-fest/source/kebab-cased-properties-deep.d.ts","../../../node_modules/type-fest/source/pascal-case.d.ts","../../../node_modules/type-fest/source/pascal-cased-properties.d.ts","../../../node_modules/type-fest/source/pascal-cased-properties-deep.d.ts","../../../node_modules/type-fest/source/snake-case.d.ts","../../../node_modules/type-fest/source/snake-cased-properties.d.ts","../../../node_modules/type-fest/source/snake-cased-properties-deep.d.ts","../../../node_modules/type-fest/source/includes.d.ts","../../../node_modules/type-fest/source/screaming-snake-case.d.ts","../../../node_modules/type-fest/source/join.d.ts","../../../node_modules/type-fest/source/trim.d.ts","../../../node_modules/type-fest/source/get.d.ts","../../../node_modules/type-fest/source/last-array-element.d.ts","../../../node_modules/type-fest/source/package-json.d.ts","../../../node_modules/type-fest/source/tsconfig-json.d.ts","../../../node_modules/type-fest/index.d.ts","../../support/build/lib/npm.d.ts","../../support/build/lib/tempdir.d.ts","../../support/build/lib/system.d.ts","../../../node_modules/@types/uuid/index.d.ts","../../../node_modules/@types/shell-quote/index.d.ts","../../../node_modules/@types/bluebird/index.d.ts","../../support/build/lib/util.d.ts","../../../node_modules/@types/minimatch/index.d.ts","../../../node_modules/@types/glob/index.d.ts","../../../node_modules/@types/mv/index.d.ts","../../../node_modules/@types/rimraf/index.d.ts","../../../node_modules/@types/ncp/index.d.ts","../../../node_modules/@types/which/index.d.ts","../../../node_modules/sanitize-filename/index.d.ts","../../../node_modules/@types/klaw/index.d.ts","../../../node_modules/read-pkg/node_modules/type-fest/source/basic.d.ts","../../../node_modules/read-pkg/node_modules/type-fest/source/except.d.ts","../../../node_modules/read-pkg/node_modules/type-fest/source/mutable.d.ts","../../../node_modules/read-pkg/node_modules/type-fest/source/merge.d.ts","../../../node_modules/read-pkg/node_modules/type-fest/source/merge-exclusive.d.ts","../../../node_modules/read-pkg/node_modules/type-fest/source/require-at-least-one.d.ts","../../../node_modules/read-pkg/node_modules/type-fest/source/readonly-deep.d.ts","../../../node_modules/read-pkg/node_modules/type-fest/source/literal-union.d.ts","../../../node_modules/read-pkg/node_modules/type-fest/source/promisable.d.ts","../../../node_modules/read-pkg/node_modules/type-fest/source/package-json.d.ts","../../../node_modules/read-pkg/node_modules/type-fest/index.d.ts","../../../node_modules/@types/normalize-package-data/index.d.ts","../../../node_modules/read-pkg/index.d.ts","../../support/build/lib/fs.d.ts","../../support/build/lib/plist.d.ts","../../support/build/lib/mkdirp.d.ts","../../support/build/lib/log-internal.d.ts","../../../node_modules/axios/index.d.ts","../../../node_modules/@types/npmlog/index.d.ts","../../../node_modules/@types/json-schema/index.d.ts","../../schema/build/appium-config-schema.d.ts","../../schema/build/index.d.ts","../../types/build/appium-config.d.ts","../../types/build/config.d.ts","../../../node_modules/typescript/lib/typescript.d.ts","../../../node_modules/@wdio/types/build/compiler.d.ts","../../../node_modules/@wdio/types/build/frameworks.d.ts","../../../node_modules/@wdio/types/build/services.d.ts","../../../node_modules/@wdio/types/build/reporters.d.ts","../../../node_modules/@wdio/types/build/options.d.ts","../../../node_modules/@wdio/types/build/capabilities.d.ts","../../../node_modules/@wdio/types/build/clients.d.ts","../../../node_modules/@wdio/types/build/workers.d.ts","../../../node_modules/@wdio/types/build/index.d.ts","../../types/build/capabilities.d.ts","../../types/build/index.d.ts","../../support/build/lib/logging.d.ts","../../support/build/lib/process.d.ts","../../../node_modules/@types/yauzl/index.d.ts","../../support/build/lib/zip.d.ts","../../../node_modules/@jimp/core/types/jimp.d.ts","../../../node_modules/@jimp/core/types/etc.d.ts","../../../node_modules/@jimp/core/types/functions.d.ts","../../../node_modules/@jimp/core/types/utils.d.ts","../../../node_modules/@jimp/core/types/plugins.d.ts","../../../node_modules/@jimp/core/types/index.d.ts","../../../node_modules/@jimp/jpeg/index.d.ts","../../../node_modules/@jimp/png/index.d.ts","../../../node_modules/@jimp/bmp/index.d.ts","../../../node_modules/@jimp/tiff/index.d.ts","../../../node_modules/@jimp/gif/index.d.ts","../../../node_modules/@jimp/types/index.d.ts","../../../node_modules/@jimp/plugin-blit/index.d.ts","../../../node_modules/@jimp/plugin-blur/index.d.ts","../../../node_modules/@jimp/plugin-circle/index.d.ts","../../../node_modules/@jimp/plugin-color/index.d.ts","../../../node_modules/@jimp/plugin-contain/index.d.ts","../../../node_modules/@jimp/plugin-cover/index.d.ts","../../../node_modules/@jimp/plugin-crop/index.d.ts","../../../node_modules/@jimp/plugin-displace/index.d.ts","../../../node_modules/@jimp/plugin-dither/index.d.ts","../../../node_modules/@jimp/plugin-fisheye/index.d.ts","../../../node_modules/@jimp/plugin-flip/index.d.ts","../../../node_modules/@jimp/plugin-gaussian/index.d.ts","../../../node_modules/@jimp/plugin-invert/index.d.ts","../../../node_modules/@jimp/plugin-mask/index.d.ts","../../../node_modules/@jimp/plugin-normalize/index.d.ts","../../../node_modules/@jimp/plugin-print/index.d.ts","../../../node_modules/@jimp/plugin-resize/index.d.ts","../../../node_modules/@jimp/plugin-rotate/index.d.ts","../../../node_modules/@jimp/plugin-scale/index.d.ts","../../../node_modules/@jimp/plugin-shadow/index.d.ts","../../../node_modules/@jimp/plugin-threshold/index.d.ts","../../../node_modules/@jimp/plugins/index.d.ts","../../../node_modules/jimp/types/ts3.1/index.d.ts","../../../node_modules/@types/pngjs/index.d.ts","../../../node_modules/buffer/index.d.ts","../../support/build/lib/image-util.d.ts","../../support/build/lib/net.d.ts","../../support/build/lib/mjpeg.d.ts","../../support/build/lib/node.d.ts","../../support/build/lib/timing.d.ts","../../../node_modules/@types/lodash/common/common.d.ts","../../../node_modules/@types/lodash/common/array.d.ts","../../../node_modules/@types/lodash/common/collection.d.ts","../../../node_modules/@types/lodash/common/date.d.ts","../../../node_modules/@types/lodash/common/function.d.ts","../../../node_modules/@types/lodash/common/lang.d.ts","../../../node_modules/@types/lodash/common/math.d.ts","../../../node_modules/@types/lodash/common/number.d.ts","../../../node_modules/@types/lodash/common/object.d.ts","../../../node_modules/@types/lodash/common/seq.d.ts","../../../node_modules/@types/lodash/common/string.d.ts","../../../node_modules/@types/lodash/common/util.d.ts","../../../node_modules/@types/lodash/index.d.ts","../../support/build/lib/env.d.ts","../../support/build/lib/index.d.ts","../lib/logger.js","../lib/mike.js","../lib/index.js","../../../node_modules/@types/mocha/index.d.ts","../../../node_modules/@types/chai/index.d.ts","../../../node_modules/@types/sinonjs__fake-timers/index.d.ts","../../../node_modules/@types/sinon/index.d.ts","../../../node_modules/@types/sinon-chai/index.d.ts","../../../node_modules/@types/chai-as-promised/index.d.ts"],"fileInfos":["721cec59c3fef87aaf480047d821fb758b3ec9482c4129a54631e6e25e432a31",{"version":"3ac1b83264055b28c0165688fda6dfcc39001e9e7828f649299101c23ad0a0c3","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","e6b724280c694a9f588847f754198fb96c43d805f065c3a5b28bbc9594541c84","e21c071ca3e1b4a815d5f04a7475adcaeea5d64367e840dd0154096d705c3940","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","2f93dda35dafec68ec217c9ce67f0f4fbbbb030c055ac312641565ad60dd7e26","aea179452def8a6152f98f63b191b84e7cbd69b0e248c91e61fb2e52328abe8c",{"version":"72704b10d97777e15f1a581b73f88273037ef752d2e50b72287bd0a90af64fe6","affectsGlobalScope":true},{"version":"dbb73d4d99be496175cb432c74c2615f78c76f4272f1d83cba11ee0ed6dbddf0","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"5075b36ab861c8c0c45377cb8c96270d7c65f0eeaf105d53fac6850da61f1027","affectsGlobalScope":true},{"version":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"e8c9f4e445a489991ca1a4232667de3ac36b07ba75ea335971fbeacf2d26fe67","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"6ea9ab679ea030cf46c16a711a316078e9e02619ebaf07a7fcd16964aba88f2d","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"4fb2f9f86ad2bb3c54b761a8bfd5d2794b71baf2378e5c59370f0c720872370c","0d5a2ee1fdfa82740e0103389b9efd6bfe145a20018a2da3c02b89666181f4d9","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"92d63add669d18ebc349efbacd88966d6f2ccdddfb1b880b2db98ae3aa7bf7c4","affectsGlobalScope":true},"ccc94049a9841fe47abe5baef6be9a38fc6228807974ae675fb15dc22531b4be",{"version":"aeeee3998c5a730f8689f04038d41cf4245c9edbf6ef29a698e45b36e399b8ed","affectsGlobalScope":true},"95843d5cfafced8f3f8a5ce57d2335f0bcd361b9483587d12a25e4bd403b8216","afc6e96061af46bcff47246158caee7e056f5288783f2d83d6858cd25be1c565",{"version":"34f5bcac12b36d70304b73de5f5aab3bb91bd9919f984be80579ebcad03a624e","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","2f520601649a893e6a49a8851ebfcf4be8ce090dc1281c2a08a871cb04e8251f","f50c975ab7b50e25a69e3d8a3773894125b44e9698924105f23b812bf7488baf","2b8c764f856a1dd0a9a2bf23e5efddbff157de8138b0754010be561ae5fcaa90","76650408392bf49a8fbf3e2b6b302712a92d76af77b06e2da1cc8077359c4409","0af3121e68297b2247dd331c0d24dba599e50736a7517a5622d5591aae4a3122","6972fca26f6e9bd56197568d4379f99071a90766e06b4fcb5920a0130a9202be",{"version":"4a2628e95962c8ab756121faa3ac2ed348112ff7a87b5c286dd2cc3326546b4c","affectsGlobalScope":true},"80793b2277f31baa199234daed806fff0fb11491d1ebd3357e520c3558063f00","a049a59a02009fc023684fcfaf0ac526fe36c35dcc5d2b7d620c1750ba11b083","e3b886bacdd1fbf1f72e654596c80a55c7bc1d10bdf464aaf52f45ecd243862f","c665d5c50c2573aefd98f0ffb12c5583e333ed94294ce6f144a4163a8c84f09b","4b9a003b5c556c96784132945bb41c655ea11273b1917f5c8d0c154dd5fd20dd","a458dc78104cc80048ac24fdc02fe6dce254838094c2f25641b3f954d9721241",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"8a215750db3e2073511e07c9e293c8c40d6109e5c7368845e060bcc12adbae6f","abc1c425b2ad6720433f40f1877abfa4223f0f3dd486c9c28c492179ca183cb6","945a841f9a591197154c85386bc5a1467d42d325104bb36db51bc566bbb240be","10c39ce1df102994b47d4bc0c71aa9a6aea76f4651a5ec51914431f50bc883a1",{"version":"8207e7e6db9aa5fc7e61c8f17ba74cf9c115d26f51f91ee93f790815a7ea9dfb","affectsGlobalScope":true},"9f1069b9e2c051737b1f9b4f1baf50e4a63385a6a89c32235549ae87fc3d5492","ee18f2da7a037c6ceeb112a084e485aead9ea166980bf433474559eac1b46553","29c2706fa0cc49a2bd90c83234da33d08bb9554ecec675e91c1f85087f5a5324","0acbf26bf958f9e80c1ffa587b74749d2697b75b484062d36e103c137c562bc3","3fa48484c65913004d5abb5c0f917b61ea4684f32d05bb28c1ecfa5f05a9ed12","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"33eee034727baf564056b4ea719075c23d3b4767d0b5f9c6933b81f3d77774d2","c33a6ea7147af60d8e98f1ac127047f4b0d4e2ce28b8f08ff3de07ca7cc00637",{"version":"b42b47e17b8ece2424ae8039feb944c2e3ba4b262986aebd582e51efbdca93dc","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","2408611d9b4146e35d1dbd1f443ccd8e187c74614a54b80300728277529dbf11","998a3de5237518c0b3ac00a11b3b4417affb008aa20aedee52f3fdae3cb86151","ad41008ffe077206e1811fc873f4d9005b5fd7f6ab52bb6118fef600815a5cb4",{"version":"dd9ea469d1bfaf589c6a196275d35cb1aa14014707c2c46d920c7b921e8f5bca","affectsGlobalScope":true},"badae0df9a8016ac36994b0a0e7b82ba6aaa3528e175a8c3cb161e4683eec03e","c3db860bcaaaeb3bbc23f353bbda1f8ab82756c8d5e973bebb3953cb09ea68f2","235a53595bd20b0b0eeb1a29cb2887c67c48375e92f03749b2488fbd46d0b1a0","bc09393cd4cd13f69cf1366d4236fbae5359bb550f0de4e15767e9a91d63dfb1","9c266243b01545e11d2733a55ad02b4c00ecdbda99c561cd1674f96e89cdc958","c71155c05fc76ff948a4759abc1cb9feec036509f500174bc18dad4c7827a60c",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"1503a452a67127e5c2da794d1c7c44344d5038373aae16c9b03ac964db159edd","ebdec596e6c49602efbfe9cee483ff982e998608bd41db07da1feca311eadab4","f94960a778b6adac1086e3661258507155c0232a9aae00a960e5a674d063742a","cd51ceafea7762ad639afb3ca5b68e1e4ffeaacaa402d7ef2cae17016e29e098","1b8357b3fef5be61b5de6d6a4805a534d68fe3e040c11f1944e27d4aec85936a","4a15fc59b27b65b9894952048be2afc561865ec37606cd0f5e929ee4a102233b",{"version":"744e7c636288493667d553c8f8ebd666ccbc0e715df445a4a7c4a48812f20544","affectsGlobalScope":true},"7e54932a41fec3a9c7e0753e52c8b18cc67b3ffdd01aaacd49b73d638186ee22","af4e1dce65c1820f6fe21bdf2c3931209c539cb498da760f05ab709f2033f2b3","73ab4f2d7964bbad113751c4d13dac7b834407ef4570b50ff67b3b765c07d312","d70d12830ae15bd5967b2b38cb7e24b3ba43bff853e305b33ed519253055ce08","c0618e33d0191171349412c9c7b983bc05081c29c635da9003a6cf7bc5d81746","c974e1ad2639f94de0b566947273e3f3b2dad004c9383bf0ea8df7cf96b1afea","5ab8773f7671da7bafa0f95a5530425a3e8374b8de4f352e64f6dd48c65681ed","bcaa4b2494b205265de37f2b4d5def521055753e8ac8aaabdfb53fd514e2bfb4","2c04fbe9e9b0ca02a0e6a549d21274b72424f3b091416fd63229114c6ac255b7","c19d76cf730f70c239ddcdc84cb78123f43964866e3cedf1ec98f640c5f3ea25","99e9a144144565db9b916035289ee80760c7542170a182312d8c9f4dcca1c276","248957877dde8ba14cd9b8d45947523da23e2fb467646e57cd902a76b2fc693b","1043a791036b9136fe8b3e287b24f14df803a503f6abb3f347b48d1c444a6954","094501dd2107ce40723bbcf30fbc0012631031c3337cbcc2dad153d8d550d7bc","bc1ed67a1d1491918740d86502e5b86369f4b7d6af10ca86340e6df9218ed9c9","55b7d009c3e8bae890063ebbb9c299d14edab7bbe9f98bceb12ef6979b1698fe","c5efedb8f1bd29ca1fd7720a45087344e14d1ea66378ac470450ea00d0f63975","161156b76821d27d22affa815f02d96706aa0861751aece957b5740dd33139ca","4023372ecd33decd9e17cd21272a86403ad60a4a913ccde6b01982a8535db442","d62e0155e4e6eb3d7a799e1fb555bb24ed6ecbebd158f87fc31e98ec6b5fcf73","c38b9f9179364943113b3eb1dd1d86d580dd1b56b68203ced15a013e9e317f29","e157c542921a03c19bafc06a1ae6bfc377359b0d88d8995591a8cdc66d7bf027","491357771c3101332dbd241a58b3733c194a1ed1ca92e371361e702c8849afe2","d1406b0eee2a415d31130b6e8771b6d0eddf70658efbafe9723aad38f58dc63c","b05b738e0e28dfa84e59a038c8287335b6ca9f16c858bd95ed930de0845f18af","dff0fdb7dc8f8ed00db44b493f77b921312ce9ed8493cda4cc82a92e48914756","338aeec8241a5d326cf4afd96408f6ff36b20ff461ee35597bf84a8f707a2745","13b6d7b987a6c306c0f7d27d77136797edc88ac47fd5893c93b8ed51f9912be9","cfa6b71c0cb889d2a210dac350ef928d532cadb26f4035bc405ef03f80b4ce17","4de53c71c9fc54d7fa8870b95b44092ff53eb6fddcfd402e360ac421318f1ca8","1c6c29857deb02e33ec045a67c375eb210a3ea4bc61b5e8078d2fab2ebf7831e","8f36a2e511f634b14983b31199a813b6d91e9f5c8ca1a81c446cfcbe3a8cda45","7e7bf5e592f90ac5784005a7d10f9960d6ff02edebdc18ab87f8cb154d5c16ab","e1b74834e5baec5460bd44dd7c5e389337ebe9eb7903743d1a9dd5b75702ac73","5d4143cf9c0350f01ed6e3d72953c4d22b4abda0a0b2c6d83a595ca061a367a4","9aaf4ee44bdac023b659f1b5e8cfdf56f774edd182c4fec46708d79f6a762298","87b0641dd8bb365de2f97ec5be3ea7aa1bd714ea43f76b6b36039c5dd194e3eb","a47240f5153913c434c66cd660bbcbb01c97f6717756a14c2f59ac7feb49a134","b415d8fc78ef908cc3f02d031e5e9a1cf269dd386212aedd273a0601de175bac","679a500b60fdb879af3ff20dab0bc5937098dd1ea5b75f786c672fde09faaeef","4372b912f51cbf9f0da164599e0934031bff3f5135af1cd6425bd9e384167e0b","5a988bc94b1937ee835a83ae7bb7555a21b8bbcdfd4c8c705d1789d7a8244bc2","0eda42cf7a88e5186bbab20c42eef4cc3a7377da80c71a7bae01f224223f667c","3b2f213b50c0a3abc9ee877b3af6cb7d42bd7939c00801bfc39cb44fb9a4ac05","b484c72c73b4ae0cdee6bfb85f0ae6152b4435b59169fb460044305ef18429cf","d9df799b7d4d7d9a24b201ddffc575b1840e25f1a273650de6eef40f384b6239","ca89e452207fee3233d2cb45c28ad0a4a7e30ddf40b9ac69891dd2242859c6f9","dac79ace008b4b9147644e4d8834b4a62378990e1a1730843ac488fdf6ff5f32","54f6aeeb17ad58793455ad005027bc452b722f31755ac4d15c46bef05f941e58","48fc89daea2775641083563b0671d541dfa464f4aed9ecd6d1e1f61647e759d1","55eb179223f788fcb055cba854b63effc973f7d51cf130ab866fc161c30dd918","03107dc521b6273cf190f0be264b6f69cb43355c24320cc9e760c9ab6a7fdb22","8fb7a5ccc8533b5950772a7722d1f99c846274c7dec01d40c8f96f4fb559a7b8","1a9958339bc9d1092c53a7f13c08d29eac812534c3f61c7c7a2157ef558131a1","30137eda48ba9ccce5dfd6fa79dea587739cddfab6e280fc85f019d21488b393","e6c5a9682cb3328d41eb7f25fa231075f29307319a9d7ac679e52a7b74b6539c","0617c0c6bc0e35226b6000ef3e47fc45697348d33c305e61484b7d264f4737da","73a5569de4e23f58160c68e74b48587950b118d0105f9d71b86ae40fa5c258c4","16d7f5de02bfb62a7a69ef9497c790ed4a8119ce159b14cb763f2432298286e8","c79b44c1518bd3d1ad75aa82f2e54be1bde86cd7663624874c4047a8fc97f833","047f4ee6646463fb4fa44cd6d8083342713a4704693ce64942e77f62a1da0c38","1ccd27d6127a24d5abe36413f68b5e928c9e6f2cbab9825898379ecf18108dc2","baa32aa38cd8ac7128c5a5817a32d8dc8fd8d635a647b16a12485ae27df107ed","2641aff32336e35a5b702aa2d870a0891da29dc1c19ae48602678e2050614041","afb49d6869006d1ecab1c821fffaba08ff9fcbee6a23d1c25b1d894f7e2a727e","0a291a265ed539906809ac356e112b1b02226acd5db0707d0dbd6272d0ae7bd1","eef7bc20cb0460e4dbaaf4668deaeb1276ea3046e22ee901cfff3e2885c81726","81f4c04629d3c5c4e22ef2586462765c4825867eacb928673ae1afbe62bf83be","fab58e600970e66547644a44bc9918e3223aa2cbd9e8763cec004b2cfb48827e","c0dfe246179c685294cca8ba34f60731ad4095db8c97120e85bf57fc144a7d8c","338bd7c3518b05b4c473971be0e5f8f854aca7cdb00d1b97192c14860f4ebf2f","e8a3a142b4aa3acd0d61105fcffb3258a84560f94d13c362aae42925609c74e8","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","fd326577c62145816fe1acc306c734c2396487f76719d3785d4e825b34540b33","b0bc363dbdb9cd5a6772f3ab176ac1adcec1f245c6c546870415ef91008f6004","f4cf5f0ad1cfb0ceebbe4fbe8aaf0aa728e899c99cc36ec6c0c4b8f6e8a84c83","e021038f8cf781814ad05dd9b2a306976c5f7dc30be3f4596a086a84f2388d18","1e737469ef0482a3ca2ab4b98d2e193cc011448ca623299a4c5f38d5d6c1b554","ae02db44606a04880c676f200482d79436e3e8ac48f09307fc06c498e9c9221f","cfaf29b2c2b9a7566aaba8ade813e55863ffdfb88dc30f6d5254efb829256987",{"version":"99113e4c4599427330953ea8c0090f7b540d761cb9f162d39d65a130458feef4","affectsGlobalScope":true},"c58be3e560989a877531d3ff7c9e5db41c5dd9282480ccf197abfcc708a95b8d","4d1462b70f05fd1b16d7d4f78ac195824560a1dd96407de0a1fe964f3ec0e9d4","50d22844db90a0dcd359afeb59dd1e9a384d977b4b363c880b4e65047237a29e","b065ba1b9a52bc541a638fa4b11115644001bcf82a0a0b984b7c1834451bd2b5","cb328633afdbf2115fc1b44d5cf95558ca2bf84a4b36f6ce82a998e198c47bf6","d8b4c196cedbfbdd557ab5d5c609c32d8a77a86ac1a5e7406a06413ab56a1d67","091af8276fbc70609a00e296840bd284a2fe29df282f0e8dae2de9f0a706685f","537aff717746703d2157ec563b5de4f6393ce9f69a84ae62b49e9b6c80b6e587","8b108d831999b4c6b1df9c39cdcc57c059ef19219c441e5b61bca20aabb9f411","8714e4fab09146efd7db2d969cbeb50559225f09f40a2171d7ac122572d0d269","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","720f5916937961481bce84e956040e9d6375d43870762cf47e25fc227f3eee24","2dfe19de498444b172b62f86063f4a075203f023c35b860aa6a0e9e84ea901fe","013825efd63394b0b8869432cfb1d3879189aba9a0da979df808dc3fe55624e9","42d7edb069c45e38a073cdddeea0aa984129bf039aba3630f6e76896caf0b0f9","ab50fc338a9e0f6571e1143738eed70c3aa2fa7247667396167eba1ca402b607","2808645b990069e5f8b5ff14c9f1e6077eb642583c3f7854012d60757f23c70e","df38da6685578ac3d0e4ce2d20f3d59462ee53959b8263d2532ec9cec48ae098","f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6","7d9161ec720909c6abf2957b3f62d1ab27f2623e380a39d147715d43d8abd414","6101949945c252c5706da566e06b7be2a4cc48e73f25165add3c081d0dd37578","a983207132524290a38f8c5e3e1799c4b3372c66835ee1a9c207f42fc5220d88","8f55068da250ce5c00ce636f4c33b7e50fb15a75a84bf6092595e419e678dc2a","ba00bb2ada9a5b7e0ab18c7282c0161f5af809112e4439b35c8b3853f7d436a7","a47b38aac630271c68667d717c865e4c98200bd90b4a8859d3f07460da09adec","46ab84953b0abb33ae9a42af24c97883e68f1080f084ffb9436181b3f147776c","d97f055b516d74e0c0bace388e6bbe3bc386a9599a1d1862ba8a669e892a1d2a","dda8410786fe1a473b420c6b95ab797b3cdac5705806ada1e062754b13291e79","60a4f4d1acdf72f3f07b9750884ca59e0d0333f016c071cb97215132c0625e67","ddb1df798b107101e0243da6cd5fcddca1c122482b07ca3ad476c90c703fc23a","db412fc192357cd4bff3e93e79030ea404b7d2cf8c089d2fe9d53ba010f1a916","7bc97e823dd70d66e9640998837ca0aad3480b415035dbd2074e3a450166e221",{"version":"aef0597f694334e5da630438a38b966d7da7b5265af8f0f3685d1baf42df5178","affectsGlobalScope":true},"10487580175f86d0789473002b4b6e6606f9a4d7d3965f91066361aa8629297a","18d197cf1c0e7990839cde40a538b992545d479228d25639ce7dffaa5b42c056","0c986e09efecf29b8cef361937b46764750dbb8902241ae5f0ab4e6fd526bbd2","962705e6b720553f5590fb20cc2be706aee3823f59a89c504a31a82f8e9a9937","65dfa4bc49ccd1355789abb6ae215b302a5b050fdee9651124fe7e826f33113c","d8eeb61233755ec2ff1fee38ab3a423843128e499d69d62e90e54d436fc0890c","61c19bbc816b7685a7f7c90928b978fd384820471bed4eb3c8a8d2f2c6d6f51b","81cba1ca948d7a158b75d9bf342955793576687c61930f9d87a331a968c820bc","ac26e1df718b688cb69170ef4a10c4615796af3042dc4a2d533b295095052142","e5435a253e31a74a5ba34cddd2983c2b6e7798be830cf9896656f3dd02d513a3","c58c3df82dbbac85d6cbbfb6ece2a425c125db04ef0ceb3f034d33f6258a595b","107c1b5064b01db7a55616d09c5b6c278cd402c6afb82fcbf95fe28b48920d22","616293f491f8f8038be5cc29418493ba333e6e98820b0e85a6bf02a333667eb8","e32df6324918608e0d404ed125e7f2429a21315830f81d15a22958e53c3bbe97","0f6dc41bab0e1f96f70f46d797644d0d32a491e34a390e3411f61ecbbef3159b","07d406e2b9185f08617234e5d1307789c202e99159f3aa1a13670df39589a2fe","6f690985c908fd2d566f694394016be3e757fb7094e1e3d8be8545813af0453f","cf34998d6c868eb5d814521523731767ceed7d00bddaf40f82f89ef861c411bf","0298fb593e400ab7d61366fad5e84399f224bee4bb1cd3dc0cfaae0e2929c3d7","6adab4f1c0c67ce871828183137449e443e17a4142529a32b22f189f3c737af6","1be04a4005e2b7f5b2688e2d4de704ae68c9d95ebacc0367b8b5730bd8c50fb1","83c2f5af37e6d351b3d2f6824c8c0fe85361e2640035bef7c9e56a5dfeedcd35","101b82e4cc6bc4230c4c764ce8f28d0841a665c38f7c1a40981b2727ebc1bf3c","9c7efe7cc60262099e1f7bb4fbc6d0014df273c9049e744ffb484e6761a7e2ad","259b9513ebf3c844555adec1e27878aaa9e057046f8163fcbb9f3b8a8495440b","0634e12db1decbf3edc562dcf8e2b7f4affe4919a21005d6bea90aa9532612aa","3c464b3eecdf5cd990dcd882a04608f4ae29b99fc24ffbff970e340ac5d4eef1","6daca098a3cf1585848a1464458143442ef8042470cb975ef7ab360afa7651b6","c7b5b995bd17d27758d13f8d200d9748d8fcb5491dd5593a4e840e5abdd4e0c3","a8d4833b2b4896c44af60626a844a086c8120807cf2e6a39d2dc80ab5d1af972","40156b6e614fe0b0aa4af9c21a0157eb84758e572ae700788ff9d436fae78c2b","f0867230a5838be63be92c9480a65f1d075eec34683212e080002760a6174c83","098d6936c459f18218ad71cde5aa25562a74461701c3551c544aecfd2c6226e7","405dc951dda9d1ba88aa742a04541a749973bafa7873f1b49c3065a6dc05e170","fc9091f36b50dfc7e47b6183bd7b4294a20878e1d826f38f44e7053d403358ed","4c846ba0a980408c10c12ed8358bcabdb8ca97aee0bb8869becaea412d6e89bb","ed995ca53b2c1b6bc1555bbee8bc12ea290b2117d89dc1c27c1333f8c3a97d35","26a8c45aaa7c9b7cb356b565f880295b5a94b14f0c348b41dd776cbeab9f06e1","a18ab8a8420f372aab81c57e9eb3b0c29a8a7760eab40328765d65a3d2dff5ac","15465dcb7504e00902baf1c1bf1195c35a20612a300fcd8482836c9319af2d1b","762539fa7b805a2ca94de8b9587db0dfe12ae440848678d028707b70f31acced","0b6a0b628776a3e3a4aeeba090438a26e7ffa15373ce658452c78c1f2254665d","8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","60f9122e77e76854919d5dbcd65b6bfab89fc5950978ff57922855640c0c31be","bfea1f2e8cfd701e13959c0d169f3881518627c561aa3ff737cd7c884669332b","24c9e3562d6219c42f7cf3392a4d17c0987320ca7fe41d5bf5ea89abe62ba1df","804867f5fca5c3dc223c5cd72d9a67f55054c9470d8070b82c6c60af12ed947c","ac4b57f7e49e3a7b26673d3f77e029e156f3c9f5dcfbaf163b0ac3ba64a0ca8f","675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","fe4a2042d087990ebfc7dc0142d5aaf5a152e4baea86b45f283f103ec1e871ea","d70c026dd2eeaa974f430ea229230a1897fdb897dc74659deebe2afd4feeb08f","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","febf0b2de54781102b00f61653b21377390a048fbf5262718c91860d11ff34a6","ca59fe42b81228a317812e95a2e72ccc8c7f1911b5f0c2a032adf41a0161ec5d","9364c7566b0be2f7b70ff5285eb34686f83ccb01bda529b82d23b2a844653bfb","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","ae9930989ed57478eb03b9b80ad3efa7a3eacdfeff0f78ecf7894c4963a64f93","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3e59f00ab03c33717b3130066d4debb272da90eeded4935ff0604c2bc25a5cae","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9",{"version":"f2eff8704452659641164876c1ef0df4174659ce7311b0665798ea3f556fa9ad","affectsGlobalScope":true},"527f5003200ae2336b474ff3c190916a2591f8260d68e1d93c1c6b276231fbda","0a953abb3c7483a9ca87e3adcc0a9799450b4b9be169c041bd77fa17a59303ea","df18bb7fdf404bd297e20b8be5f99018dfe1501a72fc6c01fb4cf8136c5f2e8d","fa3e0406934c567f01452d6383a8801152e25e6c7a20ae5b30945600f9f65b4e","6d5392d6ed109e067a7d56977a1e7dcdd708dd7accff1beaba49e4c4f5adb0ec",{"version":"30bf01dd2e284098445264c8d71c608890cc11c142f36d0193aa655bdc0a40cb","affectsGlobalScope":true},{"version":"3a15910b7f45dfc393f010ee8f913580b08d65752800fc48147ea13445acd5f7","affectsGlobalScope":true},"f83b320cceccfc48457a818d18fc9a006ab18d0bdd727aa2c2e73dc1b4a45e98","24a09dc3e07d69b0a224dbd14b2994c40d1efd0954e759004b61b9e683dabe5f",{"version":"0fd3b5704bf037608646df5aa053fd06819ff69302ff6ada9736c300f79df852","affectsGlobalScope":true},{"version":"63e2182615c513e89bb8a3e749d08f7c379e86490fcdbf6d35f2c14b3507a6e8","affectsGlobalScope":true}],"options":{"allowSyntheticDefaultImports":true,"composite":true,"declaration":true,"declarationMap":true,"emitDeclarationOnly":true,"module":5,"outDir":"./","removeComments":false,"rootDir":"..","strictNullChecks":true,"target":2},"fileIdsList":[[99,238],[99,233],[99,233,234,235,236,237],[99,234],[99,234,236],[99,237],[99,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265],[99,239,240,241,242,243],[99],[99,294],[71,72,99,106,185],[72,88,99,106],[99,275,277,278,279,280,281,282,283,284,285,286,287],[99,275,276,278,279,280,281,282,283,284,285,286,287],[99,276,277,278,279,280,281,282,283,284,285,286,287],[99,275,276,277,279,280,281,282,283,284,285,286,287],[99,275,276,277,278,280,281,282,283,284,285,286,287],[99,275,276,277,278,279,281,282,283,284,285,286,287],[99,275,276,277,278,279,280,282,283,284,285,286,287],[99,275,276,277,278,279,280,281,283,284,285,286,287],[99,275,276,277,278,279,280,281,282,284,285,286,287],[99,275,276,277,278,279,280,281,282,283,285,286,287],[99,275,276,277,278,279,280,281,282,283,284,286,287],[99,275,276,277,278,279,280,281,282,283,284,285,287],[99,275,276,277,278,279,280,281,282,283,284,285,286],[72,99,106],[56,99],[59,99],[60,65,99],[61,71,72,79,88,98,99],[61,62,71,79,99],[63,99],[64,65,72,80,99],[65,88,95,99],[66,68,71,79,99],[67,99],[68,69,99],[70,71,99],[71,99],[71,72,73,88,98,99],[71,72,73,88,99],[74,79,88,98,99],[71,72,74,75,79,88,95,98,99],[74,76,88,95,98,99],[56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105],[71,77,99],[78,98,99],[68,71,79,88,99],[80,99],[81,99],[59,82,99],[83,97,99,103],[84,99],[85,99],[71,86,99],[86,87,99,101],[71,88,89,90,99],[88,90,99],[88,89,99],[91,99],[92,99],[71,93,94,99],[93,94,99],[65,79,95,99],[96,99],[79,97,99],[60,74,85,98,99],[65,99],[88,99,100],[99,101],[99,102],[60,65,71,73,82,88,98,99,101,103],[88,99,104],[88,99,104,106],[72,99,106,186],[99,294,296],[99,295],[61,71,98,99,106],[71,88,99,106],[99,222],[99,223],[99,217],[99,219,220,221,222,223,224,225],[74,76,98,99,106,218,220,221,223],[71,72,99,106],[99,106,219,222,223],[71,99,106,222,223],[99,238,244,266],[99,203,204],[99,193,194,195,196,197,198,199,200,201,202],[99,193],[99,194],[99,203],[99,109,110,111,112,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176],[99,132],[99,132,145],[99,152,153],[99,154],[99,114,134],[99,134],[99,152],[99,157],[99,143],[99,113],[99,151,152,153],[99,109],[99,127],[99,111],[99,161],[99,159],[99,114,115],[99,125],[99,163],[99,114],[99,157,166,169],[55,99,108,291],[99,289],[99,107,290],[99,107],[99,212],[99,213],[99,205,287],[72,99,106,183,186,187,188,189,190,191,192,205],[60,99,106,267,268],[99,178,179,180,184,206,207,208,229,230,232,270,271,272,273,274,288],[99,209,228],[88,99],[99,210],[99,107,177],[99,181,182,183],[99,231],[99,226],[99,214,215],[71,74,99,106,177,210,211,215,216,227]],"referencedMap":[[241,1],[234,2],[235,2],[238,3],[233,4],[237,5],[236,6],[243,1],[239,1],[245,1],[246,1],[247,1],[248,1],[249,1],[250,1],[251,1],[252,1],[253,1],[254,1],[255,1],[256,1],[257,1],[258,1],[259,1],[260,1],[261,1],[262,1],[263,1],[264,1],[265,1],[266,7],[240,1],[242,1],[244,8],[183,9],[298,10],[294,9],[186,11],[212,9],[192,12],[276,13],[277,14],[275,15],[278,16],[279,17],[280,18],[281,19],[282,20],[283,21],[284,22],[285,23],[286,24],[287,25],[185,9],[293,9],[187,9],[189,26],[56,27],[57,27],[59,28],[60,29],[61,30],[62,31],[63,32],[64,33],[65,34],[66,35],[67,36],[68,37],[69,37],[70,38],[71,39],[72,40],[73,41],[58,9],[105,9],[74,42],[75,43],[76,44],[106,45],[77,46],[78,47],[79,48],[80,49],[81,50],[82,51],[83,52],[84,53],[85,54],[86,55],[87,56],[88,57],[90,58],[89,59],[91,60],[92,61],[93,62],[94,63],[95,64],[96,65],[97,66],[98,67],[99,68],[100,69],[101,70],[102,71],[103,72],[104,73],[204,9],[211,39],[268,74],[188,75],[182,9],[297,76],[296,77],[295,9],[107,78],[181,9],[190,9],[231,79],[223,80],[224,81],[218,82],[219,9],[226,83],[222,84],[221,85],[220,86],[225,87],[210,9],[269,9],[267,88],[205,89],[203,90],[193,9],[194,9],[200,91],[197,9],[196,92],[195,9],[202,93],[201,9],[199,91],[198,92],[191,9],[177,94],[133,95],[146,96],[111,9],[154,97],[156,98],[155,98],[135,99],[134,9],[136,100],[157,101],[161,102],[159,102],[144,103],[143,9],[114,104],[139,9],[173,105],[169,104],[113,106],[128,107],[142,9],[171,9],[147,108],[158,102],[162,109],[160,110],[174,9],[149,9],[125,106],[118,9],[117,111],[140,104],[141,104],[116,111],[150,9],[112,9],[127,9],[175,112],[123,104],[163,98],[165,113],[164,113],[109,9],[126,9],[132,9],[124,104],[122,9],[121,9],[119,114],[120,9],[148,9],[170,115],[129,111],[130,111],[145,9],[115,9],[166,102],[168,109],[167,110],[153,9],[151,9],[138,9],[172,9],[176,9],[110,9],[137,9],[152,9],[131,9],[12,9],[13,9],[17,9],[16,9],[3,9],[18,9],[19,9],[20,9],[21,9],[22,9],[23,9],[24,9],[25,9],[4,9],[5,9],[29,9],[26,9],[27,9],[28,9],[30,9],[31,9],[32,9],[6,9],[33,9],[34,9],[35,9],[36,9],[7,9],[37,9],[38,9],[39,9],[40,9],[8,9],[45,9],[41,9],[42,9],[43,9],[44,9],[9,9],[49,9],[46,9],[47,9],[48,9],[50,9],[10,9],[51,9],[52,9],[53,9],[2,9],[1,9],[11,9],[54,9],[15,9],[14,9],[217,9],[292,116],[55,50],[290,117],[291,118],[108,119],[213,120],[214,121],[288,122],[206,123],[270,124],[289,125],[209,9],[229,126],[272,127],[208,26],[271,128],[273,9],[178,129],[207,9],[230,9],[180,9],[179,9],[274,9],[184,130],[232,131],[215,9],[227,132],[216,133],[228,134]],"exportedModulesMap":[[241,1],[234,2],[235,2],[238,3],[233,4],[237,5],[236,6],[243,1],[239,1],[245,1],[246,1],[247,1],[248,1],[249,1],[250,1],[251,1],[252,1],[253,1],[254,1],[255,1],[256,1],[257,1],[258,1],[259,1],[260,1],[261,1],[262,1],[263,1],[264,1],[265,1],[266,7],[240,1],[242,1],[244,8],[183,9],[298,10],[294,9],[186,11],[212,9],[192,12],[276,13],[277,14],[275,15],[278,16],[279,17],[280,18],[281,19],[282,20],[283,21],[284,22],[285,23],[286,24],[287,25],[185,9],[293,9],[187,9],[189,26],[56,27],[57,27],[59,28],[60,29],[61,30],[62,31],[63,32],[64,33],[65,34],[66,35],[67,36],[68,37],[69,37],[70,38],[71,39],[72,40],[73,41],[58,9],[105,9],[74,42],[75,43],[76,44],[106,45],[77,46],[78,47],[79,48],[80,49],[81,50],[82,51],[83,52],[84,53],[85,54],[86,55],[87,56],[88,57],[90,58],[89,59],[91,60],[92,61],[93,62],[94,63],[95,64],[96,65],[97,66],[98,67],[99,68],[100,69],[101,70],[102,71],[103,72],[104,73],[204,9],[211,39],[268,74],[188,75],[182,9],[297,76],[296,77],[295,9],[107,78],[181,9],[190,9],[231,79],[223,80],[224,81],[218,82],[219,9],[226,83],[222,84],[221,85],[220,86],[225,87],[210,9],[269,9],[267,88],[205,89],[203,90],[193,9],[194,9],[200,91],[197,9],[196,92],[195,9],[202,93],[201,9],[199,91],[198,92],[191,9],[177,94],[133,95],[146,96],[111,9],[154,97],[156,98],[155,98],[135,99],[134,9],[136,100],[157,101],[161,102],[159,102],[144,103],[143,9],[114,104],[139,9],[173,105],[169,104],[113,106],[128,107],[142,9],[171,9],[147,108],[158,102],[162,109],[160,110],[174,9],[149,9],[125,106],[118,9],[117,111],[140,104],[141,104],[116,111],[150,9],[112,9],[127,9],[175,112],[123,104],[163,98],[165,113],[164,113],[109,9],[126,9],[132,9],[124,104],[122,9],[121,9],[119,114],[120,9],[148,9],[170,115],[129,111],[130,111],[145,9],[115,9],[166,102],[168,109],[167,110],[153,9],[151,9],[138,9],[172,9],[176,9],[110,9],[137,9],[152,9],[131,9],[12,9],[13,9],[17,9],[16,9],[3,9],[18,9],[19,9],[20,9],[21,9],[22,9],[23,9],[24,9],[25,9],[4,9],[5,9],[29,9],[26,9],[27,9],[28,9],[30,9],[31,9],[32,9],[6,9],[33,9],[34,9],[35,9],[36,9],[7,9],[37,9],[38,9],[39,9],[40,9],[8,9],[45,9],[41,9],[42,9],[43,9],[44,9],[9,9],[49,9],[46,9],[47,9],[48,9],[50,9],[10,9],[51,9],[52,9],[53,9],[2,9],[1,9],[11,9],[54,9],[15,9],[14,9],[217,9],[292,116],[55,50],[290,117],[291,118],[108,119],[213,120],[214,121],[288,122],[206,123],[270,124],[289,125],[209,9],[229,126],[272,127],[208,26],[271,128],[273,9],[178,129],[207,9],[230,9],[180,9],[179,9],[274,9],[184,130],[232,131],[215,9],[227,132],[216,133],[228,134]],"semanticDiagnosticsPerFile":[241,234,235,238,233,237,236,243,239,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,240,242,244,183,298,294,186,212,192,276,277,275,278,279,280,281,282,283,284,285,286,287,185,293,187,189,56,57,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,58,105,74,75,76,106,77,78,79,80,81,82,83,84,85,86,87,88,90,89,91,92,93,94,95,96,97,98,99,100,101,102,103,104,204,211,268,188,182,297,296,295,107,181,190,231,223,224,218,219,226,222,221,220,225,210,269,267,205,203,193,194,200,197,196,195,202,201,199,198,191,177,133,146,111,154,156,155,135,134,136,157,161,159,144,143,114,139,173,169,113,128,142,171,147,158,162,160,174,149,125,118,117,140,141,116,150,112,127,175,123,163,165,164,109,126,132,124,122,121,119,120,148,170,129,130,145,115,166,168,167,153,151,138,172,176,110,137,152,131,12,13,17,16,3,18,19,20,21,22,23,24,25,4,5,29,26,27,28,30,31,32,6,33,34,35,36,7,37,38,39,40,8,45,41,42,43,44,9,49,46,47,48,50,10,51,52,53,2,1,11,54,15,14,217,292,55,290,291,108,213,214,288,206,270,289,209,229,272,208,271,273,178,207,230,180,179,274,184,232,215,227,216,228]},"version":"4.6.3"}
|
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('./build/lib');
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import path from 'path';
|
|
2
|
+
|
|
3
|
+
const docdashEntry = require.resolve('docdash');
|
|
4
|
+
const docdashPath = path.dirname(docdashEntry);
|
|
5
|
+
|
|
6
|
+
const baseConfig = {
|
|
7
|
+
plugins: ['plugins/markdown', 'jsdoc-plugin-typescript'],
|
|
8
|
+
opts: {
|
|
9
|
+
destination: './jsdoc-out',
|
|
10
|
+
tutorials: './docs',
|
|
11
|
+
source: {
|
|
12
|
+
include: ['./lib'],
|
|
13
|
+
exclude: [],
|
|
14
|
+
includePattern: '.+\\.js(doc|x)?$',
|
|
15
|
+
excludePattern: '(^|\\/|\\\\)_',
|
|
16
|
+
},
|
|
17
|
+
template: docdashPath,
|
|
18
|
+
encoding: 'utf8',
|
|
19
|
+
},
|
|
20
|
+
typescript: {
|
|
21
|
+
moduleRoot: 'lib',
|
|
22
|
+
},
|
|
23
|
+
docdash: {
|
|
24
|
+
sectionOrder: [
|
|
25
|
+
'Tutorials',
|
|
26
|
+
'Classes',
|
|
27
|
+
'Modules',
|
|
28
|
+
'Externals',
|
|
29
|
+
'Events',
|
|
30
|
+
'Namespaces',
|
|
31
|
+
'Mixins',
|
|
32
|
+
'Interfaces'
|
|
33
|
+
],
|
|
34
|
+
navLevel: 5,
|
|
35
|
+
search: true,
|
|
36
|
+
collapse: false,
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export default baseConfig;
|
package/lib/logger.js
ADDED
package/lib/mike.js
ADDED
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { exec } from 'teen_process';
|
|
2
|
+
import log from './logger';
|
|
3
|
+
|
|
4
|
+
const DEFAULT_REMOTE = 'origin';
|
|
5
|
+
const DEFAULT_BRANCH = 'gh-pages';
|
|
6
|
+
const MIKE_VER_STRING = 'mike 1.';
|
|
7
|
+
|
|
8
|
+
export class Mike {
|
|
9
|
+
/** @type string */ remote;
|
|
10
|
+
/** @type string */ branch;
|
|
11
|
+
/** @type string? */ prefix;
|
|
12
|
+
/** @type string */ configFile;
|
|
13
|
+
/** @type boolean */ _mikeVerified = false;
|
|
14
|
+
|
|
15
|
+
constructor (/** @type MikeOpts */opts) {
|
|
16
|
+
this.remote = opts.remote || DEFAULT_REMOTE;
|
|
17
|
+
this.branch = opts.branch || DEFAULT_BRANCH;
|
|
18
|
+
this.prefix = opts.prefix;
|
|
19
|
+
this.configFile = opts.configFile;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Throw an error if the 'mike' binary cannot be found
|
|
24
|
+
*
|
|
25
|
+
* @throws Error
|
|
26
|
+
*/
|
|
27
|
+
async verifyMike () {
|
|
28
|
+
if (this._mikeVerified) {
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
try {
|
|
32
|
+
const {stdout} = await this.exec('--version', [], false);
|
|
33
|
+
if (!stdout.includes(MIKE_VER_STRING)) {
|
|
34
|
+
throw new Error('Mike was installed but was not version 1.x');
|
|
35
|
+
}
|
|
36
|
+
} catch (err) {
|
|
37
|
+
throw new Error(`Could not verify appropriate mike binary exists: ${err}`);
|
|
38
|
+
}
|
|
39
|
+
this._mikeVerified = true;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
/**
|
|
43
|
+
* Get an array of args based on the class members that can be used with Mike-related subprocess
|
|
44
|
+
* execution
|
|
45
|
+
*
|
|
46
|
+
* @param {string} cmdName - the name of the mike command to run
|
|
47
|
+
* @param {string[]} cmdArgs - an array of command-specific arguments
|
|
48
|
+
*
|
|
49
|
+
* @returns string[]
|
|
50
|
+
*/
|
|
51
|
+
getMikeArgs (cmdName, cmdArgs) {
|
|
52
|
+
return [
|
|
53
|
+
cmdName, ...cmdArgs,
|
|
54
|
+
'--config-file', this.configFile,
|
|
55
|
+
'--remote', this.remote,
|
|
56
|
+
'--branch', this.branch,
|
|
57
|
+
'--prefix', this.prefix,
|
|
58
|
+
];
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Exec mike as a subprocess
|
|
63
|
+
*
|
|
64
|
+
* @param {string} mikeCmd - the mike command to run
|
|
65
|
+
* @param {string[]} [mikeArgs=[]] - the arguments to pass to the mike command
|
|
66
|
+
* @param {boolean?} [verify=true] - whether to verify mike exists first
|
|
67
|
+
*
|
|
68
|
+
* @returns Promise<import('teen_process').ExecResult<string>>
|
|
69
|
+
*/
|
|
70
|
+
async exec (mikeCmd, mikeArgs = [], verify = true) {
|
|
71
|
+
if (verify) {
|
|
72
|
+
await this.verifyMike();
|
|
73
|
+
}
|
|
74
|
+
const args = this.getMikeArgs(mikeCmd, mikeArgs);
|
|
75
|
+
log.debug(`Running mike ${args.join(' ')}`);
|
|
76
|
+
return await exec('mike', args);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Return the list of mike deploys
|
|
81
|
+
*
|
|
82
|
+
* @returns string[]
|
|
83
|
+
*/
|
|
84
|
+
async list () {
|
|
85
|
+
const {stdout} = await this.exec('list');
|
|
86
|
+
return stdout.split('\n').map((s) => s.trim()).filter(Boolean);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Set the default version or alias
|
|
91
|
+
*
|
|
92
|
+
* @param {string} alias - the version or alias
|
|
93
|
+
*/
|
|
94
|
+
async setDefault (alias) {
|
|
95
|
+
await this.exec('set-default', [alias]);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Deploy docs to the branch
|
|
100
|
+
*
|
|
101
|
+
* @param {MikeDeployOpts} opts - the deploy options
|
|
102
|
+
*/
|
|
103
|
+
async deploy (opts) {
|
|
104
|
+
const args = [opts.version];
|
|
105
|
+
if (opts.alias) {
|
|
106
|
+
args.push(opts.alias, '--update-aliases');
|
|
107
|
+
}
|
|
108
|
+
if (opts.shouldPush) {
|
|
109
|
+
args.push('--push');
|
|
110
|
+
}
|
|
111
|
+
if (opts.shouldRebase) {
|
|
112
|
+
args.push('--rebase');
|
|
113
|
+
}
|
|
114
|
+
if (opts.commit) {
|
|
115
|
+
args.push('--message', opts.commit);
|
|
116
|
+
}
|
|
117
|
+
await this.exec('deploy', args);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* @typedef MikeOpts - options for instantiating a Mike object
|
|
124
|
+
* @property {string} [remote="origin"] - the git remote to push docs to
|
|
125
|
+
* @property {string} [branch="gh-pages"] - the git branch to push docs to
|
|
126
|
+
* @property {string?} prefix - the path prefix on the branch if any
|
|
127
|
+
* @property {string} configFile - the mkdocs config file to use
|
|
128
|
+
*/
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @typedef MikeDeployOpts - options for deploying docs with Mike
|
|
132
|
+
* @param {string} version - the version to deploy
|
|
133
|
+
* @param {string?} alias - the alias to alias (or re-alias) the version
|
|
134
|
+
* @param {string?} commit - the commit message to use as an override
|
|
135
|
+
* @param {boolean?} shouldPush - whether mike should push the commits to the remote
|
|
136
|
+
* @param {boolean?} shouldRebase - whether mike should rebase
|
|
137
|
+
*/
|
package/lib/mkdocs.js
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { exec, SubProcess } from 'teen_process';
|
|
2
|
+
|
|
3
|
+
const MKDOCS_VER_STR = 'version 1.';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Run a version check on the system-installed mkdocs to make sure it is set up
|
|
7
|
+
*/
|
|
8
|
+
export async function verifyMkdocs () {
|
|
9
|
+
try {
|
|
10
|
+
const {stdout} = await exec('mkdocs', ['-V']);
|
|
11
|
+
if (!stdout.includes(MKDOCS_VER_STR)) {
|
|
12
|
+
throw new Error('version mismatch');
|
|
13
|
+
}
|
|
14
|
+
} catch (err) {
|
|
15
|
+
throw new Error(`Could not verify mkdocs 1.x is available. Make sure it's installed ` +
|
|
16
|
+
`and on your path. Specific error: ${err}`);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* Run 'mkdocs build' on a project
|
|
22
|
+
*
|
|
23
|
+
* @param {string} configPath path to mkdocs config yml
|
|
24
|
+
* @param {string} outputDir directory mkdocs should build into
|
|
25
|
+
* @param {?string} theme theme name
|
|
26
|
+
*/
|
|
27
|
+
export async function mkdocsBuild (configPath, outputDir, theme = 'mkdocs') {
|
|
28
|
+
await verifyMkdocs();
|
|
29
|
+
await exec('mkdocs', ['build', '-f', configPath, '-t', theme, '-d', outputDir]);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Run 'mkdocs serve' on a project
|
|
34
|
+
*
|
|
35
|
+
* @param {string} configPath path to mkdocs config yml
|
|
36
|
+
*/
|
|
37
|
+
export async function mkdocsServe (configPath) {
|
|
38
|
+
await verifyMkdocs();
|
|
39
|
+
const proc = new SubProcess('mkdocs', ['serve', '-f', configPath]);
|
|
40
|
+
await proc.start();
|
|
41
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@appium/docutils",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Documentation generation utilities for Appium and related projects",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"appium",
|
|
7
|
+
"docs"
|
|
8
|
+
],
|
|
9
|
+
"homepage": "https://appium.io",
|
|
10
|
+
"bugs": {
|
|
11
|
+
"url": "https://github.com/appium/appium/issues"
|
|
12
|
+
},
|
|
13
|
+
"repository": {
|
|
14
|
+
"type": "git",
|
|
15
|
+
"url": "https://github.com/appium/appium.git",
|
|
16
|
+
"directory": "packages/docutils"
|
|
17
|
+
},
|
|
18
|
+
"license": "Apache-2.0",
|
|
19
|
+
"author": "https://github.com/appium",
|
|
20
|
+
"directories": {
|
|
21
|
+
"lib": "lib"
|
|
22
|
+
},
|
|
23
|
+
"files": [
|
|
24
|
+
"index.js",
|
|
25
|
+
"index.d.ts",
|
|
26
|
+
"lib",
|
|
27
|
+
"build"
|
|
28
|
+
],
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "npm run build:sources && npm run build:test",
|
|
31
|
+
"build:sources": "babel lib --root-mode=upward --out-dir=build/lib",
|
|
32
|
+
"build:test": "babel test --root-mode=upward --out-dir=build/test --copy-files",
|
|
33
|
+
"dev": "npm run build:sources -- --watch",
|
|
34
|
+
"fix": "npm run lint -- --fix",
|
|
35
|
+
"lint": "eslint -c ../../.eslintrc --ignore-path ../../.eslintignore .",
|
|
36
|
+
"test": "npm run test:unit",
|
|
37
|
+
"test:e2e": "echo \"No e2e tests for this package\"",
|
|
38
|
+
"test:unit": "mocha \"./test/unit/**/*.spec.js\""
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@appium/support": "^2.57.2",
|
|
42
|
+
"@babel/runtime": "7.17.9",
|
|
43
|
+
"docdash": "1.2.0",
|
|
44
|
+
"jsdoc": "3.6.10",
|
|
45
|
+
"jsdoc-plugin-typescript": "2.0.6",
|
|
46
|
+
"source-map-support": "0.5.21",
|
|
47
|
+
"teen_process": "1.16.0"
|
|
48
|
+
},
|
|
49
|
+
"engines": {
|
|
50
|
+
"node": ">=12",
|
|
51
|
+
"npm": ">=6"
|
|
52
|
+
},
|
|
53
|
+
"publishConfig": {
|
|
54
|
+
"access": "public"
|
|
55
|
+
},
|
|
56
|
+
"types": "./build/lib/index.d.ts",
|
|
57
|
+
"gitHead": "8b7906f757f23b7abc09a0acf41a3daa6671c2ec"
|
|
58
|
+
}
|