11#!/usr/bin/env node
22
3- const { execSync } = require ( ' child_process' ) ;
3+ const { execSync } = require ( " child_process" ) ;
44
55const runCommand = ( command ) => {
66 try {
7- execSync ( `${ command } ` , { stdio : ' inherit' } ) ;
7+ execSync ( `${ command } ` , { stdio : " inherit" } ) ;
88 } catch ( err ) {
99 console . error ( err ) ;
1010 return false ;
@@ -13,24 +13,22 @@ const runCommand = (command) => {
1313} ;
1414
1515const repoName = process . argv [ 2 ] ;
16- const gitCheckoutCommand = `git clone https://github.com/Bhanu1776/Nextjs14 -Starter-Template.git ${ repoName } ` ;
16+ const gitCheckoutCommand = `git clone https://github.com/Bhanu1776/Nextjs15 -Starter-Template.git ${ repoName } ` ;
1717const installDepsCommand = `cd ${ repoName } && rm -rf bin .github && rm .npmrc CHANGELOG.md && npm install ` ;
1818
1919console . log ( `Init project '${ repoName } ' ✨` ) ;
2020const checkedOut = runCommand ( gitCheckoutCommand ) ;
2121if ( ! checkedOut ) process . exit ( - 1 ) ;
2222
23- console . log ( ' Installing dependencies...🔥' ) ;
23+ console . log ( " Installing dependencies...🔥" ) ;
2424const installDeps = runCommand ( installDepsCommand ) ;
2525if ( ! installDeps ) process . exit ( - 1 ) ;
2626
27- console . log (
28- 'SaxX! You are ready. Follow the following commands to start 🚀'
29- ) ;
30- console . log ( '' ) ;
27+ console . log ( "SaxX! You are ready. Follow the following commands to start 🚀" ) ;
28+ console . log ( "" ) ;
3129console . log ( `Make sure you follow below steps to start fresh:` ) ;
3230console . log ( `- Rename 'name' and 'author' fields in package.json` ) ;
3331console . log ( `- Change the author name in "LICENSE"` ) ;
3432console . log ( `- Change the title and description in "layout.tsx"` ) ;
3533console . log ( `- Modify the 'manifest' in public folder` ) ;
36- console . log ( `- Clean up the "README.md"` ) ;
34+ console . log ( `- Clean up the "README.md"` ) ;
0 commit comments