create-puck-app 0.20.0-canary.755737e8 → 0.20.0-canary.f768aab9

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/index.js +27 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -17,6 +17,11 @@ const packageJson = JSON.parse(
17
17
  fs.readFileSync(path.join(__dirname, "./package.json"))
18
18
  );
19
19
 
20
+ const ansiColors = {
21
+ reset: "\x1b[0m",
22
+ cyan: "\x1b[36m",
23
+ };
24
+
20
25
  // Lifted from https://github.com/vercel/next.js/blob/c2d7bbd1b82c71808b99e9a7944fb16717a581db/packages/create-next-app/helpers/get-pkg-manager.ts
21
26
  function getPkgManager() {
22
27
  // eslint-disable-next-line turbo/no-undeclared-env-vars
@@ -71,11 +76,25 @@ program
71
76
  const questions = [
72
77
  ...beforeQuestions,
73
78
  {
74
- type: "input",
79
+ type: "list",
75
80
  name: "recipe",
76
81
  message: "Which recipe would you like to use?",
77
82
  required: true,
78
83
  default: "next",
84
+ choices: [
85
+ {
86
+ name: "Next.js",
87
+ value: "next",
88
+ },
89
+ {
90
+ name: "React Router",
91
+ value: "react-router",
92
+ },
93
+ {
94
+ name: "Remix",
95
+ value: "remix",
96
+ },
97
+ ],
79
98
  },
80
99
  ];
81
100
  const answers = await inquirer.prompt(questions);
@@ -178,5 +197,12 @@ program
178
197
  console.log("Failed to commit git changes");
179
198
  }
180
199
  }
200
+
201
+ console.log("\nDone! Now run:\n");
202
+ console.log(` cd ${appName}`);
203
+ console.log(` ${packageManager} run dev\n`);
204
+ console.log(
205
+ `⭐ Don't forget to star Puck on Github: ${ansiColors.cyan}https://github.com/puckeditor/puck${ansiColors.reset}`
206
+ );
181
207
  })
182
208
  .parse(process.argv);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-puck-app",
3
- "version": "0.20.0-canary.755737e8",
3
+ "version": "0.20.0-canary.f768aab9",
4
4
  "author": "Chris Villa <chris@puckeditor.com>",
5
5
  "repository": "measuredco/puck",
6
6
  "bugs": "https://github.com/measuredco/puck/issues",