@riebeckite/honox 0.0.5 → 0.0.6
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 +1 -1
- package/README_ja.md +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +939 -135
- package/dist/server.js +25 -3
- package/dist/src/endpoints.d.ts +15 -0
- package/dist/src/honox_islands.d.ts +2 -4
- package/dist/src/scaffold/localized-content.d.ts +1 -1
- package/dist/src/scaffold/next-steps.d.ts +1 -0
- package/dist/src/scaffold/presets.d.ts +34 -2
- package/dist/src/scaffold/presets.js +331 -49
- package/dist/src/scaffold/templates.d.ts +37 -1
- package/dist/src/scaffold/version.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type ScaffoldPreset } from "./presets.js";
|
|
1
|
+
import { type ScaffoldOptionContext, type ScaffoldOptions, type ScaffoldPreset } from "./presets.js";
|
|
2
2
|
export type SiteTemplateVariables = {
|
|
3
3
|
readonly name: string;
|
|
4
4
|
readonly title: string;
|
|
@@ -11,3 +11,39 @@ export type SiteTemplateFile = {
|
|
|
11
11
|
readonly content: string;
|
|
12
12
|
};
|
|
13
13
|
export declare function siteTemplateFiles(preset: ScaffoldPreset, variables: SiteTemplateVariables): readonly SiteTemplateFile[];
|
|
14
|
+
/**
|
|
15
|
+
* Resolve a plugin's options literal for the preset's depth, or `null` when
|
|
16
|
+
* the plugin takes no options at that depth (and should be called bare).
|
|
17
|
+
*/
|
|
18
|
+
export declare function renderOptions(options: ScaffoldOptions | undefined, context: ScaffoldOptionContext): string | null;
|
|
19
|
+
export type ReadmeDemo = {
|
|
20
|
+
readonly title: {
|
|
21
|
+
readonly en: string;
|
|
22
|
+
readonly ja: string;
|
|
23
|
+
};
|
|
24
|
+
readonly intro: {
|
|
25
|
+
readonly en: string;
|
|
26
|
+
readonly ja: string;
|
|
27
|
+
};
|
|
28
|
+
readonly markdown: string;
|
|
29
|
+
};
|
|
30
|
+
export declare const README_DEMOS: Readonly<Record<string, ReadmeDemo>>;
|
|
31
|
+
/**
|
|
32
|
+
* English-only content pages keep a `.en` suffix unless `en` is the default
|
|
33
|
+
* language. `examples` is intentionally absent: it is localized like the
|
|
34
|
+
* tour pages, with English as the fallback for untranslated languages.
|
|
35
|
+
*/
|
|
36
|
+
export declare const ENGLISH_ONLY_PAGES: Set<string>;
|
|
37
|
+
export declare function fence(language: string, body: string): string;
|
|
38
|
+
export declare function hasPlugin(preset: ScaffoldPreset, packageName: string): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* A demo key is either `@scope/package` or `@scope/package/topic`. Recover the
|
|
41
|
+
* package name: the first two `/`-separated segments form the scoped name.
|
|
42
|
+
*/
|
|
43
|
+
export declare function demoPackage(key: string): string;
|
|
44
|
+
/**
|
|
45
|
+
* The options object literal used for a plugin at this preset's depth, or
|
|
46
|
+
* `null` when it takes no options at that depth.
|
|
47
|
+
*/
|
|
48
|
+
export declare function readmePluginOptions(variables: SiteTemplateVariables, preset: ScaffoldPreset, plugin: ScaffoldPreset["plugins"][number]): string | null;
|
|
49
|
+
export declare const README_DEMO_ORDER: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RIEBECKITE_VERSION = "^0.0.6";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riebeckite/honox",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.6",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"esbuild": "^0.28.2",
|
|
37
37
|
"hono": "^4.12.25",
|
|
38
38
|
"vite": "^8.0.9",
|
|
39
|
-
"@riebeckite/core": "0.0.
|
|
39
|
+
"@riebeckite/core": "0.0.6"
|
|
40
40
|
},
|
|
41
41
|
"publishConfig": {
|
|
42
42
|
"access": "public"
|