create-tigra 2.0.0 → 2.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.
@@ -124,11 +124,11 @@ async function main() {
124
124
  program
125
125
  .name('create-tigra')
126
126
  .description('Create a production-ready full-stack app with Next.js + Fastify + Prisma + Redis')
127
- .version('2.0.0')
127
+ .version('2.0.1')
128
128
  .argument('[project-name]', 'Name for your new project')
129
129
  .action(async (projectNameArg) => {
130
130
  console.log();
131
- console.log(chalk.bold(' Create Tigra') + chalk.dim(' v2.0.0'));
131
+ console.log(chalk.bold(' Create Tigra') + chalk.dim(' v2.0.1'));
132
132
  console.log();
133
133
 
134
134
  let projectName = projectNameArg;
@@ -205,34 +205,52 @@ async function main() {
205
205
  }
206
206
 
207
207
  // Print next steps
208
+ const dim = chalk.dim;
209
+ const bold = chalk.bold;
210
+ const cyan = chalk.cyan;
211
+ const green = chalk.green;
212
+ const line = dim(' ─────────────────────────────────────────');
213
+
214
+ console.log();
215
+ console.log(green.bold(' ✓ Created ') + cyan.bold(projectName) + dim(` at ${targetDir}`));
216
+ console.log();
217
+ console.log(' ┌─────────────────────────────────────────┐');
218
+ console.log(' │' + bold(' Getting Started ') + '│');
219
+ console.log(' └─────────────────────────────────────────┘');
220
+ console.log();
221
+ console.log(bold(' SERVER') + dim(' cd ') + cyan(`${projectName}/server`));
222
+ console.log();
223
+ console.log(cyan(' 1 ') + 'Install & start infrastructure');
224
+ console.log(dim(' npm install'));
225
+ console.log(dim(' cp .env.example .env'));
226
+ console.log(dim(' npm run docker:up'));
227
+ console.log();
228
+ console.log(cyan(' 2 ') + 'Set up database');
229
+ console.log(dim(' npm run prisma:generate'));
230
+ console.log(dim(' npm run prisma:migrate:dev -- --name init'));
208
231
  console.log();
209
- console.log(chalk.green.bold(` Success!`) + ` Created ${chalk.cyan(projectName)} at ${chalk.dim(targetDir)}`);
232
+ console.log(cyan(' 3 ') + 'Start the server');
233
+ console.log(dim(' npm run dev'));
210
234
  console.log();
211
- console.log(chalk.bold(' Next steps:'));
235
+ console.log(bold(' CLIENT') + dim(' (new terminal) cd ') + cyan(`${projectName}/client`));
212
236
  console.log();
213
- console.log(chalk.cyan(' 1.') + ' Start infrastructure:');
214
- console.log(chalk.dim(` cd ${projectName}/server`));
215
- console.log(chalk.dim(' docker compose up -d'));
237
+ console.log(cyan(' 4 ') + 'Start the client');
238
+ console.log(dim(' npm install'));
239
+ console.log(dim(' cp .env.example .env'));
240
+ console.log(dim(' npm run dev'));
216
241
  console.log();
217
- console.log(chalk.cyan(' 2.') + ' Install server dependencies & set up database:');
218
- console.log(chalk.dim(' npm install'));
219
- console.log(chalk.dim(' cp .env.example .env'));
220
- console.log(chalk.dim(' npm run prisma:generate'));
221
- console.log(chalk.dim(' npm run prisma:migrate:dev -- --name init'));
242
+ console.log(line);
222
243
  console.log();
223
- console.log(chalk.cyan(' 3.') + ' Start the server:');
224
- console.log(chalk.dim(' npm run dev'));
244
+ console.log(dim(' App ') + cyan('http://localhost:3000'));
245
+ console.log(dim(' API ') + cyan('http://localhost:8000'));
246
+ console.log(dim(' phpMyAdmin ') + cyan('http://localhost:8080'));
247
+ console.log(dim(' Redis CMD ') + cyan('http://localhost:8081'));
225
248
  console.log();
226
- console.log(chalk.cyan(' 4.') + ` In a ${chalk.bold('new terminal')}, set up the client:`);
227
- console.log(chalk.dim(` cd ${projectName}/client`));
228
- console.log(chalk.dim(' npm install'));
229
- console.log(chalk.dim(' cp .env.example .env'));
230
- console.log(chalk.dim(' npm run dev'));
249
+ console.log(line);
231
250
  console.log();
232
- console.log(chalk.dim(' Server running at: ') + chalk.cyan('http://localhost:8000'));
233
- console.log(chalk.dim(' Client running at: ') + chalk.cyan('http://localhost:3000'));
251
+ console.log(dim(' Tip: ') + 'npm run docker:down' + dim(' to stop infrastructure'));
234
252
  console.log();
235
- console.log(chalk.dim(' Happy coding!'));
253
+ console.log(dim(' Happy coding! 🚀'));
236
254
  console.log();
237
255
  });
238
256
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-tigra",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "type": "module",
5
5
  "description": "Create a production-ready full-stack app with Next.js 16 + Fastify 5 + Prisma + Redis",
6
6
  "bin": {
@@ -1,6 +1,8 @@
1
1
  # WARNING: These credentials are for LOCAL DEVELOPMENT ONLY.
2
2
  # Change all passwords and secrets before using in any shared or production environment.
3
3
 
4
+ name: {{PROJECT_NAME}}
5
+
4
6
  services:
5
7
  mysql:
6
8
  image: mysql:8.0