@hubspot/cli 7.7.14-experimental.0 → 7.7.15-experimental.0
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/lang/en.d.ts
CHANGED
|
@@ -2795,6 +2795,7 @@ Run ${string} to upgrade to version ${string}`;
|
|
|
2795
2795
|
readonly enterName: "[--name] Give your project a name: ";
|
|
2796
2796
|
readonly enterDest: "[--dest] Enter the folder to create the project in:";
|
|
2797
2797
|
readonly selectTemplate: "[--template] Choose a project template: ";
|
|
2798
|
+
readonly features: "[--features] Which features would you like your app to include?";
|
|
2798
2799
|
readonly errors: {
|
|
2799
2800
|
readonly nameRequired: "A project name is required";
|
|
2800
2801
|
readonly destRequired: "A project dest is required";
|
package/lang/en.js
CHANGED
|
@@ -2793,6 +2793,7 @@ exports.lib = {
|
|
|
2793
2793
|
enterName: '[--name] Give your project a name: ',
|
|
2794
2794
|
enterDest: '[--dest] Enter the folder to create the project in:',
|
|
2795
2795
|
selectTemplate: '[--template] Choose a project template: ',
|
|
2796
|
+
features: '[--features] Which features would you like your app to include?',
|
|
2796
2797
|
errors: {
|
|
2797
2798
|
nameRequired: 'A project name is required',
|
|
2798
2799
|
destRequired: 'A project dest is required',
|
|
@@ -90,8 +90,10 @@ async function createProjectPrompt(promptOptions, projectTemplates, componentTem
|
|
|
90
90
|
},
|
|
91
91
|
{
|
|
92
92
|
name: 'componentTemplates',
|
|
93
|
-
message:
|
|
94
|
-
when:
|
|
93
|
+
message: en_1.lib.prompts.createProjectPrompt.features,
|
|
94
|
+
when: !promptOptions.features &&
|
|
95
|
+
createProjectFromComponents &&
|
|
96
|
+
selectedComponents.length === 0,
|
|
95
97
|
type: 'checkbox',
|
|
96
98
|
choices: componentTemplates,
|
|
97
99
|
},
|
|
@@ -84,9 +84,8 @@ class CreateProjectTool extends types_1.Tool {
|
|
|
84
84
|
content,
|
|
85
85
|
};
|
|
86
86
|
}
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
}
|
|
87
|
+
// Always pass features, even if it is an empty array to bypass the prompts
|
|
88
|
+
command = (0, command_1.addFlag)(command, 'features', features || []);
|
|
90
89
|
try {
|
|
91
90
|
const { stdout, stderr } = await (0, project_1.runCommandInDir)(absoluteCurrentWorkingDirectory, command);
|
|
92
91
|
return {
|
package/package.json
CHANGED