gutterpress 0.10.9 → 0.10.10-alpha.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/README.md +66 -5
- package/dist/{README-jntqyj1z.md → README-3zk4tgnj.md} +4 -4
- package/dist/{README-6c7fda1s.md → README-7x5akcns.md} +5 -4
- package/dist/api/index.d.ts +7 -4
- package/dist/api/index.js +22 -12
- package/dist/{audit-fq7s1gsz.js → audit-ek36tf4q.js} +5 -5
- package/dist/{build-dyat3fqd.js → build-bxavfz3j.js} +6 -6
- package/dist/{cli-ypfvnhag.js → cli-12epgrva.js} +1 -1
- package/dist/{cli-8pg731p5.js → cli-5fqr02je.js} +4914 -4707
- package/dist/{cli-bzxqtvrk.js → cli-75qkn0k5.js} +1 -1
- package/dist/{cli-bx950tb4.js → cli-k8f9eb12.js} +22 -26
- package/dist/{cli-rh05byck.js → cli-tvpq2ht9.js} +1 -1
- package/dist/{cli-w692g6dx.js → cli-vje8g3w8.js} +88 -1
- package/dist/cli.js +16 -16
- package/dist/{components-0mmswvvm.yaml → components-dhgv2sm7.yaml} +2 -2
- package/dist/{doctor-yr85n080.js → doctor-tgmedr7g.js} +2 -2
- package/dist/{engine-d46wgg99.js → engine-pt2acjb5.js} +2 -2
- package/dist/{engine-19mshh07.js → engine-qtmvaqt7.js} +1 -1
- package/dist/{ext-jrg8c48s.js → ext-jjzmafve.js} +52 -8
- package/dist/{index-zwcv1njy.js → index-5dgxeevv.js} +22 -26
- package/dist/{index-dhgzkhs7.js → index-a0e2253t.js} +1 -1
- package/dist/{index-mey5vraz.js → index-d4wrww4b.js} +918 -796
- package/dist/{index-dtrftayr.js → index-f833dtg9.js} +88 -1
- package/dist/index.js +102 -15
- package/dist/lib/build-error.d.ts +6 -5
- package/dist/lib/build-preflight.d.ts +11 -1
- package/dist/lib/build-runner.d.ts +49 -16
- package/dist/lib/extension-import.d.ts +4 -4
- package/dist/lib/extension-manager.d.ts +3 -3
- package/dist/lib/extension-manifest.d.ts +91 -87
- package/dist/lib/extension-scaffold.d.ts +1 -1
- package/dist/lib/extension-search.d.ts +46 -0
- package/dist/lib/host-policy.d.ts +10 -12
- package/dist/lib/lint-runner.d.ts +16 -9
- package/dist/lib/npm-registry.d.ts +22 -0
- package/dist/lib/source-provider.d.ts +58 -0
- package/dist/lib/validation-exec.d.ts +11 -0
- package/dist/{lint-enasqbqx.js → lint-5vbq6yjb.js} +5 -5
- package/dist/{new-r9c99wsn.js → new-qws45t02.js} +6 -6
- package/dist/package-97gm31sg.json +10 -0
- package/dist/{package-rm9d2tht.json → package-9rv69pxm.json} +4 -1
- package/dist/package-aenwjew3.json +28 -0
- package/dist/package-gag6ykwn.json +10 -0
- package/dist/package-nrhkwf2m.json +10 -0
- package/dist/{plugin.test.js-npnfhyca.tpl → plugin.test.js-k2r87k04.tpl} +9 -8
- package/dist/{preflight-shk7vqbs.js → preflight-4ywt3399.js} +5 -5
- package/dist/{preview-52918mxk.js → preview-4c3tcsn4.js} +6 -6
- package/dist/{publish-8s60vhx7.js → publish-m6bme9a8.js} +5 -5
- package/dist/{source-provider-2j5x2hyw.js → source-provider-2cnc5hry.js} +7 -1
- package/dist/{source-provider-kn41jmbs.js → source-provider-y1kscr1h.js} +7 -1
- package/dist/{tokens-e4xk3x4v.css → tokens-2sracx1w.css} +1 -1
- package/dist/{validate-awccx32r.js → validate-avtb9drn.js} +5 -5
- package/package.json +1 -1
- package/dist/gutterpress-m98e2w2d.json +0 -8
- package/dist/gutterpress-x2ycdsb8.json +0 -17
- package/dist/theme-etj4gxck.json +0 -9
- package/dist/theme-s2rg7xe7.json +0 -9
- package/dist/theme-vktedy8q.json +0 -9
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "technical-doc",
|
|
3
|
+
"description": "Clean sans-serif manual look with clear hierarchy, code styling, and tidy tables.",
|
|
4
|
+
"author": "gutterpress",
|
|
5
|
+
"keywords": ["gutterpress", "gutterpress-look"],
|
|
6
|
+
"gutterpress": {
|
|
7
|
+
"styles": ["theme.css"],
|
|
8
|
+
"preview": null
|
|
9
|
+
}
|
|
10
|
+
}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
* it — a diff somebody had to read is the point of the file.
|
|
17
17
|
*
|
|
18
18
|
* 2. CONTRACT. The exact export shape Gutterpress's loader requires, and the
|
|
19
|
-
* existence of every file `
|
|
19
|
+
* existence of every file `package.json` declares. These catch the
|
|
20
20
|
* failures that otherwise surface as a blank page in someone else's book.
|
|
21
21
|
*
|
|
22
22
|
* 3. CONVENTIONS. The prefix rules — every class this package emits is its
|
|
@@ -44,7 +44,7 @@ const here = path.dirname(fileURLToPath(import.meta.url));
|
|
|
44
44
|
const root = path.join(here, "..");
|
|
45
45
|
const read = (rel) => readFileSync(path.join(root, rel), "utf8");
|
|
46
46
|
|
|
47
|
-
const pkg = JSON.parse(read("
|
|
47
|
+
const pkg = JSON.parse(read("package.json"));
|
|
48
48
|
const css = read("styles/plugin.css");
|
|
49
49
|
/** The stylesheet's RULES — comments stripped, so a name assertion below
|
|
50
50
|
* tests what the sheet emits rather than what it talks about. */
|
|
@@ -117,13 +117,14 @@ describe("loader contract", () => {
|
|
|
117
117
|
expect(metadata.name.length).toBeGreaterThan(0);
|
|
118
118
|
});
|
|
119
119
|
|
|
120
|
-
test("every path
|
|
120
|
+
test("every path package.json declares exists", () => {
|
|
121
|
+
const gp = pkg.gutterpress ?? {};
|
|
121
122
|
const declared = [
|
|
122
|
-
pkg.
|
|
123
|
-
...(
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
123
|
+
gp.markdown ?? pkg.main,
|
|
124
|
+
...(gp.styles ?? []),
|
|
125
|
+
gp.components,
|
|
126
|
+
gp.snippets,
|
|
127
|
+
gp.tokensFile,
|
|
127
128
|
].filter(Boolean);
|
|
128
129
|
|
|
129
130
|
expect(declared.length).toBeGreaterThan(0);
|
|
@@ -2,21 +2,21 @@ import {
|
|
|
2
2
|
executeValidation,
|
|
3
3
|
publishTargetFor,
|
|
4
4
|
reportMissingTools
|
|
5
|
-
} from "./cli-
|
|
5
|
+
} from "./cli-5fqr02je.js";
|
|
6
6
|
import {
|
|
7
7
|
log
|
|
8
|
-
} from "./cli-
|
|
8
|
+
} from "./cli-12epgrva.js";
|
|
9
9
|
import {
|
|
10
10
|
UsageError,
|
|
11
11
|
rejectExtraPositionals,
|
|
12
12
|
rejectUnknownFlags
|
|
13
|
-
} from "./cli-
|
|
14
|
-
import"./cli-
|
|
13
|
+
} from "./cli-tvpq2ht9.js";
|
|
14
|
+
import"./cli-k8f9eb12.js";
|
|
15
15
|
import"./cli-c41yr7he.js";
|
|
16
16
|
import {
|
|
17
17
|
EXIT_CODES
|
|
18
18
|
} from "./cli-46ycxe6r.js";
|
|
19
|
-
import"./cli-
|
|
19
|
+
import"./cli-vje8g3w8.js";
|
|
20
20
|
import"./cli-v5mp7a6q.js";
|
|
21
21
|
import"./cli-37x76zdn.js";
|
|
22
22
|
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
previewArgs
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-75qkn0k5.js";
|
|
4
4
|
import {
|
|
5
5
|
openPath,
|
|
6
6
|
runBuild,
|
|
7
7
|
splitOutPath,
|
|
8
8
|
startPreviewServer
|
|
9
|
-
} from "./cli-
|
|
9
|
+
} from "./cli-5fqr02je.js";
|
|
10
10
|
import {
|
|
11
11
|
log
|
|
12
|
-
} from "./cli-
|
|
12
|
+
} from "./cli-12epgrva.js";
|
|
13
13
|
import {
|
|
14
14
|
UsageError,
|
|
15
15
|
parseFormat,
|
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
rejectExtraPositionals,
|
|
18
18
|
rejectUnknownFlags,
|
|
19
19
|
resolvePort
|
|
20
|
-
} from "./cli-
|
|
21
|
-
import"./cli-
|
|
20
|
+
} from "./cli-tvpq2ht9.js";
|
|
21
|
+
import"./cli-k8f9eb12.js";
|
|
22
22
|
import"./cli-c41yr7he.js";
|
|
23
23
|
import {
|
|
24
24
|
BuildError
|
|
25
25
|
} from "./cli-46ycxe6r.js";
|
|
26
|
-
import"./cli-
|
|
26
|
+
import"./cli-vje8g3w8.js";
|
|
27
27
|
import"./cli-v5mp7a6q.js";
|
|
28
28
|
import"./cli-37x76zdn.js";
|
|
29
29
|
|
|
@@ -11,22 +11,22 @@ import {
|
|
|
11
11
|
publishProviderFor,
|
|
12
12
|
resolvePublishFormat,
|
|
13
13
|
runPublish
|
|
14
|
-
} from "./cli-
|
|
14
|
+
} from "./cli-5fqr02je.js";
|
|
15
15
|
import {
|
|
16
16
|
FileTokenStore,
|
|
17
17
|
log
|
|
18
|
-
} from "./cli-
|
|
18
|
+
} from "./cli-12epgrva.js";
|
|
19
19
|
import {
|
|
20
20
|
UsageError,
|
|
21
21
|
rejectExtraPositionals,
|
|
22
22
|
rejectUnknownFlags
|
|
23
|
-
} from "./cli-
|
|
24
|
-
import"./cli-
|
|
23
|
+
} from "./cli-tvpq2ht9.js";
|
|
24
|
+
import"./cli-k8f9eb12.js";
|
|
25
25
|
import"./cli-c41yr7he.js";
|
|
26
26
|
import {
|
|
27
27
|
EXIT_CODES
|
|
28
28
|
} from "./cli-46ycxe6r.js";
|
|
29
|
-
import"./cli-
|
|
29
|
+
import"./cli-vje8g3w8.js";
|
|
30
30
|
import"./cli-v5mp7a6q.js";
|
|
31
31
|
import"./cli-37x76zdn.js";
|
|
32
32
|
|
|
@@ -2,12 +2,14 @@ import {
|
|
|
2
2
|
AUTO_SNAPSHOT_MESSAGE,
|
|
3
3
|
HISTORY_PAGE_LIMIT,
|
|
4
4
|
RESTORE_BACKUP_MESSAGE,
|
|
5
|
+
SWITCH_BRANCH_SNAPSHOT_MESSAGE,
|
|
5
6
|
__repoLockQueueSizeForTests,
|
|
6
7
|
gitDirFor,
|
|
7
8
|
gitScopeFor,
|
|
8
9
|
hasPendingChanges,
|
|
9
10
|
hasUncommittedChanges,
|
|
10
11
|
isNoChangesError,
|
|
12
|
+
listLocalBranches,
|
|
11
13
|
listWorkdirChanges,
|
|
12
14
|
providerFor,
|
|
13
15
|
resolveGitAuthor,
|
|
@@ -15,12 +17,14 @@ import {
|
|
|
15
17
|
snapshotStagingMarkerPath,
|
|
16
18
|
snapshotWorkingTreeUnlocked,
|
|
17
19
|
stageChanges,
|
|
20
|
+
switchBranch,
|
|
18
21
|
withRepoLock
|
|
19
|
-
} from "./cli-
|
|
22
|
+
} from "./cli-vje8g3w8.js";
|
|
20
23
|
import"./cli-v5mp7a6q.js";
|
|
21
24
|
import"./cli-37x76zdn.js";
|
|
22
25
|
export {
|
|
23
26
|
withRepoLock,
|
|
27
|
+
switchBranch,
|
|
24
28
|
stageChanges,
|
|
25
29
|
snapshotWorkingTreeUnlocked,
|
|
26
30
|
snapshotStagingMarkerPath,
|
|
@@ -28,12 +32,14 @@ export {
|
|
|
28
32
|
resolveGitAuthor,
|
|
29
33
|
providerFor,
|
|
30
34
|
listWorkdirChanges,
|
|
35
|
+
listLocalBranches,
|
|
31
36
|
isNoChangesError,
|
|
32
37
|
hasUncommittedChanges,
|
|
33
38
|
hasPendingChanges,
|
|
34
39
|
gitScopeFor,
|
|
35
40
|
gitDirFor,
|
|
36
41
|
__repoLockQueueSizeForTests,
|
|
42
|
+
SWITCH_BRANCH_SNAPSHOT_MESSAGE,
|
|
37
43
|
RESTORE_BACKUP_MESSAGE,
|
|
38
44
|
HISTORY_PAGE_LIMIT,
|
|
39
45
|
AUTO_SNAPSHOT_MESSAGE
|
|
@@ -2,12 +2,14 @@ import {
|
|
|
2
2
|
AUTO_SNAPSHOT_MESSAGE,
|
|
3
3
|
HISTORY_PAGE_LIMIT,
|
|
4
4
|
RESTORE_BACKUP_MESSAGE,
|
|
5
|
+
SWITCH_BRANCH_SNAPSHOT_MESSAGE,
|
|
5
6
|
__repoLockQueueSizeForTests,
|
|
6
7
|
gitDirFor,
|
|
7
8
|
gitScopeFor,
|
|
8
9
|
hasPendingChanges,
|
|
9
10
|
hasUncommittedChanges,
|
|
10
11
|
isNoChangesError,
|
|
12
|
+
listLocalBranches,
|
|
11
13
|
listWorkdirChanges,
|
|
12
14
|
providerFor,
|
|
13
15
|
resolveGitAuthor,
|
|
@@ -15,12 +17,14 @@ import {
|
|
|
15
17
|
snapshotStagingMarkerPath,
|
|
16
18
|
snapshotWorkingTreeUnlocked,
|
|
17
19
|
stageChanges,
|
|
20
|
+
switchBranch,
|
|
18
21
|
withRepoLock
|
|
19
|
-
} from "./index-
|
|
22
|
+
} from "./index-f833dtg9.js";
|
|
20
23
|
import"./index-v5mp7a6q.js";
|
|
21
24
|
import"./index-37x76zdn.js";
|
|
22
25
|
export {
|
|
23
26
|
withRepoLock,
|
|
27
|
+
switchBranch,
|
|
24
28
|
stageChanges,
|
|
25
29
|
snapshotWorkingTreeUnlocked,
|
|
26
30
|
snapshotStagingMarkerPath,
|
|
@@ -28,12 +32,14 @@ export {
|
|
|
28
32
|
resolveGitAuthor,
|
|
29
33
|
providerFor,
|
|
30
34
|
listWorkdirChanges,
|
|
35
|
+
listLocalBranches,
|
|
31
36
|
isNoChangesError,
|
|
32
37
|
hasUncommittedChanges,
|
|
33
38
|
hasPendingChanges,
|
|
34
39
|
gitScopeFor,
|
|
35
40
|
gitDirFor,
|
|
36
41
|
__repoLockQueueSizeForTests,
|
|
42
|
+
SWITCH_BRANCH_SNAPSHOT_MESSAGE,
|
|
37
43
|
RESTORE_BACKUP_MESSAGE,
|
|
38
44
|
HISTORY_PAGE_LIMIT,
|
|
39
45
|
AUTO_SNAPSHOT_MESSAGE
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* `:root` custom properties, and nothing else. The palette, the type scale,
|
|
6
6
|
* the spacing scale, the measure. This is the file a non-technical author
|
|
7
7
|
* edits to rebrand the whole book, and the file the desktop app's Design
|
|
8
|
-
* panel reads (`
|
|
8
|
+
* panel reads (`package.json` points `gutterpress.tokensFile` here).
|
|
9
9
|
*
|
|
10
10
|
* MUST NOT CONTAIN
|
|
11
11
|
* - Any selector other than `:root`. The moment a rule here targets `h1`,
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import {
|
|
2
2
|
executeAndReport
|
|
3
|
-
} from "./cli-
|
|
3
|
+
} from "./cli-5fqr02je.js";
|
|
4
4
|
import {
|
|
5
5
|
log
|
|
6
|
-
} from "./cli-
|
|
6
|
+
} from "./cli-12epgrva.js";
|
|
7
7
|
import {
|
|
8
8
|
UsageError,
|
|
9
9
|
rejectExtraPositionals,
|
|
10
10
|
rejectUnknownFlags
|
|
11
|
-
} from "./cli-
|
|
12
|
-
import"./cli-
|
|
11
|
+
} from "./cli-tvpq2ht9.js";
|
|
12
|
+
import"./cli-k8f9eb12.js";
|
|
13
13
|
import"./cli-c41yr7he.js";
|
|
14
14
|
import {
|
|
15
15
|
EXIT_CODES
|
|
16
16
|
} from "./cli-46ycxe6r.js";
|
|
17
|
-
import"./cli-
|
|
17
|
+
import"./cli-vje8g3w8.js";
|
|
18
18
|
import"./cli-v5mp7a6q.js";
|
|
19
19
|
import"./cli-37x76zdn.js";
|
|
20
20
|
|
package/package.json
CHANGED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "{{NAME}}",
|
|
3
|
-
"author": "{{AUTHOR}}",
|
|
4
|
-
"description": "{{DESCRIPTION}}",
|
|
5
|
-
"preview": null,
|
|
6
|
-
"styles": [
|
|
7
|
-
"styles/tokens.css",
|
|
8
|
-
"styles/base.css",
|
|
9
|
-
"styles/components.css",
|
|
10
|
-
"styles/page-templates.css",
|
|
11
|
-
"styles/page-rules.css",
|
|
12
|
-
"styles/book.css"
|
|
13
|
-
],
|
|
14
|
-
"tokensFile": "styles/tokens.css",
|
|
15
|
-
"components": "components.yaml",
|
|
16
|
-
"snippets": "snippets"
|
|
17
|
-
}
|
package/dist/theme-etj4gxck.json
DELETED
package/dist/theme-s2rg7xe7.json
DELETED