flowershow 0.0.9 → 0.0.10
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/CHANGELOG.md
CHANGED
package/package.json
CHANGED
package/src/bin/cli.js
CHANGED
|
@@ -7,7 +7,7 @@ import os from "os";
|
|
|
7
7
|
|
|
8
8
|
if (os.platform() === "win32") {
|
|
9
9
|
warn(
|
|
10
|
-
"This may not work as expected. You're trying to run Flowreshow CLI on Windows, which is not
|
|
10
|
+
"This may not work as expected. You're trying to run Flowreshow CLI on Windows, which is not thoroughly tested. Please submit an issue if you encounter any problems: https://github.com/flowershow/flowershow/issues"
|
|
11
11
|
);
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -54,16 +54,16 @@ program
|
|
|
54
54
|
});
|
|
55
55
|
|
|
56
56
|
program
|
|
57
|
-
.command("
|
|
58
|
-
.description("build static Flowershow website")
|
|
57
|
+
.command("export")
|
|
58
|
+
.description("build a static Flowershow website")
|
|
59
59
|
.argument(
|
|
60
60
|
"[project-dir]",
|
|
61
61
|
"Path to the folder where Flowershow template is installed (root folder of .flowershow)",
|
|
62
62
|
"."
|
|
63
63
|
)
|
|
64
64
|
.action(async (projectPath) => {
|
|
65
|
-
const { default:
|
|
66
|
-
|
|
65
|
+
const { default: buildExport } = await import("../lib/buildExport.js");
|
|
66
|
+
buildExport(projectPath);
|
|
67
67
|
});
|
|
68
68
|
|
|
69
69
|
program
|
|
@@ -3,7 +3,7 @@ import { execa } from "execa";
|
|
|
3
3
|
|
|
4
4
|
import { FLOWERSHOW_FOLDER_NAME } from "./const.js";
|
|
5
5
|
|
|
6
|
-
export default async function
|
|
6
|
+
export default async function buildExport(dir) {
|
|
7
7
|
const flowershowDir = path.resolve(dir, FLOWERSHOW_FOLDER_NAME);
|
|
8
8
|
|
|
9
9
|
const subprocess = execa("npm", ["run", "export"], { cwd: flowershowDir });
|