create-payload-app 0.3.31 → 0.3.33
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/lib/templates.js +3 -3
- package/dist/utils/messages.js +2 -2
- package/package.json +1 -1
package/dist/lib/templates.js
CHANGED
@@ -106,19 +106,19 @@ function getValidTemplates() {
|
|
106
106
|
{
|
107
107
|
name: 'cloud-template-blank',
|
108
108
|
type: 'starter',
|
109
|
-
url: 'https://github.com/payloadcms/
|
109
|
+
url: 'https://github.com/payloadcms/template-blank',
|
110
110
|
description: 'Blank template for Payload Cloud',
|
111
111
|
},
|
112
112
|
{
|
113
113
|
name: 'cloud-template-website',
|
114
114
|
type: 'starter',
|
115
|
-
url: 'https://github.com/payloadcms/
|
115
|
+
url: 'https://github.com/payloadcms/template-website',
|
116
116
|
description: 'Website template for Payload Cloud',
|
117
117
|
},
|
118
118
|
{
|
119
119
|
name: 'cloud-template-ecommerce',
|
120
120
|
type: 'starter',
|
121
|
-
url: 'https://github.com/payloadcms/
|
121
|
+
url: 'https://github.com/payloadcms/template-ecommerce',
|
122
122
|
description: 'E-commerce template for Payload Cloud',
|
123
123
|
},
|
124
124
|
];
|
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) {
|