Skip to content

Commit

Permalink
Y2024
Browse files Browse the repository at this point in the history
  • Loading branch information
vprtsingh committed Sep 8, 2024
1 parent dca8928 commit bddbb0a
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions src/packages/create-mernjs-app/lib/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,19 @@ const Helpers = require('./utils/Helpers')
module.exports = async (projectname, { project_type, template }) => {
const currentWorkingDir = process.cwd()
let templates = ""
if (template === 'library') {
templates = 'library'
} else if (template === 'snippets') {
templates = 'snippets'
} else {
templates = 'app'
switch (template) {
case "library":
templates = "library"
break;
case "package":
templates = "package"
break;
case "snippets":
templates = "snippets"
break;
default:
templates = 'app'
break;
}
console.log(' ')
console.log(chalk.hex('#4c84ff')(`Creating a new ${chalk.yellow(projectname)} project in`), chalk.green(`${currentWorkingDir}/${projectname}`))
Expand Down

0 comments on commit bddbb0a

Please sign in to comment.