@faststore/cli 3.0.87 → 3.0.88
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 +23 -7
- package/dist/commands/build.js +5 -3
- package/dist/commands/build.js.map +1 -1
- package/dist/commands/dev.js +5 -3
- package/dist/commands/dev.js.map +1 -1
- package/dist/commands/generate-graphql.d.ts +12 -0
- package/dist/commands/generate-graphql.js +65 -0
- package/dist/commands/generate-graphql.js.map +1 -0
- package/dist/commands/start.js +3 -1
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/test.js +3 -1
- package/dist/commands/test.js.map +1 -1
- package/dist/utils/commands.d.ts +1 -0
- package/dist/utils/commands.js +11 -0
- package/dist/utils/commands.js.map +1 -0
- package/oclif.manifest.json +1 -1
- package/package.json +8 -7
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.
|
|
33
|
+
@faststore/cli/3.0.88 linux-x64 node-v18.20.4
|
|
34
34
|
$ faststore --help [COMMAND]
|
|
35
35
|
USAGE
|
|
36
36
|
$ faststore COMMAND
|
|
@@ -44,6 +44,7 @@ USAGE
|
|
|
44
44
|
* [`faststore build [PATH]`](#faststore-build-path)
|
|
45
45
|
* [`faststore cms-sync [PATH]`](#faststore-cms-sync-path)
|
|
46
46
|
* [`faststore dev [PATH]`](#faststore-dev-path)
|
|
47
|
+
* [`faststore generate-graphql [PATH]`](#faststore-generate-graphql-path)
|
|
47
48
|
* [`faststore help [COMMAND]`](#faststore-help-command)
|
|
48
49
|
* [`faststore init [PATH]`](#faststore-init-path)
|
|
49
50
|
* [`faststore start [PATH]`](#faststore-start-path)
|
|
@@ -59,7 +60,7 @@ ARGUMENTS
|
|
|
59
60
|
PATH The path where the FastStore being built is. Defaults to cwd.
|
|
60
61
|
```
|
|
61
62
|
|
|
62
|
-
_See code: [dist/commands/build.ts](https://github.com/vtex/faststore/blob/v3.0.
|
|
63
|
+
_See code: [dist/commands/build.ts](https://github.com/vtex/faststore/blob/v3.0.88/dist/commands/build.ts)_
|
|
63
64
|
|
|
64
65
|
## `faststore cms-sync [PATH]`
|
|
65
66
|
|
|
@@ -74,7 +75,7 @@ FLAGS
|
|
|
74
75
|
-d, --dry-run
|
|
75
76
|
```
|
|
76
77
|
|
|
77
|
-
_See code: [dist/commands/cms-sync.ts](https://github.com/vtex/faststore/blob/v3.0.
|
|
78
|
+
_See code: [dist/commands/cms-sync.ts](https://github.com/vtex/faststore/blob/v3.0.88/dist/commands/cms-sync.ts)_
|
|
78
79
|
|
|
79
80
|
## `faststore dev [PATH]`
|
|
80
81
|
|
|
@@ -86,7 +87,22 @@ ARGUMENTS
|
|
|
86
87
|
PATH The path where the FastStore being run is. Defaults to cwd.
|
|
87
88
|
```
|
|
88
89
|
|
|
89
|
-
_See code: [dist/commands/dev.ts](https://github.com/vtex/faststore/blob/v3.0.
|
|
90
|
+
_See code: [dist/commands/dev.ts](https://github.com/vtex/faststore/blob/v3.0.88/dist/commands/dev.ts)_
|
|
91
|
+
|
|
92
|
+
## `faststore generate-graphql [PATH]`
|
|
93
|
+
|
|
94
|
+
```
|
|
95
|
+
USAGE
|
|
96
|
+
$ faststore generate-graphql [PATH] [-d]
|
|
97
|
+
|
|
98
|
+
ARGUMENTS
|
|
99
|
+
PATH The path where the FastStore GraphQL customization is. Defaults to cwd.
|
|
100
|
+
|
|
101
|
+
FLAGS
|
|
102
|
+
-d, --debug
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
_See code: [dist/commands/generate-graphql.ts](https://github.com/vtex/faststore/blob/v3.0.88/dist/commands/generate-graphql.ts)_
|
|
90
106
|
|
|
91
107
|
## `faststore help [COMMAND]`
|
|
92
108
|
|
|
@@ -126,7 +142,7 @@ EXAMPLES
|
|
|
126
142
|
$ yarn faststore init discovery
|
|
127
143
|
```
|
|
128
144
|
|
|
129
|
-
_See code: [dist/commands/init.ts](https://github.com/vtex/faststore/blob/v3.0.
|
|
145
|
+
_See code: [dist/commands/init.ts](https://github.com/vtex/faststore/blob/v3.0.88/dist/commands/init.ts)_
|
|
130
146
|
|
|
131
147
|
## `faststore start [PATH]`
|
|
132
148
|
|
|
@@ -138,7 +154,7 @@ ARGUMENTS
|
|
|
138
154
|
PATH The path where the FastStore being run is. Defaults to cwd.
|
|
139
155
|
```
|
|
140
156
|
|
|
141
|
-
_See code: [dist/commands/start.ts](https://github.com/vtex/faststore/blob/v3.0.
|
|
157
|
+
_See code: [dist/commands/start.ts](https://github.com/vtex/faststore/blob/v3.0.88/dist/commands/start.ts)_
|
|
142
158
|
|
|
143
159
|
## `faststore test [PATH]`
|
|
144
160
|
|
|
@@ -150,5 +166,5 @@ ARGUMENTS
|
|
|
150
166
|
PATH The path where the FastStore being tested is. Defaults to cwd.
|
|
151
167
|
```
|
|
152
168
|
|
|
153
|
-
_See code: [dist/commands/test.ts](https://github.com/vtex/faststore/blob/v3.0.
|
|
169
|
+
_See code: [dist/commands/test.ts](https://github.com/vtex/faststore/blob/v3.0.88/dist/commands/test.ts)_
|
|
154
170
|
<!-- commandsstop -->
|
package/dist/commands/build.js
CHANGED
|
@@ -8,6 +8,7 @@ const fs_1 = require("fs");
|
|
|
8
8
|
const fs_extra_1 = require("fs-extra");
|
|
9
9
|
const directory_1 = require("../utils/directory");
|
|
10
10
|
const generate_1 = require("../utils/generate");
|
|
11
|
+
const commands_1 = require("../utils/commands");
|
|
11
12
|
class Build extends core_1.Command {
|
|
12
13
|
static args = [
|
|
13
14
|
{
|
|
@@ -20,13 +21,14 @@ class Build extends core_1.Command {
|
|
|
20
21
|
const basePath = args.path ?? process.cwd();
|
|
21
22
|
const { tmpDir } = (0, directory_1.withBasePath)(basePath);
|
|
22
23
|
await (0, generate_1.generate)({ setup: true, basePath });
|
|
23
|
-
const
|
|
24
|
+
const packageManager = (0, commands_1.getPreferredPackageManager)();
|
|
25
|
+
const buildResult = (0, child_process_1.spawnSync)(`${packageManager} run build`, {
|
|
24
26
|
shell: true,
|
|
25
27
|
cwd: tmpDir,
|
|
26
28
|
stdio: 'inherit',
|
|
27
29
|
});
|
|
28
|
-
if (
|
|
29
|
-
process.exit(
|
|
30
|
+
if (buildResult.status && buildResult.status !== 0) {
|
|
31
|
+
process.exit(buildResult.status);
|
|
30
32
|
}
|
|
31
33
|
await normalizeStandaloneBuildDir(basePath);
|
|
32
34
|
await copyResources(basePath);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../src/commands/build.ts"],"names":[],"mappings":";;;AAAA,sCAAqC;AACrC,0DAAyB;AACzB,iDAAyC;AACzC,2BAA+B;AAC/B,uCAAsE;AACtE,kDAAiD;AACjD,gDAA4C;
|
|
1
|
+
{"version":3,"file":"build.js","sourceRoot":"","sources":["../../src/commands/build.ts"],"names":[],"mappings":";;;AAAA,sCAAqC;AACrC,0DAAyB;AACzB,iDAAyC;AACzC,2BAA+B;AAC/B,uCAAsE;AACtE,kDAAiD;AACjD,gDAA4C;AAC5C,gDAA8D;AAE9D,MAAqB,KAAM,SAAQ,cAAO;IAExC,MAAM,CAAC,IAAI,GAAG;QACZ;YACE,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,+DAA+D;SAC7E;KACF,CAAA;IAED,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;QAExC,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,IAAI,OAAO,CAAC,GAAG,EAAE,CAAA;QAE3C,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,wBAAY,EAAC,QAAQ,CAAC,CAAA;QAEzC,MAAM,IAAA,mBAAQ,EAAC,EAAE,KAAK,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC,CAAA;QAEzC,MAAM,cAAc,GAAG,IAAA,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A;QAED,MAAM,OAAO,CAAC,GAAG,CACf,oBAAoB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAChC,IAAA,mBAAQ,EACN,GAAG,MAAM,gCAAgC,IAAI,EAAE,EAC/C,GAAG,MAAM,qBAAqB,IAAI,EAAE,EACpC,EAAE,SAAS,EAAE,IAAI,EAAE,CACpB,CACF,CACF,CAAA;QACD,IAAA,qBAAU,EAAC,GAAG,MAAM,8BAA8B,CAAC,CAAA;KACpD;AACH,CAAC;AAED,KAAK,UAAU,aAAa,CAAC,QAAgB;IAC3C,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,wBAAY,EAAC,QAAQ,CAAC,CAAA;IAElD,MAAM,YAAY,CAAC,GAAG,MAAM,QAAQ,EAAE,GAAG,OAAO,QAAQ,CAAC,CAAA;IACzD,MAAM,YAAY,CAAC,GAAG,MAAM,kBAAkB,EAAE,GAAG,OAAO,kBAAkB,CAAC,CAAA;IAC7E,MAAM,YAAY,CAAC,GAAG,MAAM,SAAS,EAAE,GAAG,OAAO,SAAS,CAAC,CAAA;AAC7D,CAAC"}
|
package/dist/commands/dev.js
CHANGED
|
@@ -3,14 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
4
|
const core_1 = require("@oclif/core");
|
|
5
5
|
const child_process_1 = require("child_process");
|
|
6
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
6
7
|
const chokidar_1 = tslib_1.__importDefault(require("chokidar"));
|
|
7
8
|
const dotenv_1 = tslib_1.__importDefault(require("dotenv"));
|
|
8
9
|
const fs_1 = require("fs");
|
|
9
10
|
const path_1 = tslib_1.__importDefault(require("path"));
|
|
10
11
|
const directory_1 = require("../utils/directory");
|
|
11
12
|
const generate_1 = require("../utils/generate");
|
|
13
|
+
const commands_1 = require("../utils/commands");
|
|
12
14
|
const runCommandSync_1 = require("../utils/runCommandSync");
|
|
13
|
-
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
14
15
|
/**
|
|
15
16
|
* Taken from toolbelt
|
|
16
17
|
*
|
|
@@ -32,8 +33,9 @@ const defaultIgnored = [
|
|
|
32
33
|
const devAbortController = new AbortController();
|
|
33
34
|
async function storeDev(rootDir, tmpDir, coreDir) {
|
|
34
35
|
const envVars = dotenv_1.default.parse((0, fs_1.readFileSync)(path_1.default.join(rootDir, 'vtex.env')));
|
|
36
|
+
const packageManager = (0, commands_1.getPreferredPackageManager)();
|
|
35
37
|
(0, runCommandSync_1.runCommandSync)({
|
|
36
|
-
cmd:
|
|
38
|
+
cmd: `${packageManager} predev`,
|
|
37
39
|
errorMessage: 'GraphQL was not optimized and TS files were not updated. Changes in the GraphQL layer did not take effect',
|
|
38
40
|
throws: 'error',
|
|
39
41
|
debug: true,
|
|
@@ -44,7 +46,7 @@ async function storeDev(rootDir, tmpDir, coreDir) {
|
|
|
44
46
|
console.log(`${chalk_1.default.yellow('warn')} - Failed to copy @generated schema back to node_modules, autocomplete and DX might be impacted.`);
|
|
45
47
|
console.log(`Attempted to copy from ${path_1.default.join(tmpDir, '@generated')} to ${path_1.default.join(coreDir, '@generated')}`);
|
|
46
48
|
}
|
|
47
|
-
const devProcess = (0, child_process_1.spawn)(
|
|
49
|
+
const devProcess = (0, child_process_1.spawn)(`${packageManager} dev-only`, {
|
|
48
50
|
shell: true,
|
|
49
51
|
cwd: tmpDir,
|
|
50
52
|
signal: devAbortController.signal,
|
package/dist/commands/dev.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev.js","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":[],"mappings":";;;AAAA,sCAAsC;AACtC,iDAAsC;AACtC,gEAAgC;AAChC,4DAA4B;AAE5B,2BAA0C;AAC1C,wDAAwB;AACxB,kDAAkD;AAClD,gDAA6C;AAC7C,
|
|
1
|
+
{"version":3,"file":"dev.js","sourceRoot":"","sources":["../../src/commands/dev.ts"],"names":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AG,EAAE;gBAChB,kBAAkB,CAAC,KAAK,EAAE,CAAA;gBAC1B,MAAM,EAAE,CAAA;YACV,CAAC,CAAC;iBACD,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC,CAAA;QACzB,CAAC,CAAC,CAAA;IACJ,CAAC;;AAjDH,sBAkDC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Command } from '@oclif/core';
|
|
2
|
+
export default class GenerateGraphql extends Command {
|
|
3
|
+
static flags: {
|
|
4
|
+
debug: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
5
|
+
core: import("@oclif/core/lib/interfaces").BooleanFlag<boolean>;
|
|
6
|
+
};
|
|
7
|
+
static args: {
|
|
8
|
+
name: string;
|
|
9
|
+
description: string;
|
|
10
|
+
}[];
|
|
11
|
+
run(): Promise<void>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const tslib_1 = require("tslib");
|
|
4
|
+
const chalk_1 = tslib_1.__importDefault(require("chalk"));
|
|
5
|
+
const core_1 = require("@oclif/core");
|
|
6
|
+
const fs_extra_1 = require("fs-extra");
|
|
7
|
+
const directory_1 = require("../utils/directory");
|
|
8
|
+
const runCommandSync_1 = require("../utils/runCommandSync");
|
|
9
|
+
const commands_1 = require("../utils/commands");
|
|
10
|
+
class GenerateGraphql extends core_1.Command {
|
|
11
|
+
static flags = {
|
|
12
|
+
debug: core_1.Flags.boolean({ char: 'd' }),
|
|
13
|
+
core: core_1.Flags.boolean({ char: 'c', hidden: true }),
|
|
14
|
+
};
|
|
15
|
+
static args = [
|
|
16
|
+
{
|
|
17
|
+
name: 'path',
|
|
18
|
+
description: 'The path where the FastStore GraphQL customization is. Defaults to cwd.',
|
|
19
|
+
}
|
|
20
|
+
];
|
|
21
|
+
async run() {
|
|
22
|
+
const { flags, args } = await this.parse(GenerateGraphql);
|
|
23
|
+
const basePath = args.path ?? process.cwd();
|
|
24
|
+
const { tmpDir, coreDir } = (0, directory_1.withBasePath)(basePath);
|
|
25
|
+
const debug = flags.debug ?? false;
|
|
26
|
+
const isCore = flags.core ?? false;
|
|
27
|
+
const packageManager = (0, commands_1.getPreferredPackageManager)();
|
|
28
|
+
if (!isCore && !(0, fs_extra_1.existsSync)(tmpDir)) {
|
|
29
|
+
console.log(`${chalk_1.default.red('error')} - The ".faststore" directory could not be found. When running faststore dev or faststore build, the generate-graphql command is automatically executed.`);
|
|
30
|
+
process.exit(1);
|
|
31
|
+
}
|
|
32
|
+
(0, runCommandSync_1.runCommandSync)({
|
|
33
|
+
cmd: `${packageManager} run generate:schema`,
|
|
34
|
+
errorMessage: `Failed to run '${packageManager} generate:schema'. Please check your setup.`,
|
|
35
|
+
throws: 'error',
|
|
36
|
+
debug,
|
|
37
|
+
cwd: isCore ? undefined : tmpDir,
|
|
38
|
+
});
|
|
39
|
+
(0, runCommandSync_1.runCommandSync)({
|
|
40
|
+
cmd: `${packageManager} run generate:codegen`,
|
|
41
|
+
errorMessage: 'GraphQL was not optimized and TS files were not updated. Changes in the GraphQL layer did not take effect',
|
|
42
|
+
throws: 'error',
|
|
43
|
+
debug,
|
|
44
|
+
cwd: isCore ? undefined : tmpDir,
|
|
45
|
+
});
|
|
46
|
+
(0, runCommandSync_1.runCommandSync)({
|
|
47
|
+
cmd: `${packageManager} run format:generated`,
|
|
48
|
+
errorMessage: `Failed to format generated files. '${packageManager} format:generated' thrown errors`,
|
|
49
|
+
throws: 'warning',
|
|
50
|
+
debug,
|
|
51
|
+
cwd: isCore ? undefined : tmpDir,
|
|
52
|
+
});
|
|
53
|
+
// The command generate:copy-back expects the DESTINATION var to be present so it can copy the files to the correct directory
|
|
54
|
+
(0, runCommandSync_1.runCommandSync)({
|
|
55
|
+
cmd: `DESTINATION=${coreDir} ${packageManager} run generate:copy-back`,
|
|
56
|
+
errorMessage: `Failed to copy back typings files. '${packageManager} generate:copy-back' thrown errors`,
|
|
57
|
+
throws: 'warning',
|
|
58
|
+
debug,
|
|
59
|
+
cwd: isCore ? undefined : tmpDir,
|
|
60
|
+
});
|
|
61
|
+
console.log(`${chalk_1.default.green('success')} - GraphQL schema, types, and optimizations successfully generated 🎉`);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.default = GenerateGraphql;
|
|
65
|
+
//# sourceMappingURL=generate-graphql.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generate-graphql.js","sourceRoot":"","sources":["../../src/commands/generate-graphql.ts"],"names":[],"mappings":";;;AAAA,0DAAyB;AACzB,sCAA4C;AAC5C,uCAAqC;AAErC,kDAAiD;AACjD,4DAAwD;AACxD,gDAA8D;AAE9D,MAAqB,eAAgB,SAAQ,cAAO;IAClD,MAAM,CAAC,KAAK,GAAG;QACb,KAAK,EAAE,YAAK,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;QACnC,IAAI,EAAE,YAAK,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;KACjD,CAAA;IAED,MAAM,CAAC,IAAI,GAAG;QACZ;YACE,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,yEAAyE;SACvF;KACF,CAAA;IAED,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,eAAe,CAAC,CAAA;QAEzD,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,IAAI,OAAO,CAAC,GAAG,EAAE,CAAA;QAC3C,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,IAAA,wBAAY,EAAC,QAAQ,CAAC,CAAA;QAElD,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,IAAI,KAAK,CAAA;QAClC,MAAM,MAAM,GAAG,KAAK,CAAC,IAAI,IAAI,KAAK,CAAA;QAElC,MAA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,KAAK,CACZ,SAAS,CACV,uEAAuE,CACzE,CAAA;IACH,CAAC;;AA3EH,kCA4EC"}
|
package/dist/commands/start.js
CHANGED
|
@@ -4,6 +4,7 @@ const core_1 = require("@oclif/core");
|
|
|
4
4
|
const child_process_1 = require("child_process");
|
|
5
5
|
const fs_extra_1 = require("fs-extra");
|
|
6
6
|
const directory_1 = require("../utils/directory");
|
|
7
|
+
const commands_1 = require("../utils/commands");
|
|
7
8
|
class Start extends core_1.Command {
|
|
8
9
|
static args = [
|
|
9
10
|
{
|
|
@@ -15,10 +16,11 @@ class Start extends core_1.Command {
|
|
|
15
16
|
const { args } = await this.parse(Start);
|
|
16
17
|
const basePath = args.path ?? process.cwd();
|
|
17
18
|
const { tmpDir } = (0, directory_1.withBasePath)(basePath);
|
|
19
|
+
const packageManager = (0, commands_1.getPreferredPackageManager)();
|
|
18
20
|
if (!(0, fs_extra_1.existsSync)(tmpDir)) {
|
|
19
21
|
throw Error('The ".faststore" directory could not be found. If you are trying to serve your store, run "faststore build" first.');
|
|
20
22
|
}
|
|
21
|
-
return (0, child_process_1.spawn)(
|
|
23
|
+
return (0, child_process_1.spawn)(`${packageManager} run serve`, {
|
|
22
24
|
shell: true,
|
|
23
25
|
cwd: tmpDir,
|
|
24
26
|
stdio: 'inherit',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start.js","sourceRoot":"","sources":["../../src/commands/start.ts"],"names":[],"mappings":";;AAAA,sCAAqC;AACrC,iDAAqC;AACrC,uCAAqC;AACrC,kDAAiD;
|
|
1
|
+
{"version":3,"file":"start.js","sourceRoot":"","sources":["../../src/commands/start.ts"],"names":[],"mappings":";;AAAA,sCAAqC;AACrC,iDAAqC;AACrC,uCAAqC;AACrC,kDAAiD;AACjD,gDAA8D;AAE9D,MAAqB,KAAM,SAAQ,cAAO;IACxC,MAAM,CAAC,IAAI,GAAG;QACZ;YACE,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,6DAA6D;SAC3E;KACF,CAAA;IAED,KAAK,CAAC,GAAG;QACP,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;QACxC,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,IAAI,OAAO,CAAC,GAAG,EAAE,CAAA;QAC3C,MAAM,EAAE,MAAM,EAAE,GAAG,IAAA,wBAAY,EAAC,QAAQ,CAAC,CAAA;QACzC,MAAM,cAAc,GAAG,IAAA,qCAA0B,GAAE,CAAA;QAEnD,IAAI,CAAC,IAAA,qBAAU,EAAC,MAAM,CAAC,EAAE;YACvB,MAAM,KAAK,CACT,oHAAoH,CACrH,CAAA;SACF;QAED,OAAO,IAAA,qBAAK,EAAC,GAAG,cAAc,YAAY,EAAE;YAC1C,KAAK,EAAE,IAAI;YACX,GAAG,EAAE,MAAM;YACX,KAAK,EAAE,SAAS;SACjB,CAAC,CAAA;IACJ,CAAC;;AAzBH,wBA0BC"}
|
package/dist/commands/test.js
CHANGED
|
@@ -6,6 +6,7 @@ const child_process_1 = require("child_process");
|
|
|
6
6
|
const chokidar_1 = tslib_1.__importDefault(require("chokidar"));
|
|
7
7
|
const generate_1 = require("../utils/generate");
|
|
8
8
|
const directory_1 = require("../utils/directory");
|
|
9
|
+
const commands_1 = require("../utils/commands");
|
|
9
10
|
/**
|
|
10
11
|
* Taken from toolbelt
|
|
11
12
|
*
|
|
@@ -26,7 +27,8 @@ const defaultIgnored = [
|
|
|
26
27
|
];
|
|
27
28
|
const testAbortController = new AbortController();
|
|
28
29
|
async function storeTest(tmpDir) {
|
|
29
|
-
const
|
|
30
|
+
const packageManager = (0, commands_1.getPreferredPackageManager)();
|
|
31
|
+
const testProcess = (0, child_process_1.spawn)(`${packageManager} run test:e2e`, {
|
|
30
32
|
shell: true,
|
|
31
33
|
cwd: tmpDir,
|
|
32
34
|
signal: testAbortController.signal,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../src/commands/test.ts"],"names":[],"mappings":";;;AAAA,sCAAqC;AACrC,iDAAqC;AACrC,gEAA+B;AAE/B,gDAA4C;AAC5C,kDAAiD;
|
|
1
|
+
{"version":3,"file":"test.js","sourceRoot":"","sources":["../../src/commands/test.ts"],"names":[],"mappings":";;;AAAA,sCAAqC;AACrC,iDAAqC;AACrC,gEAA+B;AAE/B,gDAA4C;AAC5C,kDAAiD;AACjD,gDAA8D;AAE9D;;;;GAIG;AACH,MAAM,kBAAkB,GAAG,OAAO,CAAC,QAAQ,KAAK,QAAQ,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAA;AAEpE,MAAM,eAAe,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;AAEtC,MAAM,cAAc,GAAG;IACrB,WAAW;IACX,WAAW;IACX,YAAY;IACZ,cAAc;IACd,iBAAiB;IACjB,oBAAoB;IACpB,SAAS;IACT,eAAe;IACf,kBAAkB;CACnB,CAAA;AAED,MAAM,mBAAmB,GAAG,IAAI,eAAe,EAAE,CAAA;AAEjD,KAAK,UAAU,SAAS,CAAC,MAAc;IACrC,MAAM,cAAc,GAAG,IAAA,qCAA0B,GAAE,CAAA;IAEnD,MAAM,WAAW,GAAG,IAAA,qBAAK,EAAC,GAAG,cAAc,eAAe,EAAE;QAC1D,KAAK,EAAE,IAAI;QACX,GAAG,EAAE,MAAM;QACX,MAAM,EAAE,mBAAmB,CAAC,MAAM;QAClC,KAAK,EAAE,SAAS;KACjB,CAAC,CAAA;IAEF,WAAW,CAAC,EAAE,CAAC,OAAO,EAAE,GAAG,EAAE;QAC3B,mBAAmB,CAAC,KAAK,EAAE,CAAA;IAC7B,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,MAAqB,IAAK,SAAQ,cAAO;IACvC,MAAM,CAAC,IAAI,GAAG;QACZ;YACE,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,gEAAgE;SAC9E;KACF,CAAA;IAED,KAAK,CAAC,GAAG;Q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|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getPreferredPackageManager = void 0;
|
|
4
|
+
const node_child_process_1 = require("node:child_process");
|
|
5
|
+
// Retrieves the package manager based on the developer lockfile, using `ni`.
|
|
6
|
+
function getPreferredPackageManager() {
|
|
7
|
+
const agent = (0, node_child_process_1.spawnSync)("na", ['\?'], { encoding: 'utf8' }).stdout.trim();
|
|
8
|
+
return agent;
|
|
9
|
+
}
|
|
10
|
+
exports.getPreferredPackageManager = getPreferredPackageManager;
|
|
11
|
+
//# sourceMappingURL=commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../../src/utils/commands.ts"],"names":[],"mappings":";;;AAAA,2DAA8C;AAE9C,6EAA6E;AAC7E,SAAgB,0BAA0B;IACxC,MAAM,KAAK,GAAG,IAAA,8BAAS,EAAC,IAAI,EAAE,CAAC,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,CAAA;IAEzE,OAAO,KAAK,CAAA;AACd,CAAC;AAJD,gEAIC"}
|
package/oclif.manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"3.0.
|
|
1
|
+
{"version":"3.0.88","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."}]}}}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@faststore/cli",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.88",
|
|
4
4
|
"description": "FastStore CLI",
|
|
5
5
|
"author": "Emerson Laurentino @emersonlaurentino",
|
|
6
6
|
"bin": {
|
|
@@ -17,7 +17,8 @@
|
|
|
17
17
|
"/oclif.manifest.json"
|
|
18
18
|
],
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@
|
|
20
|
+
"@antfu/ni": "^0.21.12",
|
|
21
|
+
"@faststore/core": "^3.0.88",
|
|
21
22
|
"@inquirer/prompts": "^5.1.2",
|
|
22
23
|
"@oclif/core": "^1.16.4",
|
|
23
24
|
"@oclif/plugin-help": "^5",
|
|
@@ -30,8 +31,8 @@
|
|
|
30
31
|
"path": "^0.12.7"
|
|
31
32
|
},
|
|
32
33
|
"devDependencies": {
|
|
33
|
-
"@faststore/eslint-config": "^3.0.
|
|
34
|
-
"@faststore/shared": "^3.0.
|
|
34
|
+
"@faststore/eslint-config": "^3.0.88",
|
|
35
|
+
"@faststore/shared": "^3.0.88",
|
|
35
36
|
"@types/chai": "^4",
|
|
36
37
|
"@types/degit": "^2.8.6",
|
|
37
38
|
"@types/fs-extra": "^9.0.13",
|
|
@@ -64,8 +65,8 @@
|
|
|
64
65
|
"lint": "eslint src/**/*.ts",
|
|
65
66
|
"test": "jest src/**/*.test.ts",
|
|
66
67
|
"postpack": "shx rm -f oclif.manifest.json",
|
|
67
|
-
"posttest": "
|
|
68
|
-
"prepack": "
|
|
68
|
+
"posttest": "na run lint",
|
|
69
|
+
"prepack": "na run && oclif manifest && oclif readme",
|
|
69
70
|
"version": "oclif readme && git add README.md"
|
|
70
71
|
},
|
|
71
72
|
"bugs": "https://github.com/vtex/faststore/issues",
|
|
@@ -73,5 +74,5 @@
|
|
|
73
74
|
"oclif"
|
|
74
75
|
],
|
|
75
76
|
"types": "dist/index.d.ts",
|
|
76
|
-
"gitHead": "
|
|
77
|
+
"gitHead": "31a958b995b2477f5c15b0b7dd8ec522e47629d9"
|
|
77
78
|
}
|