gutterpress 0.10.10 → 0.10.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +20 -6
- package/dist/api/index.js +1 -1
- package/dist/{audit-nx0rxyqs.js → audit-ebbbhpx7.js} +3 -3
- package/dist/{build-7dgk1b9z.js → build-zrajk3s2.js} +3 -3
- package/dist/checks/source/markdownlint.d.ts +16 -0
- package/dist/{cli-4vyra9eq.js → cli-36r50yr3.js} +1 -1
- package/dist/{cli-m7v5z501.js → cli-gxq7yz5f.js} +1 -1
- package/dist/{cli-jcemen7j.js → cli-hz44te1m.js} +131 -57
- package/dist/cli.js +14 -14
- package/dist/{doctor-07rfg847.js → doctor-78qft9g7.js} +2 -2
- package/dist/engine/shared/cdp.d.ts +6 -2
- package/dist/{ext-6twv1x6c.js → ext-3g1mk8mb.js} +3 -3
- package/dist/{index-xs2g04p2.js → index-03cqyyyk.js} +381 -305
- package/dist/index.js +1 -1
- package/dist/lib/markdownlint-fix.d.ts +7 -0
- package/dist/lib/validation-exec.d.ts +6 -0
- package/dist/{lint-j60awn0r.js → lint-va95zh6j.js} +3 -3
- package/dist/{new-j8q6paaz.js → new-3ex11eyq.js} +3 -3
- package/dist/{preflight-w9predag.js → preflight-q8w6dnjh.js} +3 -3
- package/dist/{preview-keecv833.js → preview-azatsrtp.js} +3 -3
- package/dist/{publish-mjrvdxpc.js → publish-5tqzepkb.js} +3 -3
- package/dist/render.js +1 -1
- package/dist/{validate-cn6jsndb.js → validate-rp613ejg.js} +9 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { CheckContext } from "../checks/types";
|
|
2
|
+
/**
|
|
3
|
+
* Rewrite every markdown file in `ctx` whose markdownlint violations have a
|
|
4
|
+
* mechanical fix. Returns the absolute paths actually written, and prints
|
|
5
|
+
* them, so the write is never invisible.
|
|
6
|
+
*/
|
|
7
|
+
export declare function applyMarkdownlintFixes(ctx: CheckContext): Promise<string[]>;
|
|
@@ -37,6 +37,12 @@ export interface ValidationExecutionArgs {
|
|
|
37
37
|
* Problems panel) leaves this unset and gets the manifest's own setting.
|
|
38
38
|
*/
|
|
39
39
|
skipStylelint?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* Apply markdownlint's auto-fixes to the source markdown, in place, before
|
|
42
|
+
* the checks run (#275 — `gutterpress validate --fix`). Opt-in only: every
|
|
43
|
+
* other caller leaves it unset and validation stays entirely read-only.
|
|
44
|
+
*/
|
|
45
|
+
fix?: boolean;
|
|
40
46
|
}
|
|
41
47
|
export interface ValidationExecutionResult {
|
|
42
48
|
config: ResolvedConfig;
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
MANIFEST_FILENAMES,
|
|
3
3
|
runLint
|
|
4
|
-
} from "./cli-
|
|
4
|
+
} from "./cli-hz44te1m.js";
|
|
5
5
|
import {
|
|
6
6
|
log
|
|
7
|
-
} from "./cli-
|
|
7
|
+
} from "./cli-36r50yr3.js";
|
|
8
8
|
import {
|
|
9
9
|
UsageError,
|
|
10
10
|
rejectExtraPositionals,
|
|
11
11
|
rejectUnknownFlags
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-gxq7yz5f.js";
|
|
13
13
|
import"./cli-k8f9eb12.js";
|
|
14
14
|
import"./cli-c41yr7he.js";
|
|
15
15
|
import {
|
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
TARGET_IDS,
|
|
8
8
|
scaffoldExtension,
|
|
9
9
|
scaffoldProject
|
|
10
|
-
} from "./cli-
|
|
10
|
+
} from "./cli-hz44te1m.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveGhostscript
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-36r50yr3.js";
|
|
14
14
|
import {
|
|
15
15
|
UsageError,
|
|
16
16
|
rejectExtraPositionals,
|
|
17
17
|
rejectUnknownFlags
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-gxq7yz5f.js";
|
|
19
19
|
import"./cli-k8f9eb12.js";
|
|
20
20
|
import {
|
|
21
21
|
isToolAvailable
|
|
@@ -2,15 +2,15 @@ import {
|
|
|
2
2
|
executeValidation,
|
|
3
3
|
publishTargetFor,
|
|
4
4
|
reportMissingTools
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-hz44te1m.js";
|
|
6
6
|
import {
|
|
7
7
|
log
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-36r50yr3.js";
|
|
9
9
|
import {
|
|
10
10
|
UsageError,
|
|
11
11
|
rejectExtraPositionals,
|
|
12
12
|
rejectUnknownFlags
|
|
13
|
-
} from "./cli-
|
|
13
|
+
} from "./cli-gxq7yz5f.js";
|
|
14
14
|
import"./cli-k8f9eb12.js";
|
|
15
15
|
import"./cli-c41yr7he.js";
|
|
16
16
|
import {
|
|
@@ -6,10 +6,10 @@ import {
|
|
|
6
6
|
runBuild,
|
|
7
7
|
splitOutPath,
|
|
8
8
|
startPreviewServer
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-hz44te1m.js";
|
|
10
10
|
import {
|
|
11
11
|
log
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-36r50yr3.js";
|
|
13
13
|
import {
|
|
14
14
|
UsageError,
|
|
15
15
|
parseFormat,
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
rejectExtraPositionals,
|
|
18
18
|
rejectUnknownFlags,
|
|
19
19
|
resolvePort
|
|
20
|
-
} from "./cli-
|
|
20
|
+
} from "./cli-gxq7yz5f.js";
|
|
21
21
|
import"./cli-k8f9eb12.js";
|
|
22
22
|
import"./cli-c41yr7he.js";
|
|
23
23
|
import {
|
|
@@ -11,16 +11,16 @@ import {
|
|
|
11
11
|
publishProviderFor,
|
|
12
12
|
resolvePublishFormat,
|
|
13
13
|
runPublish
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-hz44te1m.js";
|
|
15
15
|
import {
|
|
16
16
|
FileTokenStore,
|
|
17
17
|
log
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-36r50yr3.js";
|
|
19
19
|
import {
|
|
20
20
|
UsageError,
|
|
21
21
|
rejectExtraPositionals,
|
|
22
22
|
rejectUnknownFlags
|
|
23
|
-
} from "./cli-
|
|
23
|
+
} from "./cli-gxq7yz5f.js";
|
|
24
24
|
import"./cli-k8f9eb12.js";
|
|
25
25
|
import"./cli-c41yr7he.js";
|
|
26
26
|
import {
|
package/dist/render.js
CHANGED
|
@@ -209,7 +209,7 @@ function attachDataAttrs(token, kind, name, attrs) {
|
|
|
209
209
|
continue;
|
|
210
210
|
if (k === "class" || k === "id" || k === "template" || k === "region")
|
|
211
211
|
continue;
|
|
212
|
-
token.attrSet(`data-${k}`, v);
|
|
212
|
+
token.attrSet(k.startsWith("data-") ? k : `data-${k}`, v);
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
var DECLARED_NAME_RE = /^[a-z][a-z0-9-]*$/;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeAndReport
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-hz44te1m.js";
|
|
4
4
|
import {
|
|
5
5
|
log
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-36r50yr3.js";
|
|
7
7
|
import {
|
|
8
8
|
UsageError,
|
|
9
9
|
rejectExtraPositionals,
|
|
10
10
|
rejectUnknownFlags
|
|
11
|
-
} from "./cli-
|
|
11
|
+
} from "./cli-gxq7yz5f.js";
|
|
12
12
|
import"./cli-k8f9eb12.js";
|
|
13
13
|
import"./cli-c41yr7he.js";
|
|
14
14
|
import {
|
|
@@ -61,6 +61,10 @@ var commandArgs = {
|
|
|
61
61
|
target: {
|
|
62
62
|
type: "string",
|
|
63
63
|
description: "Publish targets to validate against (comma-separated, e.g. dtrpg,itch), overriding the manifest's `targets:`"
|
|
64
|
+
},
|
|
65
|
+
fix: {
|
|
66
|
+
type: "boolean",
|
|
67
|
+
description: "Rewrite the source markdown in place with markdownlint's auto-fixes (source.markdownlint only)"
|
|
64
68
|
}
|
|
65
69
|
};
|
|
66
70
|
var validate_default = defineCommand({
|
|
@@ -86,7 +90,8 @@ var validate_default = defineCommand({
|
|
|
86
90
|
only: typeof args.only === "string" ? args.only : undefined,
|
|
87
91
|
skip: typeof args.skip === "string" ? args.skip : undefined,
|
|
88
92
|
phase: typeof args.phase === "string" ? args.phase : undefined,
|
|
89
|
-
target: typeof args.target === "string" ? args.target : undefined
|
|
93
|
+
target: typeof args.target === "string" ? args.target : undefined,
|
|
94
|
+
fix: args.fix === true
|
|
90
95
|
}, format);
|
|
91
96
|
} catch (error) {
|
|
92
97
|
log.error(error instanceof Error ? error.message : String(error));
|
package/package.json
CHANGED