@erdoai/cli 0.235.0 → 0.236.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/dist/index.js +7 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6802,6 +6802,9 @@ pagesCmd.command("deploy").description("Deploy a page (HTML/React); --html/--js/
|
|
|
6802
6802
|
).option(
|
|
6803
6803
|
"--meta-image-asset <attachmentId>",
|
|
6804
6804
|
"public share image: a Brand Style attachment id (og-image / hero photo) for the link-preview card"
|
|
6805
|
+
).option(
|
|
6806
|
+
"--required-modules <csv>",
|
|
6807
|
+
"runtime modules the page needs (erdoui, landing); a page using the landing components renders blank without landing"
|
|
6805
6808
|
).option("--datasets <csv>", "dataset slugs the page reads").option("--writable-datasets <csv>", "dataset slugs the page may write via erdo.insertRows").option("--kv <csv>", "named KV-store slugs the page reads").option("--writable-kv <csv>", "named KV-store slugs the page may write").option("--public", "make the page publicly viewable").action(
|
|
6806
6809
|
async (opts) => {
|
|
6807
6810
|
try {
|
|
@@ -6812,6 +6815,7 @@ pagesCmd.command("deploy").description("Deploy a page (HTML/React); --html/--js/
|
|
|
6812
6815
|
js: readMaybeFile(opts.js),
|
|
6813
6816
|
css: readMaybeFile(opts.css),
|
|
6814
6817
|
runtime: opts.runtime,
|
|
6818
|
+
required_modules: grantList(opts.requiredModules),
|
|
6815
6819
|
meta_title: opts.metaTitle,
|
|
6816
6820
|
meta_description: opts.metaDescription,
|
|
6817
6821
|
meta_icon_asset_id: opts.metaIconAsset,
|
|
@@ -6884,7 +6888,7 @@ pagesCmd.command("update <id>").description(
|
|
|
6884
6888
|
}
|
|
6885
6889
|
}
|
|
6886
6890
|
);
|
|
6887
|
-
pagesCmd.command("validate").description("Validate page content without deploying").requiredOption("--html <htmlOr@file>", "HTML (or @path)").option("--js <jsOr@file>", "JS/JSX (or @path)").option("--css <cssOr@file>", "CSS (or @path)").option("--runtime <runtime>", "react-tailwind (default) or none").option("--datasets <csv>", "read-dataset slugs referenced by this page (comma-separated)").action(async (opts) => {
|
|
6891
|
+
pagesCmd.command("validate").description("Validate page content without deploying").requiredOption("--html <htmlOr@file>", "HTML (or @path)").option("--js <jsOr@file>", "JS/JSX (or @path)").option("--css <cssOr@file>", "CSS (or @path)").option("--runtime <runtime>", "react-tailwind (default) or none").option("--datasets <csv>", "read-dataset slugs referenced by this page (comma-separated)").option("--required-modules <csv>", 'runtime modules the page will declare (erdoui, landing; "[]" for none)').action(async (opts) => {
|
|
6888
6892
|
try {
|
|
6889
6893
|
print(
|
|
6890
6894
|
await new ErdoClient().validatePage({
|
|
@@ -6892,7 +6896,8 @@ pagesCmd.command("validate").description("Validate page content without deployin
|
|
|
6892
6896
|
js: readMaybeFile(opts.js),
|
|
6893
6897
|
css: readMaybeFile(opts.css),
|
|
6894
6898
|
runtime: opts.runtime,
|
|
6895
|
-
dataset_slugs: grantList(opts.datasets)
|
|
6899
|
+
dataset_slugs: grantList(opts.datasets),
|
|
6900
|
+
required_modules: grantList(opts.requiredModules)
|
|
6896
6901
|
})
|
|
6897
6902
|
);
|
|
6898
6903
|
} catch (e) {
|