@coraltravelcenter/b2c-landing-builder 2.0.0-next.0 → 2.0.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
CHANGED
|
@@ -18,12 +18,12 @@ Builder устанавливается один раз и не копирует
|
|
|
18
18
|
Команды выполняются из корня проекта:
|
|
19
19
|
|
|
20
20
|
```bash
|
|
21
|
-
b2c-landing check
|
|
22
|
-
b2c-landing dev
|
|
23
|
-
b2c-landing build
|
|
24
|
-
b2c-landing block:add hero
|
|
25
|
-
b2c-landing block:rename hero main-hero
|
|
26
|
-
b2c-landing update
|
|
21
|
+
b2c-landing-vite check
|
|
22
|
+
b2c-landing-vite dev
|
|
23
|
+
b2c-landing-vite build
|
|
24
|
+
b2c-landing-vite block:add hero
|
|
25
|
+
b2c-landing-vite block:rename hero main-hero
|
|
26
|
+
b2c-landing-vite update
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
- `check` проверяет конфигурацию, `order.json` и контракт JS-блоков.
|
|
@@ -36,7 +36,7 @@ b2c-landing update
|
|
|
36
36
|
Builder никогда не обновляется автоматически:
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
|
-
b2c-landing update
|
|
39
|
+
b2c-landing-vite update
|
|
40
40
|
# Update manually: npm install --global @coraltravelcenter/b2c-landing-builder@latest
|
|
41
41
|
```
|
|
42
42
|
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coraltravelcenter/b2c-landing-builder",
|
|
3
|
-
"version": "2.0.0
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "CLI and build toolkit for B2C landing projects",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"b2c-landing": "bin/b2c-landing.mjs"
|
|
7
|
+
"b2c-landing-vite": "bin/b2c-landing-vite.mjs"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"bin/",
|
package/src/cli/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ import {loadConfig} from "../config/load-config.mjs";
|
|
|
2
2
|
import {resolvePreset} from "../config/resolve-preset.mjs";
|
|
3
3
|
import {validateProject} from "../config/validate-project.mjs";
|
|
4
4
|
|
|
5
|
-
const usage = `Usage: b2c-landing <command>
|
|
5
|
+
const usage = `Usage: b2c-landing-vite <command>
|
|
6
6
|
|
|
7
7
|
Commands:
|
|
8
8
|
dev Start the Vite development server
|
|
@@ -54,11 +54,11 @@ export async function runCli(args) {
|
|
|
54
54
|
if (command === "block:add" || command === "block:rename") {
|
|
55
55
|
const config = await loadConfig();
|
|
56
56
|
if (command === "block:add") {
|
|
57
|
-
if (rest.length !== 1) throw new Error("Usage: b2c-landing block:add <key>");
|
|
57
|
+
if (rest.length !== 1) throw new Error("Usage: b2c-landing-vite block:add <key>");
|
|
58
58
|
const {addBlock} = await import("../blocks/add.mjs");
|
|
59
59
|
return addBlock(rest[0], config);
|
|
60
60
|
}
|
|
61
|
-
if (rest.length !== 2) throw new Error("Usage: b2c-landing block:rename <old> <new>");
|
|
61
|
+
if (rest.length !== 2) throw new Error("Usage: b2c-landing-vite block:rename <old> <new>");
|
|
62
62
|
const {renameBlock} = await import("../blocks/rename.mjs");
|
|
63
63
|
return renameBlock(rest[0], rest[1]);
|
|
64
64
|
}
|