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.
Files changed (2) hide show
  1. package/dist/index.js +16 -16
  2. 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.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("Initialized a git repository.");
399
+ console.log(logText("Initializing git repository."));
398
400
  console.log();
399
401
  }
400
- console.log(`${import_chalk5.default.green("Success!")} Created ${appName} at ${root}`);
401
- console.log(import_chalk5.default.bold(" To launch your app, run:"));
402
- console.log();
403
- console.log(import_chalk5.default.cyan(" cd"), appName);
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(import_chalk5.default.bold(" Next steps:"));
407
+ console.log("Next steps:");
407
408
  console.log();
408
- console.log("- Go to http://localhost:3000/admin to enter edit-mode");
409
- console.log("- Edit some content on http://localhost:3000 (See https://tina.io/docs/using-tina-editor )");
410
- console.log("- Check out our concept docs, to learn how Tina powers the starters under the hood. (See https://tina.io/docs/schema/)");
411
- console.log("- Learn how Tina can be extended to create new field components. (See https://tina.io/docs/advanced/extending-tina/) ");
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:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-tina-app",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",