Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion packages/springboard/create-springboard-app/src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ program
let packageManager = 'npm';
try {
execSync('pnpm --version', {cwd: process.cwd(), stdio: 'ignore'});
console.log('Using pnpm as the package manager\n');
packageManager = 'pnpm';
} catch (error) {
}
Expand All @@ -51,6 +50,7 @@ program
'node_modules',
'dist',
'data/kv_data.json',
'data/kv_data.db',
];

writeFileSync('./.gitignore', gitIgnore.join('\n'), {flag: 'a'});
Expand Down Expand Up @@ -80,6 +80,10 @@ program

writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2));

execSync('git init', {cwd: process.cwd()});
execSync('git add .', {cwd: process.cwd()});
execSync('git commit -m "Initial commit"', {cwd: process.cwd()});

console.log('Project created successfully! Run the following to start the development server:\n');
console.log('npm run dev\n');
});
Expand Down
Loading