@hubspot/cli 5.2.1-beta.2 → 5.2.1-beta.4
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/bin/cli.js +1 -1
- package/commands/accounts/clean.js +3 -3
- package/commands/accounts/info.js +1 -1
- package/commands/accounts/list.js +1 -1
- package/commands/accounts/remove.js +1 -1
- package/commands/accounts/rename.js +1 -1
- package/commands/accounts/use.js +1 -1
- package/commands/accounts.js +1 -1
- package/commands/auth.js +3 -3
- package/commands/cms/convertFields.js +1 -1
- package/commands/cms/lighthouseScore.js +1 -1
- package/commands/cms/reactModules.js +1 -1
- package/commands/cms.js +1 -1
- package/commands/config/set/allowUsageTracking.js +1 -2
- package/commands/config/set/defaultMode.js +1 -1
- package/commands/config/set/httpTimeout.js +1 -1
- package/commands/config/set.js +1 -1
- package/commands/config.js +1 -1
- package/commands/create/api-sample.js +1 -1
- package/commands/create/module.js +1 -1
- package/commands/create/template.js +1 -1
- package/commands/create.js +1 -1
- package/commands/customObject/create.js +1 -1
- package/commands/customObject/schema/create.js +1 -2
- package/commands/customObject/schema/delete.js +1 -2
- package/commands/customObject/schema/fetch-all.js +1 -2
- package/commands/customObject/schema/fetch.js +1 -2
- package/commands/customObject/schema/list.js +1 -1
- package/commands/customObject/schema/update.js +1 -2
- package/commands/customObject/schema.js +1 -1
- package/commands/customObject.js +1 -1
- package/commands/feedback.js +1 -1
- package/commands/fetch.js +1 -1
- package/commands/filemanager/fetch.js +1 -1
- package/commands/filemanager/upload.js +1 -1
- package/commands/filemanager.js +1 -1
- package/commands/functions/deploy.js +1 -1
- package/commands/functions/list.js +1 -1
- package/commands/functions/server.js +1 -1
- package/commands/functions.js +1 -1
- package/commands/hubdb/clear.js +1 -1
- package/commands/hubdb/create.js +1 -1
- package/commands/hubdb/delete.js +1 -1
- package/commands/hubdb/fetch.js +1 -1
- package/commands/hubdb.js +1 -1
- package/commands/init.js +1 -1
- package/commands/lint.js +1 -1
- package/commands/list.js +1 -1
- package/commands/logs.js +1 -1
- package/commands/module/marketplace-validate.js +1 -1
- package/commands/module.js +1 -1
- package/commands/mv.js +1 -1
- package/commands/open.js +1 -1
- package/commands/project/add.js +1 -1
- package/commands/project/create.js +1 -1
- package/commands/project/deploy.js +1 -1
- package/commands/project/dev.js +37 -19
- package/commands/project/download.js +9 -5
- package/commands/project/listBuilds.js +1 -1
- package/commands/project/logs.js +1 -1
- package/commands/project/open.js +8 -4
- package/commands/project/upload.js +1 -1
- package/commands/project/watch.js +1 -1
- package/commands/project.js +1 -1
- package/commands/remove.js +1 -1
- package/commands/sandbox/create.js +4 -4
- package/commands/sandbox/delete.js +1 -1
- package/commands/sandbox/sync.js +2 -2
- package/commands/sandbox.js +1 -1
- package/commands/secrets/addSecret.js +1 -1
- package/commands/secrets/deleteSecret.js +1 -1
- package/commands/secrets/listSecrets.js +1 -1
- package/commands/secrets/updateSecret.js +1 -1
- package/commands/secrets.js +1 -1
- package/commands/theme/generate-selectors.js +1 -1
- package/commands/theme/marketplace-validate.js +1 -1
- package/commands/theme/preview.js +2 -2
- package/commands/theme.js +1 -1
- package/commands/upload.js +1 -1
- package/commands/watch.js +1 -1
- package/lang/en.lyaml +1378 -1374
- package/lib/DevServerManager.js +3 -2
- package/lib/LocalDevManager.js +89 -5
- package/lib/commonOpts.js +1 -1
- package/lib/developerTestAccountCreate.js +4 -5
- package/lib/developerTestAccounts.js +1 -1
- package/lib/errorHandlers/apiErrors.js +1 -1
- package/lib/errorHandlers/overrideErrors.js +1 -1
- package/lib/errorHandlers/standardErrors.js +1 -1
- package/lib/generate-selectors.js +1 -1
- package/lib/localDev.js +8 -12
- package/lib/process.js +1 -1
- package/lib/projects.js +6 -6
- package/lib/projectsWatch.js +1 -1
- package/lib/prompts/accountsPrompt.js +1 -1
- package/lib/prompts/buildIdPrompt.js +1 -1
- package/lib/prompts/cleanUploadPrompt.js +1 -1
- package/lib/prompts/cmsFieldPrompt.js +1 -1
- package/lib/prompts/createApiSamplePrompt.js +1 -1
- package/lib/prompts/createFunctionPrompt.js +1 -1
- package/lib/prompts/createModulePrompt.js +1 -1
- package/lib/prompts/createProjectPrompt.js +1 -1
- package/lib/prompts/createTemplatePrompt.js +1 -1
- package/lib/prompts/developerTestAccountNamePrompt.js +1 -1
- package/lib/prompts/downloadProjectPrompt.js +1 -1
- package/lib/prompts/enterAccountNamePrompt.js +1 -1
- package/lib/prompts/feedbackPrompt.js +1 -1
- package/lib/prompts/folderOverwritePrompt.js +1 -1
- package/lib/prompts/installPublicAppPrompt.js +42 -0
- package/lib/prompts/personalAccessKeyPrompt.js +1 -1
- package/lib/prompts/previewPrompt.js +1 -1
- package/lib/prompts/projectAddPrompt.js +1 -1
- package/lib/prompts/projectDevTargetAccountPrompt.js +1 -1
- package/lib/prompts/projectNamePrompt.js +2 -2
- package/lib/prompts/projectsLogsPrompt.js +1 -1
- package/lib/prompts/sandboxesPrompt.js +1 -1
- package/lib/prompts/secretPrompt.js +1 -1
- package/lib/prompts/setAsDefaultAccountPrompt.js +1 -1
- package/lib/prompts/uploadPrompt.js +1 -1
- package/lib/sandboxCreate.js +4 -5
- package/lib/sandboxSync.js +1 -1
- package/lib/sandboxes.js +7 -9
- package/lib/ui/git.js +1 -1
- package/lib/ui/index.js +2 -2
- package/lib/ui/serverlessFunctionLogs.js +1 -1
- package/package.json +6 -6
|
@@ -10,7 +10,7 @@ const {
|
|
|
10
10
|
const { logger } = require('@hubspot/local-dev-lib/logger');
|
|
11
11
|
const { EXIT_CODES } = require('../enums/exitCodes');
|
|
12
12
|
|
|
13
|
-
const i18nKey = '
|
|
13
|
+
const i18nKey = 'lib.prompts.projectLogsPrompt';
|
|
14
14
|
|
|
15
15
|
const SERVERLESS_FUNCTION_TYPES = {
|
|
16
16
|
APP_FUNCTION: 'app-function',
|
|
@@ -7,7 +7,7 @@ const {
|
|
|
7
7
|
} = require('@hubspot/local-dev-lib/constants/config');
|
|
8
8
|
const { isSandbox } = require('../accountTypes');
|
|
9
9
|
|
|
10
|
-
const i18nKey = '
|
|
10
|
+
const i18nKey = 'lib.prompts.sandboxesPrompt';
|
|
11
11
|
|
|
12
12
|
const mapSandboxAccountChoices = portals =>
|
|
13
13
|
portals
|
|
@@ -5,7 +5,7 @@ const {
|
|
|
5
5
|
const { promptUser } = require('./promptUtils');
|
|
6
6
|
const { i18n } = require('../lang');
|
|
7
7
|
|
|
8
|
-
const i18nKey = '
|
|
8
|
+
const i18nKey = 'lib.prompts.setAsDefaultAccountPrompt';
|
|
9
9
|
|
|
10
10
|
const setAsDefaultAccountPrompt = async accountName => {
|
|
11
11
|
const config = getConfig();
|
|
@@ -3,7 +3,7 @@ const { getCwd } = require('@hubspot/local-dev-lib/path');
|
|
|
3
3
|
const { promptUser } = require('./promptUtils');
|
|
4
4
|
const { i18n } = require('../lang');
|
|
5
5
|
|
|
6
|
-
const i18nKey = '
|
|
6
|
+
const i18nKey = 'lib.prompts.uploadPrompt';
|
|
7
7
|
|
|
8
8
|
const uploadPrompt = (promptOptions = {}) => {
|
|
9
9
|
return promptUser([
|
package/lib/sandboxCreate.js
CHANGED
|
@@ -36,7 +36,7 @@ const {
|
|
|
36
36
|
HUBSPOT_ACCOUNT_TYPES,
|
|
37
37
|
} = require('@hubspot/local-dev-lib/constants/config');
|
|
38
38
|
|
|
39
|
-
const i18nKey = '
|
|
39
|
+
const i18nKey = 'lib.sandbox.create';
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* @param {String} env - Environment (QA/Prod)
|
|
@@ -83,10 +83,9 @@ const saveSandboxToConfig = async (env, result, force = false) => {
|
|
|
83
83
|
if (!force) {
|
|
84
84
|
logger.log('');
|
|
85
85
|
logger.warn(
|
|
86
|
-
i18n(
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
)
|
|
86
|
+
i18n(`lib.prompts.enterAccountNamePrompt.errors.accountNameExists`, {
|
|
87
|
+
name: nameForConfig,
|
|
88
|
+
})
|
|
90
89
|
);
|
|
91
90
|
const { name: promptName } = await enterAccountNamePrompt(
|
|
92
91
|
nameForConfig + `_${result.sandbox.sandboxHubId}`
|
package/lib/sandboxSync.js
CHANGED
|
@@ -21,7 +21,7 @@ const { getSandboxTypeAsString } = require('./sandboxes');
|
|
|
21
21
|
const { getAccountId } = require('@hubspot/local-dev-lib/config');
|
|
22
22
|
const { uiAccountDescription } = require('./ui');
|
|
23
23
|
|
|
24
|
-
const i18nKey = '
|
|
24
|
+
const i18nKey = 'lib.sandbox.sync';
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* @param {Object} accountConfig - Account config of sandbox portal
|
package/lib/sandboxes.js
CHANGED
|
@@ -103,9 +103,7 @@ const getSyncTypesWithContactRecordsPrompt = async (
|
|
|
103
103
|
{
|
|
104
104
|
name: 'contactRecordsSyncPrompt',
|
|
105
105
|
type: 'confirm',
|
|
106
|
-
message: i18n(
|
|
107
|
-
`cli.lib.sandbox.sync.confirm.syncContactRecords.${langKey}`
|
|
108
|
-
),
|
|
106
|
+
message: i18n(`lib.sandbox.sync.confirm.syncContactRecords.${langKey}`),
|
|
109
107
|
},
|
|
110
108
|
]);
|
|
111
109
|
if (!contactRecordsSyncPrompt) {
|
|
@@ -138,7 +136,7 @@ const validateSandboxUsageLimits = async (accountConfig, sandboxType, env) => {
|
|
|
138
136
|
if (hasDevelopmentSandboxes) {
|
|
139
137
|
throw new Error(
|
|
140
138
|
i18n(
|
|
141
|
-
`
|
|
139
|
+
`lib.sandbox.create.failure.alreadyInConfig.developer.${
|
|
142
140
|
plural ? 'other' : 'one'
|
|
143
141
|
}`,
|
|
144
142
|
{
|
|
@@ -151,7 +149,7 @@ const validateSandboxUsageLimits = async (accountConfig, sandboxType, env) => {
|
|
|
151
149
|
const baseUrl = getHubSpotWebsiteOrigin(env);
|
|
152
150
|
throw new Error(
|
|
153
151
|
i18n(
|
|
154
|
-
`
|
|
152
|
+
`lib.sandbox.create.failure.limit.developer.${
|
|
155
153
|
plural ? 'other' : 'one'
|
|
156
154
|
}`,
|
|
157
155
|
{
|
|
@@ -175,7 +173,7 @@ const validateSandboxUsageLimits = async (accountConfig, sandboxType, env) => {
|
|
|
175
173
|
if (hasStandardSandboxes) {
|
|
176
174
|
throw new Error(
|
|
177
175
|
i18n(
|
|
178
|
-
`
|
|
176
|
+
`lib.sandbox.create.failure.alreadyInConfig.standard.${
|
|
179
177
|
plural ? 'other' : 'one'
|
|
180
178
|
}`,
|
|
181
179
|
{
|
|
@@ -188,7 +186,7 @@ const validateSandboxUsageLimits = async (accountConfig, sandboxType, env) => {
|
|
|
188
186
|
const baseUrl = getHubSpotWebsiteOrigin(env);
|
|
189
187
|
throw new Error(
|
|
190
188
|
i18n(
|
|
191
|
-
`
|
|
189
|
+
`lib.sandbox.create.failure.limit.standard.${
|
|
192
190
|
plural ? 'other' : 'one'
|
|
193
191
|
}`,
|
|
194
192
|
{
|
|
@@ -229,7 +227,7 @@ function pollSyncTaskStatus(
|
|
|
229
227
|
syncStatusUrl,
|
|
230
228
|
allowEarlyTermination = true
|
|
231
229
|
) {
|
|
232
|
-
const i18nKey = '
|
|
230
|
+
const i18nKey = 'lib.sandbox.sync.types';
|
|
233
231
|
const progressBar = CliProgressMultibarManager.init();
|
|
234
232
|
const mergeTasks = {
|
|
235
233
|
'lead-flows': 'forms', // lead-flows are a subset of forms. We combine these in the UI as a single item, so we want to merge here for consistency.
|
|
@@ -244,7 +242,7 @@ function pollSyncTaskStatus(
|
|
|
244
242
|
logger.log('Exiting, sync will continue in the background.');
|
|
245
243
|
logger.log('');
|
|
246
244
|
logger.log(
|
|
247
|
-
i18n('
|
|
245
|
+
i18n('lib.sandbox.sync.info.syncStatus', {
|
|
248
246
|
url: syncStatusUrl,
|
|
249
247
|
})
|
|
250
248
|
);
|
package/lib/ui/git.js
CHANGED
|
@@ -3,7 +3,7 @@ const { checkGitInclusion } = require('@hubspot/local-dev-lib/gitignore');
|
|
|
3
3
|
const { logger } = require('@hubspot/local-dev-lib/logger');
|
|
4
4
|
const { i18n } = require('../lang');
|
|
5
5
|
|
|
6
|
-
const i18nKey = '
|
|
6
|
+
const i18nKey = 'lib.ui.git';
|
|
7
7
|
|
|
8
8
|
function checkAndWarnGitInclusion(configPath) {
|
|
9
9
|
try {
|
package/lib/ui/index.js
CHANGED
|
@@ -122,7 +122,7 @@ const uiCommandReference = command => {
|
|
|
122
122
|
};
|
|
123
123
|
|
|
124
124
|
const uiFeatureHighlight = (commands, title) => {
|
|
125
|
-
const i18nKey = '
|
|
125
|
+
const i18nKey = 'lib.ui.featureHighlight';
|
|
126
126
|
|
|
127
127
|
uiInfoSection(title ? title : i18n(`${i18nKey}.defaultTitle`), () => {
|
|
128
128
|
commands.forEach((c, i) => {
|
|
@@ -140,7 +140,7 @@ const uiFeatureHighlight = (commands, title) => {
|
|
|
140
140
|
};
|
|
141
141
|
|
|
142
142
|
const uiBetaTag = (message, log = true) => {
|
|
143
|
-
const i18nKey = '
|
|
143
|
+
const i18nKey = 'lib.ui';
|
|
144
144
|
|
|
145
145
|
const terminalUISupport = getTerminalUISupport();
|
|
146
146
|
const tag = i18n(`${i18nKey}.betaTag`);
|
|
@@ -3,7 +3,7 @@ const chalk = require('chalk');
|
|
|
3
3
|
const { logger, Styles } = require('@hubspot/local-dev-lib/logger');
|
|
4
4
|
const { i18n } = require('../lang');
|
|
5
5
|
|
|
6
|
-
const i18nKey = '
|
|
6
|
+
const i18nKey = 'lib.ui.serverlessFunctionLogs';
|
|
7
7
|
|
|
8
8
|
const SEPARATOR = ' - ';
|
|
9
9
|
const LOG_STATUS_COLORS = {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hubspot/cli",
|
|
3
|
-
"version": "5.2.1-beta.
|
|
3
|
+
"version": "5.2.1-beta.4",
|
|
4
4
|
"description": "CLI for working with HubSpot",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"url": "https://github.com/HubSpot/hubspot-cms-tools"
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@hubspot/local-dev-lib": "1.0
|
|
12
|
-
"@hubspot/serverless-dev-runtime": "5.2.1-beta.
|
|
13
|
-
"@hubspot/theme-preview-dev-server": "0.0.
|
|
14
|
-
"@hubspot/ui-extensions-dev-server": "0.8.
|
|
11
|
+
"@hubspot/local-dev-lib": "1.1.0",
|
|
12
|
+
"@hubspot/serverless-dev-runtime": "5.2.1-beta.4",
|
|
13
|
+
"@hubspot/theme-preview-dev-server": "0.0.5",
|
|
14
|
+
"@hubspot/ui-extensions-dev-server": "0.8.16",
|
|
15
15
|
"archiver": "^5.3.0",
|
|
16
16
|
"chalk": "^4.1.2",
|
|
17
17
|
"chokidar": "^3.0.1",
|
|
@@ -45,5 +45,5 @@
|
|
|
45
45
|
"publishConfig": {
|
|
46
46
|
"access": "public"
|
|
47
47
|
},
|
|
48
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "59dbc8bff2ca377c95e1eea4dcc52389e98ac644"
|
|
49
49
|
}
|