@pantoken/scaffold 1.1.0 → 1.2.0
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 +10 -3
- package/dist/cli.d.mts +25 -8
- package/dist/cli.mjs +217 -217
- package/dist/{index-CyolWk0E.d.mts → index-D2-Dhvt8.d.mts} +4 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/src-DxBSPAO9.mjs +903 -0
- package/package.json +18 -18
- package/dist/src-CdZxIoo2.mjs +0 -304
|
@@ -62,7 +62,8 @@ declare function resolveScaffoldPlatform(platform: string): ScaffoldPlatform;
|
|
|
62
62
|
* @param options - `theme`/`mode` select which `@pantoken/css` token sheet scaffolded files
|
|
63
63
|
* import (default `"rebrand"`/`"light"`), applied across every platform. `cdn` selects the CDN
|
|
64
64
|
* provider `canvas-theme-editor`'s `theme.css`/`theme.js` are built for (default jsDelivr);
|
|
65
|
-
* ignored by every other platform.
|
|
65
|
+
* ignored by every other platform. `locale` (default `"en"`) sets the generated markup's
|
|
66
|
+
* `lang`/`dir` attributes.
|
|
66
67
|
* @returns The paths written.
|
|
67
68
|
*
|
|
68
69
|
* @example Scaffold a React starter
|
|
@@ -70,13 +71,14 @@ declare function resolveScaffoldPlatform(platform: string): ScaffoldPlatform;
|
|
|
70
71
|
* import { scaffoldProject } from "@pantoken/scaffold";
|
|
71
72
|
*
|
|
72
73
|
* scaffoldProject("react", "./my-app");
|
|
73
|
-
* scaffoldProject("vue", "./my-vue-app", { theme: "canvas" });
|
|
74
|
+
* scaffoldProject("vue", "./my-vue-app", { theme: "canvas", locale: "hu" });
|
|
74
75
|
* ```
|
|
75
76
|
*/
|
|
76
77
|
declare function scaffoldProject(platform: string, dir?: string, options?: {
|
|
77
78
|
theme?: ThemeVariant;
|
|
78
79
|
mode?: ThemeMode;
|
|
79
80
|
cdn?: string;
|
|
81
|
+
locale?: string;
|
|
80
82
|
}): Promise<string[]>;
|
|
81
83
|
//#endregion
|
|
82
84
|
export { scaffoldProject as a, themeStylesheetImport as c, resolveScaffoldPlatform as i, validateThemeMode as l, ScaffoldPlatform as n, ThemeMode as o, isScaffoldPlatform as r, ThemeVariant as s, SCAFFOLD_PLATFORMS as t, validateThemeVariant as u };
|
package/dist/index.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as scaffoldProject, c as themeStylesheetImport, i as resolveScaffoldPlatform, l as validateThemeMode, n as ScaffoldPlatform, o as ThemeMode, r as isScaffoldPlatform, s as ThemeVariant, t as SCAFFOLD_PLATFORMS, u as validateThemeVariant } from "./index-
|
|
1
|
+
import { a as scaffoldProject, c as themeStylesheetImport, i as resolveScaffoldPlatform, l as validateThemeMode, n as ScaffoldPlatform, o as ThemeMode, r as isScaffoldPlatform, s as ThemeVariant, t as SCAFFOLD_PLATFORMS, u as validateThemeVariant } from "./index-D2-Dhvt8.mjs";
|
|
2
2
|
export { SCAFFOLD_PLATFORMS, ScaffoldPlatform, type ThemeMode, type ThemeVariant, isScaffoldPlatform, resolveScaffoldPlatform, scaffoldProject, themeStylesheetImport, validateThemeMode, validateThemeVariant };
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { a as themeStylesheetImport, i as scaffoldProject, n as isScaffoldPlatform, o as validateThemeMode, r as resolveScaffoldPlatform, s as validateThemeVariant, t as SCAFFOLD_PLATFORMS } from "./src-
|
|
1
|
+
import { a as themeStylesheetImport, i as scaffoldProject, n as isScaffoldPlatform, o as validateThemeMode, r as resolveScaffoldPlatform, s as validateThemeVariant, t as SCAFFOLD_PLATFORMS } from "./src-DxBSPAO9.mjs";
|
|
2
2
|
export { SCAFFOLD_PLATFORMS, isScaffoldPlatform, resolveScaffoldPlatform, scaffoldProject, themeStylesheetImport, validateThemeMode, validateThemeVariant };
|