@shopify/shop-minis-cli 0.0.163 → 0.0.165
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/build/commands/submit/config.js +1 -1
- package/build/index.js +3 -47
- package/build/index.js.map +1 -1
- package/build/program.d.ts +2 -0
- package/build/program.js +47 -0
- package/build/program.js.map +1 -0
- package/build/schemas/manifest.schema.json +1 -1
- package/package.json +2 -2
|
@@ -6,7 +6,7 @@ export const SUBMISSION_PATHS = {
|
|
|
6
6
|
};
|
|
7
7
|
export const SUBMISSION_VALIDATION = {
|
|
8
8
|
SUBMISSION_DESCRIPTION_MAX_LENGTH: 2056,
|
|
9
|
-
SUBMISSION_FILE_SIZE_MAX_BYTES:
|
|
9
|
+
SUBMISSION_FILE_SIZE_MAX_BYTES: 1500000,
|
|
10
10
|
};
|
|
11
11
|
export const generateSubmissionArchiveFilename = () => {
|
|
12
12
|
const miniHandle = getMiniManifest().handle;
|
package/build/index.js
CHANGED
|
@@ -1,51 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env -S node --experimental-json-modules --require=suppress-experimental-warnings --no-deprecation
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { loadCommand as loadCodemodCommand } from './commands/codemod/index.js';
|
|
6
|
-
import { CLI_VERSION } from './commands/config.js';
|
|
7
|
-
import { loadCommand as loadCreateExtensionCommand } from './commands/create-extension/index.js';
|
|
8
|
-
import { loadCommand as loadCreateMiniCommand } from './commands/create-mini/index.js';
|
|
9
|
-
import { loadCommand as loadDevCommand } from './commands/dev/index.js';
|
|
10
|
-
import { command as doctorCommand } from './commands/doctor/index.js';
|
|
11
|
-
import { command as featuresCommand } from './commands/features/index.js';
|
|
12
|
-
import { loadCommand as loadGenerateGraphqlTypesCommand } from './commands/generate-graphql-types/index.js';
|
|
13
|
-
import { loadCommand as loadInfoCommand } from './commands/info/index.js';
|
|
14
|
-
import { loadCommand as loadSetupCommand } from './commands/setup/index.js';
|
|
15
|
-
import { loadCommand as loadSubmitCommand } from './commands/submit/index.js';
|
|
16
|
-
import { loadCommand as loadUpgradeCommand } from './commands/upgrade/index.js';
|
|
17
|
-
import { loadCommand as loadValidateManifestCommand } from './commands/validate-manifest/index.js';
|
|
18
|
-
import { loadCommand as loadSyncUserMetafiledDefinitionsCommand } from './commands/sync-user-metafield-definitions/index.js';
|
|
19
|
-
import { loadCommand as loadAppCommand } from './commands/app/index.js';
|
|
20
|
-
import { loadCommand as loadSecretsCommand } from './commands/secrets/index.js';
|
|
21
|
-
import { loadCommand as loadProxiesCommand } from './commands/proxies/index.js';
|
|
22
|
-
const program = new Command();
|
|
23
|
-
async function loadCommands() {
|
|
24
|
-
loadCreateMiniCommand(program);
|
|
25
|
-
await loadDevCommand(program);
|
|
26
|
-
loadGenerateGraphqlTypesCommand(program);
|
|
27
|
-
loadSubmitCommand(program);
|
|
28
|
-
loadCancelSubmissionCommand(program);
|
|
29
|
-
loadCheckSubmissionCommand(program);
|
|
30
|
-
loadUpgradeCommand(program);
|
|
31
|
-
loadValidateManifestCommand(program);
|
|
32
|
-
loadCodemodCommand(program);
|
|
33
|
-
loadInfoCommand(program);
|
|
34
|
-
loadSetupCommand(program);
|
|
35
|
-
loadCreateExtensionCommand(program);
|
|
36
|
-
loadAppCommand(program);
|
|
37
|
-
loadSyncUserMetafiledDefinitionsCommand(program);
|
|
38
|
-
loadSecretsCommand(program);
|
|
39
|
-
loadProxiesCommand(program);
|
|
40
|
-
program.addCommand(doctorCommand);
|
|
41
|
-
program.addCommand(featuresCommand);
|
|
42
|
-
}
|
|
43
|
-
program
|
|
44
|
-
.name('shop-minis')
|
|
45
|
-
.description('CLI for Shop Minis development')
|
|
46
|
-
.version(CLI_VERSION);
|
|
47
|
-
loadCommands()
|
|
48
|
-
.then(() => {
|
|
2
|
+
import { loadProgram } from './program.js';
|
|
3
|
+
loadProgram()
|
|
4
|
+
.then(program => {
|
|
49
5
|
if (process.argv.length < 3) {
|
|
50
6
|
// Avoid exiting with code 1 even if program.parse() defaults to showing help content.
|
|
51
7
|
program.help();
|
package/build/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAEA,OAAO,EAAC,WAAW,EAAC,MAAM,cAAc,CAAA;AAExC,WAAW,EAAE;KACV,IAAI,CAAC,OAAO,CAAC,EAAE;IACd,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,EAAE;QAC3B,sFAAsF;QACtF,OAAO,CAAC,IAAI,EAAE,CAAA;KACf;IACD,OAAO,CAAC,KAAK,EAAE,CAAA;AACjB,CAAC,CAAC;KACD,KAAK,CAAC,GAAG,CAAC,EAAE;IACX,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAA;IAChB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AACjB,CAAC,CAAC,CAAA"}
|
package/build/program.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { Command } from 'commander';
|
|
2
|
+
import { loadCommand as loadCancelSubmissionCommand } from './commands/cancel-submission/index.js';
|
|
3
|
+
import { loadCommand as loadCheckSubmissionCommand } from './commands/check-submission/index.js';
|
|
4
|
+
import { loadCommand as loadCodemodCommand } from './commands/codemod/index.js';
|
|
5
|
+
import { CLI_VERSION } from './commands/config.js';
|
|
6
|
+
import { loadCommand as loadCreateExtensionCommand } from './commands/create-extension/index.js';
|
|
7
|
+
import { loadCommand as loadCreateMiniCommand } from './commands/create-mini/index.js';
|
|
8
|
+
import { loadCommand as loadDevCommand } from './commands/dev/index.js';
|
|
9
|
+
import { command as doctorCommand } from './commands/doctor/index.js';
|
|
10
|
+
import { command as featuresCommand } from './commands/features/index.js';
|
|
11
|
+
import { loadCommand as loadGenerateGraphqlTypesCommand } from './commands/generate-graphql-types/index.js';
|
|
12
|
+
import { loadCommand as loadInfoCommand } from './commands/info/index.js';
|
|
13
|
+
import { loadCommand as loadSetupCommand } from './commands/setup/index.js';
|
|
14
|
+
import { loadCommand as loadSubmitCommand } from './commands/submit/index.js';
|
|
15
|
+
import { loadCommand as loadUpgradeCommand } from './commands/upgrade/index.js';
|
|
16
|
+
import { loadCommand as loadValidateManifestCommand } from './commands/validate-manifest/index.js';
|
|
17
|
+
import { loadCommand as loadSyncUserMetafiledDefinitionsCommand } from './commands/sync-user-metafield-definitions/index.js';
|
|
18
|
+
import { loadCommand as loadAppCommand } from './commands/app/index.js';
|
|
19
|
+
import { loadCommand as loadSecretsCommand } from './commands/secrets/index.js';
|
|
20
|
+
import { loadCommand as loadProxiesCommand } from './commands/proxies/index.js';
|
|
21
|
+
export async function loadProgram() {
|
|
22
|
+
const program = new Command();
|
|
23
|
+
program
|
|
24
|
+
.name('shop-minis')
|
|
25
|
+
.description('CLI for Shop Minis development')
|
|
26
|
+
.version(CLI_VERSION);
|
|
27
|
+
loadCreateMiniCommand(program);
|
|
28
|
+
await loadDevCommand(program);
|
|
29
|
+
loadGenerateGraphqlTypesCommand(program);
|
|
30
|
+
loadSubmitCommand(program);
|
|
31
|
+
loadCancelSubmissionCommand(program);
|
|
32
|
+
loadCheckSubmissionCommand(program);
|
|
33
|
+
loadUpgradeCommand(program);
|
|
34
|
+
loadValidateManifestCommand(program);
|
|
35
|
+
loadCodemodCommand(program);
|
|
36
|
+
loadInfoCommand(program);
|
|
37
|
+
loadSetupCommand(program);
|
|
38
|
+
loadCreateExtensionCommand(program);
|
|
39
|
+
loadAppCommand(program);
|
|
40
|
+
loadSyncUserMetafiledDefinitionsCommand(program);
|
|
41
|
+
loadSecretsCommand(program);
|
|
42
|
+
loadProxiesCommand(program);
|
|
43
|
+
program.addCommand(doctorCommand);
|
|
44
|
+
program.addCommand(featuresCommand);
|
|
45
|
+
return program;
|
|
46
|
+
}
|
|
47
|
+
//# sourceMappingURL=program.js.map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7
|
+
"version": "0.0.165",
|
|
8
8
|
"description": "Shop Minis CLI",
|
|
9
9
|
"main": "build/index.js",
|
|
10
10
|
"bin": {
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"@google-cloud/storage": "^7.10.0",
|
|
64
|
-
"@ngrok/ngrok": "
|
|
64
|
+
"@ngrok/ngrok": "1.4.1",
|
|
65
65
|
"@shopify/cli-kit": "3.70.0",
|
|
66
66
|
"@types/diff": "^7.0.1",
|
|
67
67
|
"@types/jscodeshift": "^0.11.11",
|