create-tina-app 1.0.0 → 1.0.1
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/dist/index.js +16 -16
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -50,7 +50,7 @@ var import_path4 = __toModule(require("path"));
|
|
|
50
50
|
|
|
51
51
|
// package.json
|
|
52
52
|
var name = "create-tina-app";
|
|
53
|
-
var version = "1.0.
|
|
53
|
+
var version = "1.0.1";
|
|
54
54
|
|
|
55
55
|
// src/util/fileUtil.ts
|
|
56
56
|
var import_fs_extra = __toModule(require("fs-extra"));
|
|
@@ -316,6 +316,10 @@ var preRunChecks = () => {
|
|
|
316
316
|
};
|
|
317
317
|
|
|
318
318
|
// src/index.ts
|
|
319
|
+
var successText = import_chalk5.default.bold.green;
|
|
320
|
+
var linkText = import_chalk5.default.bold.cyan;
|
|
321
|
+
var cmdText = import_chalk5.default.inverse;
|
|
322
|
+
var logText = import_chalk5.default.italic.gray;
|
|
319
323
|
var program = new import_commander.Command(name);
|
|
320
324
|
var projectName = "";
|
|
321
325
|
program.version(version).option("-e, --example <example>", "Choose which example to start from").option("-d, --dir <dir>", "Choose which directory to run this script from").option("--noTelemetry", "Disable anonymous telemetry that is collected").arguments("[project-directory]").usage(`${import_chalk5.default.green("<project-directory>")} [options]`).action((name2) => {
|
|
@@ -388,28 +392,24 @@ var run = async () => {
|
|
|
388
392
|
process.exit(1);
|
|
389
393
|
}
|
|
390
394
|
await downloadExample(chosenExample, root);
|
|
391
|
-
console.log("Installing packages. This might take a couple of minutes.");
|
|
395
|
+
console.log(logText("Installing packages. This might take a couple of minutes."));
|
|
392
396
|
console.log();
|
|
393
397
|
await install(root, null, { useYarn, isOnline: true });
|
|
394
|
-
console.log(import_chalk5.default.green("Finished installing all packages"));
|
|
395
|
-
console.log();
|
|
396
398
|
if (tryGitInit(root)) {
|
|
397
|
-
console.log("
|
|
399
|
+
console.log(logText("Initializing git repository."));
|
|
398
400
|
console.log();
|
|
399
401
|
}
|
|
400
|
-
console.log(`${
|
|
401
|
-
console.log(import_chalk5.default.bold("
|
|
402
|
-
console.log();
|
|
403
|
-
console.log(
|
|
404
|
-
console.log(` ${import_chalk5.default.cyan(`${displayedCommand} ${useYarn ? "" : "run "}dev`)}`);
|
|
402
|
+
console.log(`${successText("Starter successfully created!")}`);
|
|
403
|
+
console.log(import_chalk5.default.bold("\nTo launch your app, run:\n"));
|
|
404
|
+
console.log(" " + cmdText(`cd ${appName}`));
|
|
405
|
+
console.log(` ${cmdText(`${displayedCommand} ${useYarn ? "" : "run "}dev`)}`);
|
|
405
406
|
console.log();
|
|
406
|
-
console.log(
|
|
407
|
+
console.log("Next steps:");
|
|
407
408
|
console.log();
|
|
408
|
-
console.log(
|
|
409
|
-
console.log(
|
|
410
|
-
console.log(
|
|
411
|
-
console.log(
|
|
412
|
-
console.log("- Make your site editable with Tina on production. (See https://tina.io/docs/tina-cloud/)");
|
|
409
|
+
console.log(`\u2022 \u{1F4DD} Edit some content on ${linkText("http://localhost:3000")} (See ${linkText("https://tina.io/docs/using-tina-editor")})`);
|
|
410
|
+
console.log(`\u2022 \u{1F4D6} Learn the basics: ${linkText("https://tina.io/docs/schema/")}`);
|
|
411
|
+
console.log(`\u2022 \u{1F58C}\uFE0F Extend Tina with custom field components: ${linkText("https://tina.io/docs/advanced/extending-tina/")}`);
|
|
412
|
+
console.log(`\u2022 \u{1F680} Deploy to Production: ${linkText("https://tina.io/docs/tina-cloud/")}`);
|
|
413
413
|
};
|
|
414
414
|
run();
|
|
415
415
|
// Annotate the CommonJS export names for ESM import in node:
|