@hubspot/cli 5.2.1-beta.7 → 5.2.1-beta.8
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/commands/accounts/clean.js +4 -4
- package/commands/accounts/info.js +2 -2
- package/commands/accounts/list.js +2 -2
- package/commands/accounts/rename.js +2 -2
- package/commands/accounts.js +2 -2
- package/commands/auth.js +2 -2
- package/commands/cms/lighthouseScore.js +3 -3
- package/commands/cms.js +2 -2
- package/commands/config.js +2 -2
- package/commands/customObject/schema/create.js +1 -1
- package/commands/customObject/schema/update.js +1 -1
- package/commands/customObject.js +2 -2
- package/commands/fetch.js +5 -5
- package/commands/filemanager/fetch.js +3 -3
- package/commands/filemanager/upload.js +3 -3
- package/commands/filemanager.js +3 -3
- package/commands/functions/deploy.js +3 -3
- package/commands/functions/list.js +3 -3
- package/commands/functions/server.js +3 -3
- package/commands/functions.js +2 -2
- package/commands/hubdb/clear.js +3 -3
- package/commands/hubdb/create.js +3 -3
- package/commands/hubdb/delete.js +3 -3
- package/commands/hubdb/fetch.js +3 -3
- package/commands/hubdb.js +2 -2
- package/commands/init.js +2 -2
- package/commands/lint.js +2 -2
- package/commands/list.js +3 -3
- package/commands/logs.js +3 -3
- package/commands/module/marketplace-validate.js +3 -3
- package/commands/module.js +2 -2
- package/commands/mv.js +3 -3
- package/commands/open.js +3 -3
- package/commands/project/create.js +3 -3
- package/commands/project/deploy.js +3 -3
- package/commands/project/dev.js +12 -4
- package/commands/project/download.js +2 -2
- package/commands/project/listBuilds.js +3 -3
- package/commands/project/logs.js +3 -3
- package/commands/project/migrateApp.js +9 -5
- package/commands/project/open.js +4 -4
- package/commands/project/upload.js +11 -6
- package/commands/project/watch.js +3 -3
- package/commands/project.js +2 -2
- package/commands/remove.js +3 -3
- package/commands/sandbox/create.js +7 -7
- package/commands/sandbox/delete.js +4 -4
- package/commands/sandbox/sync.js +4 -4
- package/commands/sandbox.js +2 -2
- package/commands/secrets/addSecret.js +3 -3
- package/commands/secrets/deleteSecret.js +3 -3
- package/commands/secrets/listSecrets.js +3 -3
- package/commands/secrets/updateSecret.js +3 -3
- package/commands/secrets.js +2 -2
- package/commands/theme/marketplace-validate.js +3 -3
- package/commands/theme/preview.js +2 -2
- package/commands/upload.js +4 -4
- package/commands/watch.js +6 -9
- package/jest.config.js +1 -0
- package/lang/en.lyaml +12 -7
- package/lib/LocalDevManager.js +8 -0
- package/lib/__tests__/{commonOpts.js → commonOpts.test.js} +3 -0
- package/lib/__tests__/downloadProjectPrompt.test.js +31 -0
- package/lib/__tests__/projects.test.js +13 -17
- package/lib/__tests__/{serverlessLogs.js → serverlessLogs.test.js} +1 -0
- package/lib/{developerTestAccountCreate.js → buildAccount.js} +91 -80
- package/lib/developerTestAccounts.js +52 -4
- package/lib/localDev.js +11 -10
- package/lib/projects.js +45 -3
- package/lib/prompts/createProjectPrompt.js +4 -0
- package/lib/prompts/downloadProjectPrompt.js +4 -5
- package/lib/sandboxes.js +160 -1
- package/package.json +2 -2
- package/lib/sandboxCreate.js +0 -318
- /package/lib/__tests__/{validation.js → validation.test.js} +0 -0
|
@@ -127,10 +127,10 @@ exports.handler = async options => {
|
|
|
127
127
|
};
|
|
128
128
|
|
|
129
129
|
exports.builder = yargs => {
|
|
130
|
-
addConfigOptions(yargs
|
|
131
|
-
addAccountOptions(yargs
|
|
132
|
-
addUseEnvironmentOptions(yargs
|
|
133
|
-
addTestingOptions(yargs
|
|
130
|
+
addConfigOptions(yargs);
|
|
131
|
+
addAccountOptions(yargs);
|
|
132
|
+
addUseEnvironmentOptions(yargs);
|
|
133
|
+
addTestingOptions(yargs);
|
|
134
134
|
|
|
135
135
|
yargs.example([['$0 accounts clean']]);
|
|
136
136
|
|
|
@@ -39,8 +39,8 @@ exports.handler = async options => {
|
|
|
39
39
|
};
|
|
40
40
|
|
|
41
41
|
exports.builder = yargs => {
|
|
42
|
-
addConfigOptions(yargs
|
|
43
|
-
addAccountOptions(yargs
|
|
42
|
+
addConfigOptions(yargs);
|
|
43
|
+
addAccountOptions(yargs);
|
|
44
44
|
|
|
45
45
|
yargs.example([
|
|
46
46
|
['$0 accounts info', i18n(`${i18nKey}.examples.default`)],
|
|
@@ -104,8 +104,8 @@ exports.handler = async options => {
|
|
|
104
104
|
};
|
|
105
105
|
|
|
106
106
|
exports.builder = yargs => {
|
|
107
|
-
addConfigOptions(yargs
|
|
108
|
-
addAccountOptions(yargs
|
|
107
|
+
addConfigOptions(yargs);
|
|
108
|
+
addAccountOptions(yargs);
|
|
109
109
|
|
|
110
110
|
yargs.example([['$0 accounts list']]);
|
|
111
111
|
|
|
@@ -34,8 +34,8 @@ exports.handler = async options => {
|
|
|
34
34
|
};
|
|
35
35
|
|
|
36
36
|
exports.builder = yargs => {
|
|
37
|
-
addConfigOptions(yargs
|
|
38
|
-
addAccountOptions(yargs
|
|
37
|
+
addConfigOptions(yargs);
|
|
38
|
+
addAccountOptions(yargs);
|
|
39
39
|
|
|
40
40
|
yargs.positional('accountName', {
|
|
41
41
|
describe: i18n(`${i18nKey}.positionals.accountName.describe`),
|
package/commands/accounts.js
CHANGED
|
@@ -13,8 +13,8 @@ exports.command = 'accounts';
|
|
|
13
13
|
exports.describe = i18n(`${i18nKey}.describe`);
|
|
14
14
|
|
|
15
15
|
exports.builder = yargs => {
|
|
16
|
-
addConfigOptions(yargs
|
|
17
|
-
addAccountOptions(yargs
|
|
16
|
+
addConfigOptions(yargs);
|
|
17
|
+
addAccountOptions(yargs);
|
|
18
18
|
|
|
19
19
|
yargs
|
|
20
20
|
.command({
|
package/commands/auth.js
CHANGED
|
@@ -310,9 +310,9 @@ exports.builder = yargs => {
|
|
|
310
310
|
],
|
|
311
311
|
]);
|
|
312
312
|
|
|
313
|
-
addConfigOptions(yargs
|
|
314
|
-
addAccountOptions(yargs
|
|
315
|
-
addUseEnvironmentOptions(yargs
|
|
313
|
+
addConfigOptions(yargs);
|
|
314
|
+
addAccountOptions(yargs);
|
|
315
|
+
addUseEnvironmentOptions(yargs);
|
|
316
316
|
|
|
317
317
|
return yargs;
|
|
318
318
|
};
|
package/commands/cms.js
CHANGED
|
@@ -10,8 +10,8 @@ exports.command = 'cms';
|
|
|
10
10
|
exports.describe = i18n(`${i18nKey}.describe`);
|
|
11
11
|
|
|
12
12
|
exports.builder = yargs => {
|
|
13
|
-
addConfigOptions(yargs
|
|
14
|
-
addAccountOptions(yargs
|
|
13
|
+
addConfigOptions(yargs);
|
|
14
|
+
addAccountOptions(yargs);
|
|
15
15
|
|
|
16
16
|
yargs
|
|
17
17
|
.command(lighthouseScore)
|
package/commands/config.js
CHANGED
|
@@ -8,8 +8,8 @@ exports.command = 'config';
|
|
|
8
8
|
exports.describe = i18n(`${i18nKey}.describe`);
|
|
9
9
|
|
|
10
10
|
exports.builder = yargs => {
|
|
11
|
-
addConfigOptions(yargs
|
|
12
|
-
addAccountOptions(yargs
|
|
11
|
+
addConfigOptions(yargs);
|
|
12
|
+
addAccountOptions(yargs);
|
|
13
13
|
|
|
14
14
|
yargs.command(set).demandCommand(1, '');
|
|
15
15
|
|
package/commands/customObject.js
CHANGED
package/commands/fetch.js
CHANGED
|
@@ -56,11 +56,11 @@ exports.handler = async options => {
|
|
|
56
56
|
};
|
|
57
57
|
|
|
58
58
|
exports.builder = yargs => {
|
|
59
|
-
addConfigOptions(yargs
|
|
60
|
-
addAccountOptions(yargs
|
|
61
|
-
addOverwriteOptions(yargs
|
|
62
|
-
addModeOptions(yargs, { read: true }
|
|
63
|
-
addUseEnvironmentOptions(yargs
|
|
59
|
+
addConfigOptions(yargs);
|
|
60
|
+
addAccountOptions(yargs);
|
|
61
|
+
addOverwriteOptions(yargs);
|
|
62
|
+
addModeOptions(yargs, { read: true });
|
|
63
|
+
addUseEnvironmentOptions(yargs);
|
|
64
64
|
|
|
65
65
|
yargs.positional('src', {
|
|
66
66
|
describe: i18n(`${i18nKey}.positionals.src.describe`),
|
|
@@ -50,9 +50,9 @@ exports.handler = async options => {
|
|
|
50
50
|
};
|
|
51
51
|
|
|
52
52
|
exports.builder = yargs => {
|
|
53
|
-
addConfigOptions(yargs
|
|
54
|
-
addAccountOptions(yargs
|
|
55
|
-
addUseEnvironmentOptions(yargs
|
|
53
|
+
addConfigOptions(yargs);
|
|
54
|
+
addAccountOptions(yargs);
|
|
55
|
+
addUseEnvironmentOptions(yargs);
|
|
56
56
|
|
|
57
57
|
yargs.positional('src', {
|
|
58
58
|
describe: i18n(`${i18nKey}.positionals.src.describe`),
|
|
@@ -141,9 +141,9 @@ exports.handler = async options => {
|
|
|
141
141
|
};
|
|
142
142
|
|
|
143
143
|
exports.builder = yargs => {
|
|
144
|
-
addConfigOptions(yargs
|
|
145
|
-
addAccountOptions(yargs
|
|
146
|
-
addUseEnvironmentOptions(yargs
|
|
144
|
+
addConfigOptions(yargs);
|
|
145
|
+
addAccountOptions(yargs);
|
|
146
|
+
addUseEnvironmentOptions(yargs);
|
|
147
147
|
|
|
148
148
|
yargs.positional('src', {
|
|
149
149
|
describe: i18n(`${i18nKey}.positionals.src.describe`),
|
package/commands/filemanager.js
CHANGED
|
@@ -13,9 +13,9 @@ exports.command = 'filemanager';
|
|
|
13
13
|
exports.describe = i18n(`${i18nKey}.describe`);
|
|
14
14
|
|
|
15
15
|
exports.builder = yargs => {
|
|
16
|
-
addOverwriteOptions(yargs
|
|
17
|
-
addConfigOptions(yargs
|
|
18
|
-
addAccountOptions(yargs
|
|
16
|
+
addOverwriteOptions(yargs);
|
|
17
|
+
addConfigOptions(yargs);
|
|
18
|
+
addAccountOptions(yargs);
|
|
19
19
|
|
|
20
20
|
yargs
|
|
21
21
|
.command(upload)
|
|
@@ -112,9 +112,9 @@ exports.builder = yargs => {
|
|
|
112
112
|
],
|
|
113
113
|
]);
|
|
114
114
|
|
|
115
|
-
addConfigOptions(yargs
|
|
116
|
-
addAccountOptions(yargs
|
|
117
|
-
addUseEnvironmentOptions(yargs
|
|
115
|
+
addConfigOptions(yargs);
|
|
116
|
+
addAccountOptions(yargs);
|
|
117
|
+
addUseEnvironmentOptions(yargs);
|
|
118
118
|
|
|
119
119
|
return yargs;
|
|
120
120
|
};
|
|
@@ -52,9 +52,9 @@ exports.handler = async options => {
|
|
|
52
52
|
};
|
|
53
53
|
|
|
54
54
|
exports.builder = yargs => {
|
|
55
|
-
addConfigOptions(yargs
|
|
56
|
-
addAccountOptions(yargs
|
|
57
|
-
addUseEnvironmentOptions(yargs
|
|
55
|
+
addConfigOptions(yargs);
|
|
56
|
+
addAccountOptions(yargs);
|
|
57
|
+
addUseEnvironmentOptions(yargs);
|
|
58
58
|
|
|
59
59
|
yargs.options({
|
|
60
60
|
json: {
|
|
@@ -68,9 +68,9 @@ exports.builder = yargs => {
|
|
|
68
68
|
],
|
|
69
69
|
]);
|
|
70
70
|
|
|
71
|
-
addConfigOptions(yargs
|
|
72
|
-
addAccountOptions(yargs
|
|
73
|
-
addUseEnvironmentOptions(yargs
|
|
71
|
+
addConfigOptions(yargs);
|
|
72
|
+
addAccountOptions(yargs);
|
|
73
|
+
addUseEnvironmentOptions(yargs);
|
|
74
74
|
|
|
75
75
|
return yargs;
|
|
76
76
|
};
|
package/commands/functions.js
CHANGED
|
@@ -10,8 +10,8 @@ exports.command = 'functions';
|
|
|
10
10
|
exports.describe = i18n(`${i18nKey}.describe`);
|
|
11
11
|
|
|
12
12
|
exports.builder = yargs => {
|
|
13
|
-
addConfigOptions(yargs
|
|
14
|
-
addAccountOptions(yargs
|
|
13
|
+
addConfigOptions(yargs);
|
|
14
|
+
addAccountOptions(yargs);
|
|
15
15
|
|
|
16
16
|
yargs
|
|
17
17
|
.command({
|
package/commands/hubdb/clear.js
CHANGED
|
@@ -57,9 +57,9 @@ exports.handler = async options => {
|
|
|
57
57
|
};
|
|
58
58
|
|
|
59
59
|
exports.builder = yargs => {
|
|
60
|
-
addAccountOptions(yargs
|
|
61
|
-
addConfigOptions(yargs
|
|
62
|
-
addUseEnvironmentOptions(yargs
|
|
60
|
+
addAccountOptions(yargs);
|
|
61
|
+
addConfigOptions(yargs);
|
|
62
|
+
addUseEnvironmentOptions(yargs);
|
|
63
63
|
|
|
64
64
|
yargs.positional('tableId', {
|
|
65
65
|
describe: i18n(`${i18nKey}.positionals.tableId.describe`),
|
package/commands/hubdb/create.js
CHANGED
|
@@ -61,9 +61,9 @@ exports.handler = async options => {
|
|
|
61
61
|
};
|
|
62
62
|
|
|
63
63
|
exports.builder = yargs => {
|
|
64
|
-
addAccountOptions(yargs
|
|
65
|
-
addConfigOptions(yargs
|
|
66
|
-
addUseEnvironmentOptions(yargs
|
|
64
|
+
addAccountOptions(yargs);
|
|
65
|
+
addConfigOptions(yargs);
|
|
66
|
+
addUseEnvironmentOptions(yargs);
|
|
67
67
|
|
|
68
68
|
yargs.positional('src', {
|
|
69
69
|
describe: i18n(`${i18nKey}.positionals.src.describe`),
|
package/commands/hubdb/delete.js
CHANGED
|
@@ -45,9 +45,9 @@ exports.handler = async options => {
|
|
|
45
45
|
};
|
|
46
46
|
|
|
47
47
|
exports.builder = yargs => {
|
|
48
|
-
addAccountOptions(yargs
|
|
49
|
-
addConfigOptions(yargs
|
|
50
|
-
addUseEnvironmentOptions(yargs
|
|
48
|
+
addAccountOptions(yargs);
|
|
49
|
+
addConfigOptions(yargs);
|
|
50
|
+
addUseEnvironmentOptions(yargs);
|
|
51
51
|
|
|
52
52
|
yargs.positional('tableId', {
|
|
53
53
|
describe: i18n(`${i18nKey}.positionals.tableId.describe`),
|
package/commands/hubdb/fetch.js
CHANGED
|
@@ -42,9 +42,9 @@ exports.handler = async options => {
|
|
|
42
42
|
};
|
|
43
43
|
|
|
44
44
|
exports.builder = yargs => {
|
|
45
|
-
addAccountOptions(yargs
|
|
46
|
-
addConfigOptions(yargs
|
|
47
|
-
addUseEnvironmentOptions(yargs
|
|
45
|
+
addAccountOptions(yargs);
|
|
46
|
+
addConfigOptions(yargs);
|
|
47
|
+
addUseEnvironmentOptions(yargs);
|
|
48
48
|
|
|
49
49
|
yargs.positional('tableId', {
|
|
50
50
|
describe: i18n(`${i18nKey}.positionals.tableId.describe`),
|
package/commands/hubdb.js
CHANGED
|
@@ -11,8 +11,8 @@ exports.command = 'hubdb';
|
|
|
11
11
|
exports.describe = i18n(`${i18nKey}.describe`);
|
|
12
12
|
|
|
13
13
|
exports.builder = yargs => {
|
|
14
|
-
addConfigOptions(yargs
|
|
15
|
-
addAccountOptions(yargs
|
|
14
|
+
addConfigOptions(yargs);
|
|
15
|
+
addAccountOptions(yargs);
|
|
16
16
|
|
|
17
17
|
yargs
|
|
18
18
|
.command(clearCommand)
|
package/commands/init.js
CHANGED
package/commands/lint.js
CHANGED
|
@@ -53,8 +53,8 @@ exports.handler = async options => {
|
|
|
53
53
|
};
|
|
54
54
|
|
|
55
55
|
exports.builder = yargs => {
|
|
56
|
-
addConfigOptions(yargs
|
|
57
|
-
addAccountOptions(yargs
|
|
56
|
+
addConfigOptions(yargs);
|
|
57
|
+
addAccountOptions(yargs);
|
|
58
58
|
yargs.positional('path', {
|
|
59
59
|
describe: i18n(`${i18nKey}.positionals.path.describe`),
|
|
60
60
|
type: 'string',
|
package/commands/list.js
CHANGED
|
@@ -87,9 +87,9 @@ exports.builder = yargs => {
|
|
|
87
87
|
});
|
|
88
88
|
yargs.example([['$0 list'], ['$0 list /'], ['$0 list serverless']]);
|
|
89
89
|
|
|
90
|
-
addConfigOptions(yargs
|
|
91
|
-
addAccountOptions(yargs
|
|
92
|
-
addUseEnvironmentOptions(yargs
|
|
90
|
+
addConfigOptions(yargs);
|
|
91
|
+
addAccountOptions(yargs);
|
|
92
|
+
addUseEnvironmentOptions(yargs);
|
|
93
93
|
|
|
94
94
|
return yargs;
|
|
95
95
|
};
|
package/commands/logs.js
CHANGED
|
@@ -131,9 +131,9 @@ exports.builder = yargs => {
|
|
|
131
131
|
['$0 logs my-endpoint --follow', i18n(`${i18nKey}.examples.follow`)],
|
|
132
132
|
]);
|
|
133
133
|
|
|
134
|
-
addConfigOptions(yargs
|
|
135
|
-
addAccountOptions(yargs
|
|
136
|
-
addUseEnvironmentOptions(yargs
|
|
134
|
+
addConfigOptions(yargs);
|
|
135
|
+
addAccountOptions(yargs);
|
|
136
|
+
addUseEnvironmentOptions(yargs);
|
|
137
137
|
|
|
138
138
|
return yargs;
|
|
139
139
|
};
|
|
@@ -55,9 +55,9 @@ exports.handler = async options => {
|
|
|
55
55
|
};
|
|
56
56
|
|
|
57
57
|
exports.builder = yargs => {
|
|
58
|
-
addConfigOptions(yargs
|
|
59
|
-
addAccountOptions(yargs
|
|
60
|
-
addUseEnvironmentOptions(yargs
|
|
58
|
+
addConfigOptions(yargs);
|
|
59
|
+
addAccountOptions(yargs);
|
|
60
|
+
addUseEnvironmentOptions(yargs);
|
|
61
61
|
|
|
62
62
|
yargs.positional('src', {
|
|
63
63
|
describe: i18n(`${i18nKey}.positionals.src.describe`),
|
package/commands/module.js
CHANGED
|
@@ -8,8 +8,8 @@ exports.command = 'module';
|
|
|
8
8
|
exports.describe = false; //i18n(`${i18nKey}.describe`);
|
|
9
9
|
|
|
10
10
|
exports.builder = yargs => {
|
|
11
|
-
addConfigOptions(yargs
|
|
12
|
-
addAccountOptions(yargs
|
|
11
|
+
addConfigOptions(yargs);
|
|
12
|
+
addAccountOptions(yargs);
|
|
13
13
|
|
|
14
14
|
yargs.command(marketplaceValidate).demandCommand(1, '');
|
|
15
15
|
|
package/commands/mv.js
CHANGED
|
@@ -77,9 +77,9 @@ exports.handler = async options => {
|
|
|
77
77
|
};
|
|
78
78
|
|
|
79
79
|
exports.builder = yargs => {
|
|
80
|
-
addConfigOptions(yargs
|
|
81
|
-
addAccountOptions(yargs
|
|
82
|
-
addUseEnvironmentOptions(yargs
|
|
80
|
+
addConfigOptions(yargs);
|
|
81
|
+
addAccountOptions(yargs);
|
|
82
|
+
addUseEnvironmentOptions(yargs);
|
|
83
83
|
yargs.positional('srcPath', {
|
|
84
84
|
describe: 'Remote hubspot path',
|
|
85
85
|
type: 'string',
|
package/commands/open.js
CHANGED
|
@@ -67,9 +67,9 @@ exports.builder = yargs => {
|
|
|
67
67
|
['$0 open sn'],
|
|
68
68
|
]);
|
|
69
69
|
|
|
70
|
-
addConfigOptions(yargs
|
|
71
|
-
addAccountOptions(yargs
|
|
72
|
-
addUseEnvironmentOptions(yargs
|
|
70
|
+
addConfigOptions(yargs);
|
|
71
|
+
addAccountOptions(yargs);
|
|
72
|
+
addUseEnvironmentOptions(yargs);
|
|
73
73
|
|
|
74
74
|
return yargs;
|
|
75
75
|
};
|
|
@@ -93,9 +93,9 @@ exports.builder = yargs => {
|
|
|
93
93
|
|
|
94
94
|
yargs.example([['$0 project create', i18n(`${i18nKey}.examples.default`)]]);
|
|
95
95
|
|
|
96
|
-
addConfigOptions(yargs
|
|
97
|
-
addAccountOptions(yargs
|
|
98
|
-
addUseEnvironmentOptions(yargs
|
|
96
|
+
addConfigOptions(yargs);
|
|
97
|
+
addAccountOptions(yargs);
|
|
98
|
+
addUseEnvironmentOptions(yargs);
|
|
99
99
|
|
|
100
100
|
return yargs;
|
|
101
101
|
};
|
|
@@ -142,9 +142,9 @@ exports.builder = yargs => {
|
|
|
142
142
|
],
|
|
143
143
|
]);
|
|
144
144
|
|
|
145
|
-
addConfigOptions(yargs
|
|
146
|
-
addAccountOptions(yargs
|
|
147
|
-
addUseEnvironmentOptions(yargs
|
|
145
|
+
addConfigOptions(yargs);
|
|
146
|
+
addAccountOptions(yargs);
|
|
147
|
+
addUseEnvironmentOptions(yargs);
|
|
148
148
|
|
|
149
149
|
return yargs;
|
|
150
150
|
};
|
package/commands/project/dev.js
CHANGED
|
@@ -25,6 +25,7 @@ const {
|
|
|
25
25
|
uiAccountDescription,
|
|
26
26
|
uiBetaTag,
|
|
27
27
|
uiCommandReference,
|
|
28
|
+
uiLink,
|
|
28
29
|
} = require('../../lib/ui');
|
|
29
30
|
const SpinniesManager = require('../../lib/ui/SpinniesManager');
|
|
30
31
|
const LocalDevManager = require('../../lib/LocalDevManager');
|
|
@@ -70,6 +71,13 @@ exports.handler = async options => {
|
|
|
70
71
|
|
|
71
72
|
uiBetaTag(i18n(`${i18nKey}.logs.betaMessage`));
|
|
72
73
|
|
|
74
|
+
logger.log(
|
|
75
|
+
uiLink(
|
|
76
|
+
i18n(`${i18nKey}.logs.learnMoreLocalDevServer`),
|
|
77
|
+
'https://developers.hubspot.com/docs/platform/project-cli-commands#start-a-local-development-server'
|
|
78
|
+
)
|
|
79
|
+
);
|
|
80
|
+
|
|
73
81
|
if (!projectConfig) {
|
|
74
82
|
logger.error(i18n(`${i18nKey}.errors.noProjectConfig`));
|
|
75
83
|
process.exit(EXIT_CODES.ERROR);
|
|
@@ -232,10 +240,10 @@ exports.handler = async options => {
|
|
|
232
240
|
};
|
|
233
241
|
|
|
234
242
|
exports.builder = yargs => {
|
|
235
|
-
addConfigOptions(yargs
|
|
236
|
-
addAccountOptions(yargs
|
|
237
|
-
addUseEnvironmentOptions(yargs
|
|
238
|
-
addTestingOptions(yargs
|
|
243
|
+
addConfigOptions(yargs);
|
|
244
|
+
addAccountOptions(yargs);
|
|
245
|
+
addUseEnvironmentOptions(yargs);
|
|
246
|
+
addTestingOptions(yargs);
|
|
239
247
|
|
|
240
248
|
yargs.example([['$0 project dev', i18n(`${i18nKey}.examples.default`)]]);
|
|
241
249
|
|
|
@@ -67,7 +67,7 @@ exports.handler = async options => {
|
|
|
67
67
|
})
|
|
68
68
|
);
|
|
69
69
|
let { name: promptedProjectName } = await downloadProjectPrompt(options);
|
|
70
|
-
|
|
70
|
+
projectName = promptedProjectName || project;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
const absoluteDestPath = dest ? path.resolve(getCwd(), dest) : getCwd();
|
|
@@ -114,7 +114,7 @@ exports.handler = async options => {
|
|
|
114
114
|
};
|
|
115
115
|
|
|
116
116
|
exports.builder = yargs => {
|
|
117
|
-
addUseEnvironmentOptions(yargs
|
|
117
|
+
addUseEnvironmentOptions(yargs);
|
|
118
118
|
|
|
119
119
|
yargs.options({
|
|
120
120
|
project: {
|
|
@@ -155,9 +155,9 @@ exports.builder = yargs => {
|
|
|
155
155
|
],
|
|
156
156
|
]);
|
|
157
157
|
|
|
158
|
-
addConfigOptions(yargs
|
|
159
|
-
addAccountOptions(yargs
|
|
160
|
-
addUseEnvironmentOptions(yargs
|
|
158
|
+
addConfigOptions(yargs);
|
|
159
|
+
addAccountOptions(yargs);
|
|
160
|
+
addUseEnvironmentOptions(yargs);
|
|
161
161
|
|
|
162
162
|
return yargs;
|
|
163
163
|
};
|
package/commands/project/logs.js
CHANGED
|
@@ -308,9 +308,9 @@ exports.builder = yargs => {
|
|
|
308
308
|
],
|
|
309
309
|
]);
|
|
310
310
|
|
|
311
|
-
addConfigOptions(yargs
|
|
312
|
-
addAccountOptions(yargs
|
|
313
|
-
addUseEnvironmentOptions(yargs
|
|
311
|
+
addConfigOptions(yargs);
|
|
312
|
+
addAccountOptions(yargs);
|
|
313
|
+
addUseEnvironmentOptions(yargs);
|
|
314
314
|
|
|
315
315
|
return yargs;
|
|
316
316
|
};
|
|
@@ -168,12 +168,16 @@ exports.handler = async options => {
|
|
|
168
168
|
);
|
|
169
169
|
process.exit(EXIT_CODES.SUCCESS);
|
|
170
170
|
}
|
|
171
|
-
} catch (
|
|
171
|
+
} catch (error) {
|
|
172
172
|
SpinniesManager.fail('migrateApp', {
|
|
173
173
|
text: i18n(`${i18nKey}.migrationStatus.failure`),
|
|
174
174
|
failColor: 'white',
|
|
175
175
|
});
|
|
176
|
-
logApiErrorInstance(
|
|
176
|
+
logApiErrorInstance(
|
|
177
|
+
error.error || error,
|
|
178
|
+
new ApiErrorContext({ accountId })
|
|
179
|
+
);
|
|
180
|
+
|
|
177
181
|
process.exit(EXIT_CODES.ERROR);
|
|
178
182
|
}
|
|
179
183
|
};
|
|
@@ -198,9 +202,9 @@ exports.builder = yargs => {
|
|
|
198
202
|
['$0 project migrate-app', i18n(`${i18nKey}.examples.default`)],
|
|
199
203
|
]);
|
|
200
204
|
|
|
201
|
-
addConfigOptions(yargs
|
|
202
|
-
addAccountOptions(yargs
|
|
203
|
-
addUseEnvironmentOptions(yargs
|
|
205
|
+
addConfigOptions(yargs);
|
|
206
|
+
addAccountOptions(yargs);
|
|
207
|
+
addUseEnvironmentOptions(yargs);
|
|
204
208
|
|
|
205
209
|
return yargs;
|
|
206
210
|
};
|
package/commands/project/open.js
CHANGED
|
@@ -66,10 +66,10 @@ exports.handler = async options => {
|
|
|
66
66
|
};
|
|
67
67
|
|
|
68
68
|
exports.builder = yargs => {
|
|
69
|
-
addConfigOptions(yargs
|
|
70
|
-
addAccountOptions(yargs
|
|
71
|
-
addUseEnvironmentOptions(yargs
|
|
72
|
-
addTestingOptions(yargs
|
|
69
|
+
addConfigOptions(yargs);
|
|
70
|
+
addAccountOptions(yargs);
|
|
71
|
+
addUseEnvironmentOptions(yargs);
|
|
72
|
+
addTestingOptions(yargs);
|
|
73
73
|
|
|
74
74
|
yargs.options({
|
|
75
75
|
project: {
|
|
@@ -6,7 +6,7 @@ const {
|
|
|
6
6
|
} = require('../../lib/commonOpts');
|
|
7
7
|
const chalk = require('chalk');
|
|
8
8
|
const { logger } = require('@hubspot/local-dev-lib/logger');
|
|
9
|
-
const { uiBetaTag,
|
|
9
|
+
const { uiBetaTag, uiCommandReference } = require('../../lib/ui');
|
|
10
10
|
const { trackCommandUsage } = require('../../lib/usageTracking');
|
|
11
11
|
const { loadAndValidateOptions } = require('../../lib/validation');
|
|
12
12
|
const {
|
|
@@ -82,7 +82,6 @@ exports.handler = async options => {
|
|
|
82
82
|
process.exit(EXIT_CODES.ERROR);
|
|
83
83
|
}
|
|
84
84
|
if (result.succeeded && !result.buildResult.isAutoDeployEnabled) {
|
|
85
|
-
uiLine();
|
|
86
85
|
logger.log(
|
|
87
86
|
chalk.bold(
|
|
88
87
|
i18n(`${i18nKey}.logs.buildSucceeded`, {
|
|
@@ -90,7 +89,13 @@ exports.handler = async options => {
|
|
|
90
89
|
})
|
|
91
90
|
)
|
|
92
91
|
);
|
|
93
|
-
|
|
92
|
+
logger.log(
|
|
93
|
+
i18n(`${i18nKey}.logs.autoDeployDisabled`, {
|
|
94
|
+
deployCommand: uiCommandReference(
|
|
95
|
+
`hs project deploy --buildId=${result.buildId}`
|
|
96
|
+
),
|
|
97
|
+
})
|
|
98
|
+
);
|
|
94
99
|
logFeedbackMessage(result.buildId);
|
|
95
100
|
|
|
96
101
|
await displayWarnLogs(accountId, projectConfig.name, result.buildId);
|
|
@@ -126,9 +131,9 @@ exports.builder = yargs => {
|
|
|
126
131
|
['$0 project upload myProjectFolder', i18n(`${i18nKey}.examples.default`)],
|
|
127
132
|
]);
|
|
128
133
|
|
|
129
|
-
addConfigOptions(yargs
|
|
130
|
-
addAccountOptions(yargs
|
|
131
|
-
addUseEnvironmentOptions(yargs
|
|
134
|
+
addConfigOptions(yargs);
|
|
135
|
+
addAccountOptions(yargs);
|
|
136
|
+
addUseEnvironmentOptions(yargs);
|
|
132
137
|
|
|
133
138
|
return yargs;
|
|
134
139
|
};
|
|
@@ -179,9 +179,9 @@ exports.builder = yargs => {
|
|
|
179
179
|
['$0 project watch myProjectFolder', i18n(`${i18nKey}.examples.default`)],
|
|
180
180
|
]);
|
|
181
181
|
|
|
182
|
-
addConfigOptions(yargs
|
|
183
|
-
addAccountOptions(yargs
|
|
184
|
-
addUseEnvironmentOptions(yargs
|
|
182
|
+
addConfigOptions(yargs);
|
|
183
|
+
addAccountOptions(yargs);
|
|
184
|
+
addUseEnvironmentOptions(yargs);
|
|
185
185
|
|
|
186
186
|
return yargs;
|
|
187
187
|
};
|