create-payload-app 0.3.32 → 0.3.33
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/utils/messages.js +2 -2
- package/package.json +1 -1
package/dist/utils/messages.js
CHANGED
@@ -61,7 +61,7 @@ function helpMessage() {
|
|
61
61
|
case 0: return [4 /*yield*/, (0, templates_1.getValidTemplates)()];
|
62
62
|
case 1:
|
63
63
|
validTemplates = _a.sent();
|
64
|
-
return [2 /*return*/, (0, chalk_1.default)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n {bold USAGE}\n\n {dim $} {bold npx create-payload-app}\n {dim $} {bold npx create-payload-app} my-project\n {dim $} {bold npx create-payload-app} -n my-project -t blog\n\n {bold OPTIONS}\n\n -n {underline my-payload-app}
|
64
|
+
return [2 /*return*/, (0, chalk_1.default)(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n {bold USAGE}\n\n {dim $} {bold npx create-payload-app}\n {dim $} {bold npx create-payload-app} my-project\n {dim $} {bold npx create-payload-app} -n my-project -t blog\n\n {bold OPTIONS}\n\n -n {underline my-payload-app} Set project name\n -t {underline template_name} Choose specific template\n\n {dim Available templates: ", "}\n\n --use-npm Use npm to install dependencies\n --no-deps Do not install any dependencies\n -h Show help\n"], ["\n {bold USAGE}\n\n {dim $} {bold npx create-payload-app}\n {dim $} {bold npx create-payload-app} my-project\n {dim $} {bold npx create-payload-app} -n my-project -t blog\n\n {bold OPTIONS}\n\n -n {underline my-payload-app} Set project name\n -t {underline template_name} Choose specific template\n\n {dim Available templates: ", "}\n\n --use-npm Use npm to install dependencies\n --no-deps Do not install any dependencies\n -h Show help\n"])), formatTemplates(validTemplates))];
|
65
65
|
}
|
66
66
|
});
|
67
67
|
});
|
@@ -69,7 +69,7 @@ function helpMessage() {
|
|
69
69
|
exports.helpMessage = helpMessage;
|
70
70
|
function formatTemplates(templates) {
|
71
71
|
return "\n\n".concat(spacer).concat(templates
|
72
|
-
.map(function (t) { return "".concat(t.name).concat(' '.repeat(
|
72
|
+
.map(function (t) { return "".concat(t.name).concat(' '.repeat(28 - t.name.length)).concat(t.description); })
|
73
73
|
.join("\n".concat(spacer)));
|
74
74
|
}
|
75
75
|
function successMessage(projectDir, packageManager) {
|