@vexblocks/cli 1.0.2 → 1.0.3
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 +5 -5
- package/dist/index.js +10 -10
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -35,7 +35,7 @@ pnpm dev
|
|
|
35
35
|
|
|
36
36
|
## Commands
|
|
37
37
|
|
|
38
|
-
###
|
|
38
|
+
### `@vexblocks/cli init`
|
|
39
39
|
|
|
40
40
|
Initialize a new VexBlocks project or add VexBlocks to an existing Turborepo.
|
|
41
41
|
|
|
@@ -44,7 +44,7 @@ npx @vexblocks/cli init
|
|
|
44
44
|
npx @vexblocks/cli init --cwd ./my-project
|
|
45
45
|
```
|
|
46
46
|
|
|
47
|
-
###
|
|
47
|
+
### `@vexblocks/cli add`
|
|
48
48
|
|
|
49
49
|
Add VexBlocks packages to your project.
|
|
50
50
|
|
|
@@ -73,7 +73,7 @@ npx @vexblocks/cli add cms --overwrite
|
|
|
73
73
|
| `types` | TypeScript type generator | `packages/type-generator` |
|
|
74
74
|
| `all` | All packages | - |
|
|
75
75
|
|
|
76
|
-
###
|
|
76
|
+
### `@vexblocks/cli upgrade`
|
|
77
77
|
|
|
78
78
|
Upgrade VexBlocks packages to the latest version.
|
|
79
79
|
|
|
@@ -91,7 +91,7 @@ npx @vexblocks/cli upgrade cms
|
|
|
91
91
|
npx @vexblocks/cli upgrade --force
|
|
92
92
|
```
|
|
93
93
|
|
|
94
|
-
###
|
|
94
|
+
### `@vexblocks/cli diff`
|
|
95
95
|
|
|
96
96
|
Show differences between local files and the latest version.
|
|
97
97
|
|
|
@@ -102,7 +102,7 @@ npx @vexblocks/cli diff backend
|
|
|
102
102
|
|
|
103
103
|
## Project Structure
|
|
104
104
|
|
|
105
|
-
After running `vexblocks add all`, your project will have:
|
|
105
|
+
After running `npx @vexblocks/cli add all`, your project will have:
|
|
106
106
|
|
|
107
107
|
```
|
|
108
108
|
your-project/
|
package/dist/index.js
CHANGED
|
@@ -303,7 +303,7 @@ async function addCommand(packages, options) {
|
|
|
303
303
|
if (!isTurbo) {
|
|
304
304
|
logger.error("This is not a Turborepo project.");
|
|
305
305
|
logger.info(
|
|
306
|
-
`Run ${pc2.cyan("npx vexblocks init")} first to set up your project.`
|
|
306
|
+
`Run ${pc2.cyan("npx @vexblocks/cli init")} first to set up your project.`
|
|
307
307
|
);
|
|
308
308
|
process.exit(1);
|
|
309
309
|
}
|
|
@@ -586,7 +586,7 @@ async function diffCommand(packageArg, options) {
|
|
|
586
586
|
logger.title("\u{1F50D} VexBlocks Diff");
|
|
587
587
|
const manifest = await readManifest(cwd);
|
|
588
588
|
if (!manifest) {
|
|
589
|
-
logger.error("No vexblocks.json found. Run `vexblocks init` first.");
|
|
589
|
+
logger.error("No vexblocks.json found. Run `npx @vexblocks/cli init` first.");
|
|
590
590
|
process.exit(1);
|
|
591
591
|
}
|
|
592
592
|
const installedPackages = Object.keys(manifest.packages);
|
|
@@ -698,7 +698,7 @@ async function diffCommand(packageArg, options) {
|
|
|
698
698
|
logger.log(` ${pc3.red(`-${deletedFiles}`)} files removed in remote`);
|
|
699
699
|
logger.break();
|
|
700
700
|
logger.info(
|
|
701
|
-
`Run ${pc3.cyan("npx vexblocks upgrade")} to update to the latest version.`
|
|
701
|
+
`Run ${pc3.cyan("npx @vexblocks/cli upgrade")} to update to the latest version.`
|
|
702
702
|
);
|
|
703
703
|
}
|
|
704
704
|
} catch (error) {
|
|
@@ -761,7 +761,7 @@ async function initCommand(options) {
|
|
|
761
761
|
default: false
|
|
762
762
|
});
|
|
763
763
|
if (!continueAnyway) {
|
|
764
|
-
logger.info("Run `vexblocks add <package>` to add packages.");
|
|
764
|
+
logger.info("Run `npx @vexblocks/cli add <package>` to add packages.");
|
|
765
765
|
return;
|
|
766
766
|
}
|
|
767
767
|
}
|
|
@@ -937,7 +937,7 @@ FRONTEND_URL=http://localhost:3000
|
|
|
937
937
|
pc4.bold("Next steps:"),
|
|
938
938
|
`1. ${pc4.cyan(`cd ${projectName}`)}`,
|
|
939
939
|
`2. ${pc4.cyan("pnpm install")}`,
|
|
940
|
-
`3. ${pc4.cyan("npx vexblocks add all")}`,
|
|
940
|
+
`3. ${pc4.cyan("npx @vexblocks/cli add all")}`,
|
|
941
941
|
"4. Set up your Convex project",
|
|
942
942
|
`5. ${pc4.cyan("pnpm dev")}`
|
|
943
943
|
]);
|
|
@@ -947,7 +947,7 @@ FRONTEND_URL=http://localhost:3000
|
|
|
947
947
|
});
|
|
948
948
|
if (addPackages) {
|
|
949
949
|
logger.break();
|
|
950
|
-
logger.info(`Run: ${pc4.cyan("npx vexblocks add all")}`);
|
|
950
|
+
logger.info(`Run: ${pc4.cyan("npx @vexblocks/cli add all")}`);
|
|
951
951
|
logger.info("After navigating to your project directory.");
|
|
952
952
|
}
|
|
953
953
|
} catch (error) {
|
|
@@ -978,7 +978,7 @@ async function initializeExisting(cwd, _options) {
|
|
|
978
978
|
`Version: ${pc4.cyan(version)}`,
|
|
979
979
|
"",
|
|
980
980
|
pc4.bold("Next steps:"),
|
|
981
|
-
`1. ${pc4.cyan("npx vexblocks add all")} - Add all CMS packages`,
|
|
981
|
+
`1. ${pc4.cyan("npx @vexblocks/cli add all")} - Add all CMS packages`,
|
|
982
982
|
"2. Configure your environment variables",
|
|
983
983
|
`3. ${pc4.cyan(`${packageManager} install`)}`,
|
|
984
984
|
`4. ${pc4.cyan(`${packageManager === "npm" ? "npm run" : packageManager} dev`)}`
|
|
@@ -1000,7 +1000,7 @@ async function upgradeCommand(packages, options) {
|
|
|
1000
1000
|
logger.title("\u2B06\uFE0F Upgrade VexBlocks Packages");
|
|
1001
1001
|
const manifest = await readManifest(cwd);
|
|
1002
1002
|
if (!manifest) {
|
|
1003
|
-
logger.error("No vexblocks.json found. Run `vexblocks init` first.");
|
|
1003
|
+
logger.error("No vexblocks.json found. Run `npx @vexblocks/cli init` first.");
|
|
1004
1004
|
process.exit(1);
|
|
1005
1005
|
}
|
|
1006
1006
|
const spinner = ora4("Checking for updates...").start();
|
|
@@ -1008,7 +1008,7 @@ async function upgradeCommand(packages, options) {
|
|
|
1008
1008
|
spinner.stop();
|
|
1009
1009
|
const installedPackages = Object.keys(manifest.packages);
|
|
1010
1010
|
if (installedPackages.length === 0) {
|
|
1011
|
-
logger.info("No packages installed. Run `vexblocks add <package>` first.");
|
|
1011
|
+
logger.info("No packages installed. Run `npx @vexblocks/cli add <package>` first.");
|
|
1012
1012
|
return;
|
|
1013
1013
|
}
|
|
1014
1014
|
let packagesToUpgrade;
|
|
@@ -1065,7 +1065,7 @@ async function upgradeCommand(packages, options) {
|
|
|
1065
1065
|
if (options.check) {
|
|
1066
1066
|
logger.break();
|
|
1067
1067
|
logger.info(
|
|
1068
|
-
`Run ${pc5.cyan("npx vexblocks upgrade")} to apply these updates.`
|
|
1068
|
+
`Run ${pc5.cyan("npx @vexblocks/cli upgrade")} to apply these updates.`
|
|
1069
1069
|
);
|
|
1070
1070
|
return;
|
|
1071
1071
|
}
|