create-marp-slides
Version:
CLI tool for scaffolding Marp presentation projects with GitHub Pages deployment
43 lines (34 loc) • 1.93 kB
JavaScript
import chalk from 'chalk';
export function displaySuccessMessage(projectName) {
console.log();
console.log(chalk.green('✅ プロジェクトの作成が完了しました!'));
console.log();
console.log(chalk.bold('次に、以下の手順でスライドを公開しましょう:'));
console.log();
console.log(chalk.cyan('1. 作成されたディレクトリに移動します'));
console.log(chalk.gray(` cd ${projectName}`));
console.log();
console.log(chalk.cyan('2. 依存関係をインストールします'));
console.log(chalk.gray(' npm install'));
console.log();
console.log(chalk.cyan('3. Git を初期化して、最初のコミットを作成します'));
console.log(chalk.gray(' git init'));
console.log(chalk.gray(' git add .'));
console.log(chalk.gray(' git commit -m "Initial commit"'));
console.log();
console.log(chalk.cyan(`4. GitHub でリポジトリを新規作成します (例: ${projectName})`));
console.log(chalk.gray(' https://github.com/new'));
console.log();
console.log(chalk.cyan('5. ローカルリポジトリとリモートリポジトリを紐付けて push します'));
console.log(chalk.gray(' git remote add origin <GitHub リポジトリの URL>'));
console.log(chalk.gray(' git push -u origin main'));
console.log();
console.log(chalk.cyan('6. GitHub リポジトリの Settings > Pages を開き、Source を「GitHub Actions」に設定します。'));
console.log();
console.log(chalk.green('あとは slides.md を編集して push するだけです!🚀'));
console.log();
console.log(chalk.yellow('開発コマンド:'));
console.log(chalk.gray(' npm run build # スライドをビルド'));
console.log(chalk.gray(' npm run dev # 開発サーバーを起動'));
console.log(chalk.gray(' npm run preview # ビルドされたスライドをプレビュー'));
}