create-tina-app 1.0.0 → 1.0.2

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 -22
  2. package/package.json +2 -2
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.2";
54
54
 
55
55
  // src/util/fileUtil.ts
56
56
  var import_fs_extra = __toModule(require("fs-extra"));
@@ -276,12 +276,6 @@ var EXAMPLES = [
276
276
  isInternal: false,
277
277
  gitURL: "https://github.com/tinacms/tina-cloud-starter"
278
278
  },
279
- {
280
- title: "Documentation Starter",
281
- value: "tina-docs-starter",
282
- isInternal: false,
283
- gitURL: "https://github.com/tinacms/tina-docs-starter"
284
- },
285
279
  {
286
280
  title: "Hugo Starter",
287
281
  value: "tina-hugo-starter",
@@ -316,6 +310,10 @@ var preRunChecks = () => {
316
310
  };
317
311
 
318
312
  // src/index.ts
313
+ var successText = import_chalk5.default.bold.green;
314
+ var linkText = import_chalk5.default.bold.cyan;
315
+ var cmdText = import_chalk5.default.inverse;
316
+ var logText = import_chalk5.default.italic.gray;
319
317
  var program = new import_commander.Command(name);
320
318
  var projectName = "";
321
319
  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 +386,24 @@ var run = async () => {
388
386
  process.exit(1);
389
387
  }
390
388
  await downloadExample(chosenExample, root);
391
- console.log("Installing packages. This might take a couple of minutes.");
389
+ console.log(logText("Installing packages. This might take a couple of minutes."));
392
390
  console.log();
393
391
  await install(root, null, { useYarn, isOnline: true });
394
- console.log(import_chalk5.default.green("Finished installing all packages"));
395
- console.log();
396
392
  if (tryGitInit(root)) {
397
- console.log("Initialized a git repository.");
393
+ console.log(logText("Initializing git repository."));
398
394
  console.log();
399
395
  }
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`)}`);
396
+ console.log(`${successText("Starter successfully created!")}`);
397
+ console.log(import_chalk5.default.bold("\nTo launch your app, run:\n"));
398
+ console.log(" " + cmdText(`cd ${appName}`));
399
+ console.log(` ${cmdText(`${displayedCommand} ${useYarn ? "" : "run "}dev`)}`);
405
400
  console.log();
406
- console.log(import_chalk5.default.bold(" Next steps:"));
401
+ console.log("Next steps:");
407
402
  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/)");
403
+ console.log(`\u2022 \u{1F4DD} Edit some content on ${linkText("http://localhost:3000")} (See ${linkText("https://tina.io/docs/using-tina-editor")})`);
404
+ console.log(`\u2022 \u{1F4D6} Learn the basics: ${linkText("https://tina.io/docs/schema/")}`);
405
+ console.log(`\u2022 \u{1F58C}\uFE0F Extend Tina with custom field components: ${linkText("https://tina.io/docs/advanced/extending-tina/")}`);
406
+ console.log(`\u2022 \u{1F680} Deploy to Production: ${linkText("https://tina.io/docs/tina-cloud/")}`);
413
407
  };
414
408
  run();
415
409
  // 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.2",
4
4
  "main": "dist/index.js",
5
5
  "files": [
6
6
  "dist",
@@ -34,7 +34,7 @@
34
34
  "typescript": "4.3.5"
35
35
  },
36
36
  "dependencies": {
37
- "@tinacms/metrics": "1.0.0",
37
+ "@tinacms/metrics": "1.0.1",
38
38
  "chalk": "^4.1.2",
39
39
  "commander": "^8.3.0",
40
40
  "cross-spawn": "^7.0.3",