@faststore/cli 3.0.102 → 3.0.104

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
@@ -30,7 +30,7 @@ $ npm install -g @faststore/cli
30
30
  $ faststore COMMAND
31
31
  running command...
32
32
  $ faststore (--version)
33
- @faststore/cli/3.0.102 linux-x64 node-v18.20.4
33
+ @faststore/cli/3.0.104 linux-x64 node-v18.20.4
34
34
  $ faststore --help [COMMAND]
35
35
  USAGE
36
36
  $ faststore COMMAND
@@ -43,10 +43,10 @@ USAGE
43
43
  <!-- commands -->
44
44
  * [`faststore build [PATH]`](#faststore-build-path)
45
45
  * [`faststore cms-sync [PATH]`](#faststore-cms-sync-path)
46
+ * [`faststore create [PATH]`](#faststore-create-path)
46
47
  * [`faststore dev [PATH]`](#faststore-dev-path)
47
48
  * [`faststore generate-graphql [PATH]`](#faststore-generate-graphql-path)
48
49
  * [`faststore help [COMMAND]`](#faststore-help-command)
49
- * [`faststore init [PATH]`](#faststore-init-path)
50
50
  * [`faststore start [PATH]`](#faststore-start-path)
51
51
  * [`faststore test [PATH]`](#faststore-test-path)
52
52
 
@@ -60,7 +60,7 @@ ARGUMENTS
60
60
  PATH The path where the FastStore being built is. Defaults to cwd.
61
61
  ```
62
62
 
63
- _See code: [dist/commands/build.ts](https://github.com/vtex/faststore/blob/v3.0.102/dist/commands/build.ts)_
63
+ _See code: [dist/commands/build.ts](https://github.com/vtex/faststore/blob/v3.0.104/dist/commands/build.ts)_
64
64
 
65
65
  ## `faststore cms-sync [PATH]`
66
66
 
@@ -75,7 +75,27 @@ FLAGS
75
75
  -d, --dry-run
76
76
  ```
77
77
 
78
- _See code: [dist/commands/cms-sync.ts](https://github.com/vtex/faststore/blob/v3.0.102/dist/commands/cms-sync.ts)_
78
+ _See code: [dist/commands/cms-sync.ts](https://github.com/vtex/faststore/blob/v3.0.104/dist/commands/cms-sync.ts)_
79
+
80
+ ## `faststore create [PATH]`
81
+
82
+ Creates a discovery folder based on the starter.store template.
83
+
84
+ ```
85
+ USAGE
86
+ $ faststore create [PATH]
87
+
88
+ ARGUMENTS
89
+ PATH The path where the Discovery folder will be created. Defaults to ./discovery.
90
+
91
+ DESCRIPTION
92
+ Creates a discovery folder based on the starter.store template.
93
+
94
+ EXAMPLES
95
+ $ yarn faststore create discovery
96
+ ```
97
+
98
+ _See code: [dist/commands/create.ts](https://github.com/vtex/faststore/blob/v3.0.104/dist/commands/create.ts)_
79
99
 
80
100
  ## `faststore dev [PATH]`
81
101
 
@@ -87,7 +107,7 @@ ARGUMENTS
87
107
  PATH The path where the FastStore being run is. Defaults to cwd.
88
108
  ```
89
109
 
90
- _See code: [dist/commands/dev.ts](https://github.com/vtex/faststore/blob/v3.0.102/dist/commands/dev.ts)_
110
+ _See code: [dist/commands/dev.ts](https://github.com/vtex/faststore/blob/v3.0.104/dist/commands/dev.ts)_
91
111
 
92
112
  ## `faststore generate-graphql [PATH]`
93
113
 
@@ -102,7 +122,7 @@ FLAGS
102
122
  -d, --debug
103
123
  ```
104
124
 
105
- _See code: [dist/commands/generate-graphql.ts](https://github.com/vtex/faststore/blob/v3.0.102/dist/commands/generate-graphql.ts)_
125
+ _See code: [dist/commands/generate-graphql.ts](https://github.com/vtex/faststore/blob/v3.0.104/dist/commands/generate-graphql.ts)_
106
126
 
107
127
  ## `faststore help [COMMAND]`
108
128
 
@@ -124,26 +144,6 @@ DESCRIPTION
124
144
 
125
145
  _See code: [@oclif/plugin-help](https://github.com/oclif/plugin-help/blob/v5.1.22/src/commands/help.ts)_
126
146
 
127
- ## `faststore init [PATH]`
128
-
129
- Creates a discovery folder based on the starter.store template.
130
-
131
- ```
132
- USAGE
133
- $ faststore init [PATH]
134
-
135
- ARGUMENTS
136
- PATH The path where the Discovery folder will be created. Defaults to ./discovery.
137
-
138
- DESCRIPTION
139
- Creates a discovery folder based on the starter.store template.
140
-
141
- EXAMPLES
142
- $ yarn faststore init discovery
143
- ```
144
-
145
- _See code: [dist/commands/init.ts](https://github.com/vtex/faststore/blob/v3.0.102/dist/commands/init.ts)_
146
-
147
147
  ## `faststore start [PATH]`
148
148
 
149
149
  ```
@@ -154,7 +154,7 @@ ARGUMENTS
154
154
  PATH The path where the FastStore being run is. Defaults to cwd.
155
155
  ```
156
156
 
157
- _See code: [dist/commands/start.ts](https://github.com/vtex/faststore/blob/v3.0.102/dist/commands/start.ts)_
157
+ _See code: [dist/commands/start.ts](https://github.com/vtex/faststore/blob/v3.0.104/dist/commands/start.ts)_
158
158
 
159
159
  ## `faststore test [PATH]`
160
160
 
@@ -166,5 +166,5 @@ ARGUMENTS
166
166
  PATH The path where the FastStore being tested is. Defaults to cwd.
167
167
  ```
168
168
 
169
- _See code: [dist/commands/test.ts](https://github.com/vtex/faststore/blob/v3.0.102/dist/commands/test.ts)_
169
+ _See code: [dist/commands/test.ts](https://github.com/vtex/faststore/blob/v3.0.104/dist/commands/test.ts)_
170
170
  <!-- commandsstop -->
@@ -1,5 +1,5 @@
1
1
  import { Command } from '@oclif/core';
2
- export default class Init extends Command {
2
+ export default class Create extends Command {
3
3
  static args: {
4
4
  name: string;
5
5
  description: string;
@@ -5,7 +5,7 @@ const node_fs_1 = tslib_1.__importDefault(require("node:fs"));
5
5
  const degit_1 = tslib_1.__importDefault(require("degit"));
6
6
  const core_1 = require("@oclif/core");
7
7
  const prompts_1 = require("@inquirer/prompts");
8
- class Init extends core_1.Command {
8
+ class Create extends core_1.Command {
9
9
  static args = [
10
10
  {
11
11
  name: 'path',
@@ -13,9 +13,9 @@ class Init extends core_1.Command {
13
13
  },
14
14
  ];
15
15
  static description = 'Creates a discovery folder based on the starter.store template.';
16
- static examples = ['$ yarn faststore init discovery'];
16
+ static examples = ['$ yarn faststore create discovery'];
17
17
  async run() {
18
- const { args } = await this.parse(Init);
18
+ const { args } = await this.parse(Create);
19
19
  const discoveryPath = args.path ?? './discovery';
20
20
  const discoveryFolderExists = node_fs_1.default.existsSync(discoveryPath);
21
21
  if (discoveryFolderExists) {
@@ -34,5 +34,5 @@ class Init extends core_1.Command {
34
34
  });
35
35
  }
36
36
  }
37
- exports.default = Init;
38
- //# sourceMappingURL=init.js.map
37
+ exports.default = Create;
38
+ //# sourceMappingURL=create.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create.js","sourceRoot":"","sources":["../../src/commands/create.ts"],"names":[],"mappings":";;;AAAA,8DAAwB;AACxB,0DAAyB;AACzB,sCAAqC;AACrC,+CAA2C;AAE3C,MAAqB,MAAO,SAAQ,cAAO;IACzC,MAAM,CAAC,IAAI,GAAG;QACZ;YACE,IAAI,EAAE,MAAM;YACZ,WAAW,EACT,+EAA+E;SAClF;KACF,CAAA;IAED,MAAM,CAAC,WAAW,GAChB,iEAAiE,CAAA;IAEnE,MAAM,CAAC,QAAQ,GAAG,CAAC,mCAAmC,CAAC,CAAA;IAEvD,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;QAEzC,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,IAAI,aAAa,CAAA;QAChD,MAAM,qBAAqB,GAAG,iBAAE,CAAC,UAAU,CAAC,aAAa,CAAC,CAAA;QAE1D,IAAI,qBAAqB,EAAE;YACzB,MAAM,eAAe,GAAG,MAAM,IAAA,iBAAO,EAAC;gBACpC,OAAO,EAAE,4DAA4D,aAAa,8CAA8C;aACjI,CAAC,CAAA;YAEF,IAAI,CAAC,eAAe;gBAClB,OAAO,IAAI,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAA;SAC3D;QAED,MAAM,gBAAgB,GAAG,IAAA,eAAK,EAAC,0BAA0B,EAAE;YACzD,KAAK,EAAE,IAAI;SACZ,CAAC,CAAA;QAEF,IAAI,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAA;QAE7C,gBAAgB,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;YAC9C,IAAI,CAAC,GAAG,CACN,sDAAsD,aAAa,EAAE,CACtE,CAAA;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;;AAxCH,yBAyCC"}
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
1
  export { run } from '@oclif/core';
2
- import { default as Init } from './commands/init';
2
+ import { default as Create } from './commands/create';
3
3
  import { default as Dev } from './commands/dev';
4
4
  import { default as Build } from './commands/build';
5
5
  import { default as Serve } from './commands/start';
6
6
  import { default as CmsSync } from './commands/cms-sync';
7
7
  import { default as Test } from './commands/test';
8
8
  export declare const commands: {
9
- init: typeof Init;
9
+ create: typeof Create;
10
10
  dev: typeof Dev;
11
11
  build: typeof Build;
12
12
  serve: typeof Serve;
package/dist/index.js CHANGED
@@ -4,14 +4,14 @@ exports.commands = exports.run = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  var core_1 = require("@oclif/core");
6
6
  Object.defineProperty(exports, "run", { enumerable: true, get: function () { return core_1.run; } });
7
- const init_1 = tslib_1.__importDefault(require("./commands/init"));
7
+ const create_1 = tslib_1.__importDefault(require("./commands/create"));
8
8
  const dev_1 = tslib_1.__importDefault(require("./commands/dev"));
9
9
  const build_1 = tslib_1.__importDefault(require("./commands/build"));
10
10
  const start_1 = tslib_1.__importDefault(require("./commands/start"));
11
11
  const cms_sync_1 = tslib_1.__importDefault(require("./commands/cms-sync"));
12
12
  const test_1 = tslib_1.__importDefault(require("./commands/test"));
13
13
  exports.commands = {
14
- init: init_1.default,
14
+ create: create_1.default,
15
15
  dev: dev_1.default,
16
16
  build: build_1.default,
17
17
  serve: start_1.default,
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,oCAAiC;AAAxB,2FAAA,GAAG,OAAA;AAEZ,mEAAiD;AACjD,iEAA+C;AAC/C,qEAAmD;AACnD,qEAAmD;AACnD,2EAAwD;AACxD,mEAAiD;AAEpC,QAAA,QAAQ,GAAG;IACtB,IAAI,EAAE,cAAI;IACV,GAAG,EAAE,aAAG;IACR,KAAK,EAAE,eAAK;IACZ,KAAK,EAAE,eAAK;IACZ,UAAU,EAAE,kBAAO;IACnB,IAAI,EAAE,cAAI;CACX,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,oCAAiC;AAAxB,2FAAA,GAAG,OAAA;AAEZ,uEAAqD;AACrD,iEAA+C;AAC/C,qEAAmD;AACnD,qEAAmD;AACnD,2EAAwD;AACxD,mEAAiD;AAEpC,QAAA,QAAQ,GAAG;IACtB,MAAM,EAAE,gBAAM;IACd,GAAG,EAAE,aAAG;IACR,KAAK,EAAE,eAAK;IACZ,KAAK,EAAE,eAAK;IACZ,UAAU,EAAE,kBAAO;IACnB,IAAI,EAAE,cAAI;CACX,CAAA"}
@@ -1 +1 @@
1
- {"version":"3.0.102","commands":{"build":{"id":"build","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"path","description":"The path where the FastStore being built is. Defaults to cwd."}]},"cms-sync":{"id":"cms-sync","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{"dry-run":{"name":"dry-run","type":"boolean","char":"d","allowNo":false}},"args":[{"name":"path","description":"The path where the FastStore being synched with the CMS is. Defaults to cwd."}]},"dev":{"id":"dev","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"path","description":"The path where the FastStore being run is. Defaults to cwd."}]},"generate-graphql":{"id":"generate-graphql","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{"debug":{"name":"debug","type":"boolean","char":"d","allowNo":false},"core":{"name":"core","type":"boolean","char":"c","hidden":true,"allowNo":false}},"args":[{"name":"path","description":"The path where the FastStore GraphQL customization is. Defaults to cwd."}]},"init":{"id":"init","description":"Creates a discovery folder based on the starter.store template.","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"examples":["$ yarn faststore init discovery"],"flags":{},"args":[{"name":"path","description":"The path where the Discovery folder will be created. Defaults to ./discovery."}]},"start":{"id":"start","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"path","description":"The path where the FastStore being run is. Defaults to cwd."}]},"test":{"id":"test","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"path","description":"The path where the FastStore being tested is. Defaults to cwd."}]}}}
1
+ {"version":"3.0.104","commands":{"build":{"id":"build","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"path","description":"The path where the FastStore being built is. Defaults to cwd."}]},"cms-sync":{"id":"cms-sync","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{"dry-run":{"name":"dry-run","type":"boolean","char":"d","allowNo":false}},"args":[{"name":"path","description":"The path where the FastStore being synched with the CMS is. Defaults to cwd."}]},"create":{"id":"create","description":"Creates a discovery folder based on the starter.store template.","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"examples":["$ yarn faststore create discovery"],"flags":{},"args":[{"name":"path","description":"The path where the Discovery folder will be created. Defaults to ./discovery."}]},"dev":{"id":"dev","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"path","description":"The path where the FastStore being run is. Defaults to cwd."}]},"generate-graphql":{"id":"generate-graphql","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{"debug":{"name":"debug","type":"boolean","char":"d","allowNo":false},"core":{"name":"core","type":"boolean","char":"c","hidden":true,"allowNo":false}},"args":[{"name":"path","description":"The path where the FastStore GraphQL customization is. Defaults to cwd."}]},"start":{"id":"start","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"path","description":"The path where the FastStore being run is. Defaults to cwd."}]},"test":{"id":"test","strict":true,"pluginName":"@faststore/cli","pluginAlias":"@faststore/cli","pluginType":"core","aliases":[],"flags":{},"args":[{"name":"path","description":"The path where the FastStore being tested is. Defaults to cwd."}]}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faststore/cli",
3
- "version": "3.0.102",
3
+ "version": "3.0.104",
4
4
  "description": "FastStore CLI",
5
5
  "author": "Emerson Laurentino @emersonlaurentino",
6
6
  "bin": {
@@ -18,7 +18,7 @@
18
18
  ],
19
19
  "dependencies": {
20
20
  "@antfu/ni": "^0.21.12",
21
- "@faststore/core": "^3.0.102",
21
+ "@faststore/core": "^3.0.103",
22
22
  "@inquirer/prompts": "^5.1.2",
23
23
  "@oclif/core": "^1.16.4",
24
24
  "@oclif/plugin-help": "^5",
@@ -74,5 +74,5 @@
74
74
  "oclif"
75
75
  ],
76
76
  "types": "dist/index.d.ts",
77
- "gitHead": "ea149271ded00f5820d598babb39d79585c43e4f"
77
+ "gitHead": "db56d15ff06a4cfac4fba6c0d935bb8f5081ef40"
78
78
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"init.js","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":";;;AAAA,8DAAwB;AACxB,0DAAyB;AACzB,sCAAqC;AACrC,+CAA2C;AAE3C,MAAqB,IAAK,SAAQ,cAAO;IACvC,MAAM,CAAC,IAAI,GAAG;QACZ;YACE,IAAI,EAAE,MAAM;YACZ,WAAW,EACT,+EAA+E;SAClF;KACF,CAAA;IAED,MAAM,CAAC,WAAW,GAChB,iEAAiE,CAAA;IAEnE,MAAM,CAAC,QAAQ,GAAG,CAAC,iCAAiC,CAAC,CAAA;IAErD,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;QAEvC,MAAM,aAAa,GAAG,IAAI,CAAC,IAAI,IAAI,aAAa,CAAA;QAChD,MAAM,qBAAqB,GAAG,iBAAE,CAAC,UAAU,CAAC,aAAa,CAAC,CAAA;QAE1D,IAAI,qBAAqB,EAAE;YACzB,MAAM,eAAe,GAAG,MAAM,IAAA,iBAAO,EAAC;gBACpC,OAAO,EAAE,4DAA4D,aAAa,8CAA8C;aACjI,CAAC,CAAA;YAEF,IAAI,CAAC,eAAe;gBAClB,OAAO,IAAI,CAAC,GAAG,CAAC,uCAAuC,CAAC,CAAA;SAC3D;QAED,MAAM,gBAAgB,GAAG,IAAA,eAAK,EAAC,0BAA0B,EAAE;YACzD,KAAK,EAAE,IAAI;SACZ,CAAC,CAAA;QAEF,IAAI,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAA;QAE7C,gBAAgB,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE;YAC9C,IAAI,CAAC,GAAG,CACN,sDAAsD,aAAa,EAAE,CACtE,CAAA;QACH,CAAC,CAAC,CAAA;IACJ,CAAC;;AAxCH,uBAyCC"}