@faststore/cli 4.1.0-dev.8 → 4.1.1-dev.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 +19 -58
- package/bin/dev.js +0 -0
- package/package.json +20 -25
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<a href="https://
|
|
2
|
+
<a href="https://faststore.dev">
|
|
3
3
|
<img alt="Faststore" src="../ui/static/logo.png" width="60" />
|
|
4
4
|
</a>
|
|
5
5
|
</p>
|
|
@@ -11,71 +11,32 @@
|
|
|
11
11
|
The FastStore Command Line Interface
|
|
12
12
|
</strong>
|
|
13
13
|
</p>
|
|
14
|
-
<p align="center">
|
|
15
|
-
<a href="https://www.npmjs.com/package/@faststore/cli">
|
|
16
|
-
<img src="https://badge.fury.io/js/%40faststore%2Fcli.svg" alt="npm version" />
|
|
17
|
-
</a>
|
|
18
|
-
</p>
|
|
19
14
|
|
|
20
|
-
|
|
15
|
+
The FastStore Command Line Interface (CLI) is the main pre-configured tool for initializing, building and developing FastStore projects.
|
|
21
16
|
|
|
17
|
+
Also the CLI is the responsible on keeping the stores up-to-date with the `@faststore/core` package and enables the cloud platform to understand the FastStore project.
|
|
22
18
|
|
|
23
|
-
##
|
|
24
|
-
|
|
25
|
-
```text
|
|
26
|
-
src/
|
|
27
|
-
├── commands/ # One file per CLI command (dev.ts, build.ts, generate.ts, etc.)
|
|
28
|
-
├── utils/ # Shared utilities used across commands
|
|
29
|
-
└── index.ts # Package entry point
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
## How to run
|
|
19
|
+
## Installation
|
|
33
20
|
|
|
34
|
-
|
|
21
|
+
From the command line in your project directory, run:
|
|
35
22
|
|
|
36
|
-
|
|
37
|
-
-
|
|
38
|
-
|
|
39
|
-
### Local setup
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
# 1. Install dependencies (from the repo root)
|
|
43
|
-
pnpm install
|
|
44
|
-
|
|
45
|
-
# 2. Build the CLI
|
|
46
|
-
pnpm build
|
|
23
|
+
```cmd
|
|
24
|
+
npm install -g @faststore/cli
|
|
47
25
|
```
|
|
48
26
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
1.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
## How to test
|
|
61
|
-
|
|
62
|
-
```bash
|
|
63
|
-
pnpm test
|
|
27
|
+
<!-- usage -->
|
|
28
|
+
```sh-session
|
|
29
|
+
$ npm install -g @faststore/cli
|
|
30
|
+
$ faststore COMMAND
|
|
31
|
+
running command...
|
|
32
|
+
$ faststore (--version)
|
|
33
|
+
@faststore/cli/4.1.1-dev.0 linux-x64 node-v24.13.0
|
|
34
|
+
$ faststore --help [COMMAND]
|
|
35
|
+
USAGE
|
|
36
|
+
$ faststore COMMAND
|
|
37
|
+
...
|
|
64
38
|
```
|
|
65
|
-
|
|
66
|
-
## How to publish
|
|
67
|
-
|
|
68
|
-
Versioning and publishing are managed at the monorepo root by Lerna. Do not publish this package independently. The `## Commands` section in this README is regenerated automatically when a new version is packed. Refer to the [Contributing guidelines](../../CONTRIBUTING.MD) for the full release workflow.
|
|
69
|
-
|
|
70
|
-
## Documentation
|
|
71
|
-
|
|
72
|
-
- **Faststore CLI:** [Running FastStore CLI on the project](https://developers.vtex.com/docs/guides/faststore/developer-tools-faststore-cli)
|
|
73
|
-
|
|
74
|
-
<br />
|
|
75
|
-
|
|
76
|
-
<br />
|
|
77
|
-
|
|
78
|
-
> The `## Commands` section below is auto-generated by `oclif readme` during `prepack`. Do not edit it manually — changes will be overwritten on the next build.
|
|
39
|
+
<!-- usagestop -->
|
|
79
40
|
|
|
80
41
|
## Commands
|
|
81
42
|
|
package/bin/dev.js
CHANGED
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/cli",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.1-dev.0",
|
|
4
4
|
"description": "FastStore CLI",
|
|
5
5
|
"author": "Emerson Laurentino @emersonlaurentino",
|
|
6
6
|
"type": "module",
|
|
@@ -26,12 +26,10 @@
|
|
|
26
26
|
"/oclif.manifest.json"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@antfu/ni": "
|
|
30
|
-
"@
|
|
31
|
-
"@
|
|
32
|
-
"@graphql-
|
|
33
|
-
"@graphql-tools/merge": "catalog:",
|
|
34
|
-
"@graphql-tools/utils": "catalog:",
|
|
29
|
+
"@antfu/ni": "0.21.12",
|
|
30
|
+
"@graphql-codegen/cli": "6.1.1",
|
|
31
|
+
"@graphql-tools/merge": "9.1.1",
|
|
32
|
+
"@graphql-tools/utils": "10.10.1",
|
|
35
33
|
"@inquirer/confirm": "^5.1.19",
|
|
36
34
|
"@inquirer/prompts": "^5.1.2",
|
|
37
35
|
"@oclif/core": "^4",
|
|
@@ -47,23 +45,24 @@
|
|
|
47
45
|
"oclif": "^4",
|
|
48
46
|
"ora": "5.4.1",
|
|
49
47
|
"prettier": "^3.1.0",
|
|
50
|
-
"resolve-pkg": "^3.0.0"
|
|
48
|
+
"resolve-pkg": "^3.0.0",
|
|
49
|
+
"@faststore/core": "4.1.1-dev.0",
|
|
50
|
+
"@faststore/api": "4.1.1-dev.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@types/degit": "^2.8.6",
|
|
54
54
|
"@types/fs-extra": "^11",
|
|
55
|
-
"@types/node": "
|
|
56
|
-
"
|
|
57
|
-
"graphql": "catalog:",
|
|
55
|
+
"@types/node": "20.19.13",
|
|
56
|
+
"graphql": "16.11.0",
|
|
58
57
|
"shx": "^0.3.3",
|
|
59
58
|
"ts-node": "^10.9.1",
|
|
60
|
-
"tslib": "
|
|
59
|
+
"tslib": "2.8.1",
|
|
61
60
|
"tsup": "^8.5.0",
|
|
62
|
-
"typescript": "
|
|
63
|
-
"vitest": "
|
|
61
|
+
"typescript": "5.9.3",
|
|
62
|
+
"vitest": "4.0.7"
|
|
64
63
|
},
|
|
65
64
|
"peerDependencies": {
|
|
66
|
-
"graphql": "
|
|
65
|
+
"graphql": "16.11.0"
|
|
67
66
|
},
|
|
68
67
|
"publishConfig": {
|
|
69
68
|
"access": "public"
|
|
@@ -82,14 +81,6 @@
|
|
|
82
81
|
"@oclif/plugin-not-found"
|
|
83
82
|
]
|
|
84
83
|
},
|
|
85
|
-
"scripts": {
|
|
86
|
-
"build": "tsup-node",
|
|
87
|
-
"test": "vitest run src/**/*.test.ts",
|
|
88
|
-
"test:coverage": "vitest run src/**/*.test.ts --coverage",
|
|
89
|
-
"postpack": "shx rm -f oclif.manifest.json",
|
|
90
|
-
"prepack": "na run build && oclif readme",
|
|
91
|
-
"version": "oclif readme && git add README.md"
|
|
92
|
-
},
|
|
93
84
|
"bugs": "https://github.com/vtex/faststore/issues",
|
|
94
85
|
"keywords": [
|
|
95
86
|
"oclif"
|
|
@@ -98,5 +89,9 @@
|
|
|
98
89
|
"engines": {
|
|
99
90
|
"node": ">=20"
|
|
100
91
|
},
|
|
101
|
-
"
|
|
102
|
-
|
|
92
|
+
"scripts": {
|
|
93
|
+
"build": "tsup-node",
|
|
94
|
+
"test": "vitest run src/**/*.test.ts",
|
|
95
|
+
"version": "oclif readme && git add README.md"
|
|
96
|
+
}
|
|
97
|
+
}
|