arcadible 1.0.15 → 1.0.17
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/arc-init.js +3 -0
- package/package.json +1 -1
- package/src/phrase.js +12 -0
package/bin/arc-init.js
CHANGED
|
@@ -84,6 +84,9 @@ const start = function (argv) {
|
|
|
84
84
|
} else if (!quiet) {
|
|
85
85
|
sw.stop(true);
|
|
86
86
|
log.hs(phrase.initialized());
|
|
87
|
+
if (argv.patch) {
|
|
88
|
+
log.p(phrase.initializedNoStarter());
|
|
89
|
+
}
|
|
87
90
|
print(project, { nl: true, toml: true });
|
|
88
91
|
}
|
|
89
92
|
// degit sometimes hangs, so exit once stdout is written.
|
package/package.json
CHANGED
package/src/phrase.js
CHANGED
|
@@ -320,6 +320,17 @@ const initialized = function () {
|
|
|
320
320
|
|
|
321
321
|
// [function]
|
|
322
322
|
|
|
323
|
+
// arc init's reason, when the folder exists: it gets only arcadible.toml,
|
|
324
|
+
// whatever -y or -t asked for.
|
|
325
|
+
const initializedNoStarter = function () {
|
|
326
|
+
return [
|
|
327
|
+
"No starter added: the folder exists.",
|
|
328
|
+
`To start from one, run \`${TOOL} init <name>\`.`,
|
|
329
|
+
];
|
|
330
|
+
};
|
|
331
|
+
|
|
332
|
+
// [function]
|
|
333
|
+
|
|
323
334
|
// the heading of arc validate's list of issues, warnings, or references:
|
|
324
335
|
// `2 issues:`
|
|
325
336
|
const listed = function (count, noun) {
|
|
@@ -1182,6 +1193,7 @@ module.exports = {
|
|
|
1182
1193
|
imageWidthMax,
|
|
1183
1194
|
imageWidthMin,
|
|
1184
1195
|
initialized,
|
|
1196
|
+
initializedNoStarter,
|
|
1185
1197
|
issuesAfterBuild,
|
|
1186
1198
|
issuesFound,
|
|
1187
1199
|
listed,
|