@mintlify/previewing 3.1.56 → 3.1.58
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 +93 -0
- package/README.md +17 -17
- package/dist/constants.d.ts +9 -9
- package/dist/constants.js +31 -31
- package/dist/downloadImage.d.ts +4 -4
- package/dist/downloadImage.js +139 -139
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/local-preview/helper-commands/installDepsCommand.d.ts +2 -2
- package/dist/local-preview/helper-commands/installDepsCommand.js +51 -51
- package/dist/local-preview/index.d.ts +3 -3
- package/dist/local-preview/index.js +212 -212
- package/dist/local-preview/listener/categorize.d.ts +8 -8
- package/dist/local-preview/listener/categorize.js +193 -193
- package/dist/local-preview/listener/generate.d.ts +1 -1
- package/dist/local-preview/listener/generate.js +137 -137
- package/dist/local-preview/listener/index.d.ts +2 -2
- package/dist/local-preview/listener/index.js +317 -317
- package/dist/local-preview/listener/update.d.ts +2 -2
- package/dist/local-preview/listener/update.js +79 -79
- package/dist/local-preview/listener/utils/createPage.d.ts +10 -10
- package/dist/local-preview/listener/utils/createPage.js +210 -210
- package/dist/local-preview/listener/utils/getOpenApiContext.d.ts +21 -21
- package/dist/local-preview/listener/utils/getOpenApiContext.js +55 -55
- package/dist/local-preview/listener/utils/mintConfigFile.d.ts +2 -2
- package/dist/local-preview/listener/utils/mintConfigFile.js +74 -74
- package/dist/local-preview/listener/utils/types.d.ts +2 -2
- package/dist/local-preview/listener/utils/types.js +1 -1
- package/dist/local-preview/listener/utils.d.ts +13 -13
- package/dist/local-preview/listener/utils.js +112 -112
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/util.d.ts +4 -4
- package/dist/util.js +20 -20
- package/package.json +88 -87
package/dist/util.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Ora as OraType } from 'ora';
|
|
2
|
-
export declare const buildLogger: (startText?: string) => OraType;
|
|
3
|
-
export declare const getFileExtension: (filename: string) => string | undefined;
|
|
4
|
-
export declare const ensureYarn: (logger: OraType) => void;
|
|
1
|
+
import { Ora as OraType } from 'ora';
|
|
2
|
+
export declare const buildLogger: (startText?: string) => OraType;
|
|
3
|
+
export declare const getFileExtension: (filename: string) => string | undefined;
|
|
4
|
+
export declare const ensureYarn: (logger: OraType) => void;
|
package/dist/util.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import Ora from 'ora';
|
|
2
|
-
import shell from 'shelljs';
|
|
3
|
-
export var buildLogger = function (startText) {
|
|
4
|
-
if (startText === void 0) { startText = ''; }
|
|
5
|
-
var logger = Ora().start(startText);
|
|
6
|
-
return logger;
|
|
7
|
-
};
|
|
8
|
-
export var getFileExtension = function (filename) {
|
|
9
|
-
var ext = filename.substring(filename.lastIndexOf('.') + 1, filename.length);
|
|
10
|
-
if (filename === ext)
|
|
11
|
-
return undefined;
|
|
12
|
-
return ext;
|
|
13
|
-
};
|
|
14
|
-
export var ensureYarn = function (logger) {
|
|
15
|
-
var yarnInstalled = shell.which('yarn');
|
|
16
|
-
if (!yarnInstalled) {
|
|
17
|
-
logger.fail("yarn must be installed, run\n\n npm install --global yarn\n\n ");
|
|
18
|
-
process.exit(1);
|
|
19
|
-
}
|
|
20
|
-
};
|
|
1
|
+
import Ora from 'ora';
|
|
2
|
+
import shell from 'shelljs';
|
|
3
|
+
export var buildLogger = function (startText) {
|
|
4
|
+
if (startText === void 0) { startText = ''; }
|
|
5
|
+
var logger = Ora().start(startText);
|
|
6
|
+
return logger;
|
|
7
|
+
};
|
|
8
|
+
export var getFileExtension = function (filename) {
|
|
9
|
+
var ext = filename.substring(filename.lastIndexOf('.') + 1, filename.length);
|
|
10
|
+
if (filename === ext)
|
|
11
|
+
return undefined;
|
|
12
|
+
return ext;
|
|
13
|
+
};
|
|
14
|
+
export var ensureYarn = function (logger) {
|
|
15
|
+
var yarnInstalled = shell.which('yarn');
|
|
16
|
+
if (!yarnInstalled) {
|
|
17
|
+
logger.fail("yarn must be installed, run\n\n npm install --global yarn\n\n ");
|
|
18
|
+
process.exit(1);
|
|
19
|
+
}
|
|
20
|
+
};
|
package/package.json
CHANGED
|
@@ -1,87 +1,88 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@mintlify/previewing",
|
|
3
|
-
"version": "3.1.
|
|
4
|
-
"description": "Preview Mintlify docs locally",
|
|
5
|
-
"engines": {
|
|
6
|
-
"node": ">=18.0.0"
|
|
7
|
-
},
|
|
8
|
-
"author": "Mintlify, Inc.",
|
|
9
|
-
"repository": {
|
|
10
|
-
"type": "git",
|
|
11
|
-
"url": "https://github.com/mintlify/mint",
|
|
12
|
-
"directory": "packages/mintlify-previewing"
|
|
13
|
-
},
|
|
14
|
-
"bugs": {
|
|
15
|
-
"url": "https://github.com/mintlify/mint/issues"
|
|
16
|
-
},
|
|
17
|
-
"license": "Elastic-2.0",
|
|
18
|
-
"keywords": [
|
|
19
|
-
"mintlify",
|
|
20
|
-
"mint",
|
|
21
|
-
"previewing"
|
|
22
|
-
],
|
|
23
|
-
"type": "module",
|
|
24
|
-
"publishConfig": {
|
|
25
|
-
"access": "public",
|
|
26
|
-
"registry": "https://registry.npmjs.org/"
|
|
27
|
-
},
|
|
28
|
-
"main": "./dist/index.js",
|
|
29
|
-
"types": "./dist/index.d.ts",
|
|
30
|
-
"files": [
|
|
31
|
-
"dist"
|
|
32
|
-
],
|
|
33
|
-
"scripts": {
|
|
34
|
-
"prepare": "npm run build",
|
|
35
|
-
"build": "tsc",
|
|
36
|
-
"watch": "tsc --watch",
|
|
37
|
-
"format": "prettier \"./src/**/*.ts\" --write",
|
|
38
|
-
"format:check": "prettier \"./src/**/*.ts\" --check",
|
|
39
|
-
"lint": "eslint . --cache"
|
|
40
|
-
},
|
|
41
|
-
"peerDependencies": {
|
|
42
|
-
"@mintlify/validation": ">= 0.1.
|
|
43
|
-
},
|
|
44
|
-
"dependencies": {
|
|
45
|
-
"@apidevtools/swagger-parser": "^10.1.0",
|
|
46
|
-
"@mintlify/prebuild": "1.0.
|
|
47
|
-
"@octokit/rest": "^19.0.5",
|
|
48
|
-
"axios": "^1.2.2",
|
|
49
|
-
"chalk": "^5.1.0",
|
|
50
|
-
"chokidar": "^3.5.3",
|
|
51
|
-
"fs-extra": "^11.1.0",
|
|
52
|
-
"gray-matter": "^4.0.3",
|
|
53
|
-
"is-absolute-url": "^4.0.1",
|
|
54
|
-
"is-internet-available": "^3.1.0",
|
|
55
|
-
"open": "^8.4.0",
|
|
56
|
-
"openapi-types": "^12.0.2",
|
|
57
|
-
"ora": "^6.1.2",
|
|
58
|
-
"remark": "^14.0.2",
|
|
59
|
-
"remark-frontmatter": "^4.0.1",
|
|
60
|
-
"remark-gfm": "^3.0.1",
|
|
61
|
-
"remark-mdx": "^2.2.1",
|
|
62
|
-
"shelljs": "^0.8.5",
|
|
63
|
-
"unist-util-visit": "^4.1.1",
|
|
64
|
-
"yargs": "^17.6.0"
|
|
65
|
-
},
|
|
66
|
-
"devDependencies": {
|
|
67
|
-
"@mintlify/eslint-config": "1.0.3",
|
|
68
|
-
"@mintlify/eslint-config-typescript": "1.0.7",
|
|
69
|
-
"@mintlify/prettier-config": "1.0.1",
|
|
70
|
-
"@mintlify/ts-config": "1.0.7",
|
|
71
|
-
"@mintlify/validation": "0.1.
|
|
72
|
-
"@trivago/prettier-plugin-sort-imports": "3.x",
|
|
73
|
-
"@tsconfig/recommended": "1.x",
|
|
74
|
-
"@types/fs-extra": "^9.0.13",
|
|
75
|
-
"@types/inquirer": "^9.0.1",
|
|
76
|
-
"@types/node": "^18.7.13",
|
|
77
|
-
"@types/shelljs": "^0.8.11",
|
|
78
|
-
"@types/yargs": "^17.0.13",
|
|
79
|
-
"@typescript-eslint/eslint-plugin": "5.x",
|
|
80
|
-
"@typescript-eslint/parser": "5.x",
|
|
81
|
-
"eslint": "8.x",
|
|
82
|
-
"eslint-config-prettier": "8.x",
|
|
83
|
-
"eslint-plugin-unused-imports": "2.x",
|
|
84
|
-
"prettier": "2.x",
|
|
85
|
-
"typescript": "^4.8.2"
|
|
86
|
-
}
|
|
87
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@mintlify/previewing",
|
|
3
|
+
"version": "3.1.58",
|
|
4
|
+
"description": "Preview Mintlify docs locally",
|
|
5
|
+
"engines": {
|
|
6
|
+
"node": ">=18.0.0"
|
|
7
|
+
},
|
|
8
|
+
"author": "Mintlify, Inc.",
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "https://github.com/mintlify/mint",
|
|
12
|
+
"directory": "packages/mintlify-previewing"
|
|
13
|
+
},
|
|
14
|
+
"bugs": {
|
|
15
|
+
"url": "https://github.com/mintlify/mint/issues"
|
|
16
|
+
},
|
|
17
|
+
"license": "Elastic-2.0",
|
|
18
|
+
"keywords": [
|
|
19
|
+
"mintlify",
|
|
20
|
+
"mint",
|
|
21
|
+
"previewing"
|
|
22
|
+
],
|
|
23
|
+
"type": "module",
|
|
24
|
+
"publishConfig": {
|
|
25
|
+
"access": "public",
|
|
26
|
+
"registry": "https://registry.npmjs.org/"
|
|
27
|
+
},
|
|
28
|
+
"main": "./dist/index.js",
|
|
29
|
+
"types": "./dist/index.d.ts",
|
|
30
|
+
"files": [
|
|
31
|
+
"dist"
|
|
32
|
+
],
|
|
33
|
+
"scripts": {
|
|
34
|
+
"prepare": "npm run build",
|
|
35
|
+
"build": "tsc",
|
|
36
|
+
"watch": "tsc --watch",
|
|
37
|
+
"format": "prettier \"./src/**/*.ts\" --write",
|
|
38
|
+
"format:check": "prettier \"./src/**/*.ts\" --check",
|
|
39
|
+
"lint": "eslint . --cache"
|
|
40
|
+
},
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"@mintlify/validation": ">= 0.1.46 < 1"
|
|
43
|
+
},
|
|
44
|
+
"dependencies": {
|
|
45
|
+
"@apidevtools/swagger-parser": "^10.1.0",
|
|
46
|
+
"@mintlify/prebuild": "1.0.9",
|
|
47
|
+
"@octokit/rest": "^19.0.5",
|
|
48
|
+
"axios": "^1.2.2",
|
|
49
|
+
"chalk": "^5.1.0",
|
|
50
|
+
"chokidar": "^3.5.3",
|
|
51
|
+
"fs-extra": "^11.1.0",
|
|
52
|
+
"gray-matter": "^4.0.3",
|
|
53
|
+
"is-absolute-url": "^4.0.1",
|
|
54
|
+
"is-internet-available": "^3.1.0",
|
|
55
|
+
"open": "^8.4.0",
|
|
56
|
+
"openapi-types": "^12.0.2",
|
|
57
|
+
"ora": "^6.1.2",
|
|
58
|
+
"remark": "^14.0.2",
|
|
59
|
+
"remark-frontmatter": "^4.0.1",
|
|
60
|
+
"remark-gfm": "^3.0.1",
|
|
61
|
+
"remark-mdx": "^2.2.1",
|
|
62
|
+
"shelljs": "^0.8.5",
|
|
63
|
+
"unist-util-visit": "^4.1.1",
|
|
64
|
+
"yargs": "^17.6.0"
|
|
65
|
+
},
|
|
66
|
+
"devDependencies": {
|
|
67
|
+
"@mintlify/eslint-config": "1.0.3",
|
|
68
|
+
"@mintlify/eslint-config-typescript": "1.0.7",
|
|
69
|
+
"@mintlify/prettier-config": "1.0.1",
|
|
70
|
+
"@mintlify/ts-config": "1.0.7",
|
|
71
|
+
"@mintlify/validation": "0.1.47",
|
|
72
|
+
"@trivago/prettier-plugin-sort-imports": "3.x",
|
|
73
|
+
"@tsconfig/recommended": "1.x",
|
|
74
|
+
"@types/fs-extra": "^9.0.13",
|
|
75
|
+
"@types/inquirer": "^9.0.1",
|
|
76
|
+
"@types/node": "^18.7.13",
|
|
77
|
+
"@types/shelljs": "^0.8.11",
|
|
78
|
+
"@types/yargs": "^17.0.13",
|
|
79
|
+
"@typescript-eslint/eslint-plugin": "5.x",
|
|
80
|
+
"@typescript-eslint/parser": "5.x",
|
|
81
|
+
"eslint": "8.x",
|
|
82
|
+
"eslint-config-prettier": "8.x",
|
|
83
|
+
"eslint-plugin-unused-imports": "2.x",
|
|
84
|
+
"prettier": "2.x",
|
|
85
|
+
"typescript": "^4.8.2"
|
|
86
|
+
},
|
|
87
|
+
"gitHead": "1d442e3c32d9fc7f38dbe40396e3574f10de0f2d"
|
|
88
|
+
}
|