-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathprogress.js
More file actions
28 lines (21 loc) · 901 Bytes
/
progress.js
File metadata and controls
28 lines (21 loc) · 901 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import ora from 'ora';
const showProgress = async (projectName, templatePath) => {
const spinner = ora('Initializing project...').start();
const steps = [
{ text: 'Creating project directory...', delay: 800 },
{ text: 'Copying template files...', delay: 1000 },
{ text: 'Setting up project structure...', delay: 800 },
{ text: 'Installing dependencies...', delay: 1200 },
{ text: 'Finalizing setup...', delay: 800 }
];
for (const step of steps) {
spinner.text = step.text;
await new Promise(resolve => setTimeout(resolve, step.delay));
}
spinner.succeed(`✅ Project "${projectName}" created successfully!
📋 Next Steps:
npm install | bun install | pnpm install
npm run dev | bun run dev | pnpm run dev
💡 Check the project README for setup details and configuration.`);
};
export default showProgress;