diff --git a/bin/cli.js b/bin/cli.js index 73fe4c5..6d474dc 100644 --- a/bin/cli.js +++ b/bin/cli.js @@ -26,10 +26,10 @@ console.log(`Installing dependencies for ${repoName}`); const installedDeps = runCommand(installDepsCommand); if(!installedDeps) process.exit(-1); +const deleteFolders = isWin ? runCommand(deleteFoldersCommandWindows) : runCommand(deleteFoldersCommand); +if(!deleteFolders) process.exit(-1); + console.log("Congratulations! You are ready. Follow the following commands to start"); console.log(`cd ${repoName}`); console.log('Create a .env file with ENV=development(defauld: production), PORT=3000 (default: 80), PUBLIC_URL=your_public_url(optional)(default: /)'); console.log(`Then you can run: npm start:dev`); - -const deleteFolders = isWin ? runCommand(deleteFoldersCommandWindows) : runCommand(deleteFoldersCommand); -if(!deleteFolders) process.exit(-1); \ No newline at end of file diff --git a/package.json b/package.json index d7a68ed..53b008d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@aleleba/create-react-ssr", - "version": "3.0.5", + "version": "3.0.6", "description": "Starter Kit of server side render of react", "bin": "./bin/cli.js", "main": "src/server/index",