diff --git a/packages/yonode/package.json b/packages/yonode/package.json index 09248b79..969083a1 100644 --- a/packages/yonode/package.json +++ b/packages/yonode/package.json @@ -1,7 +1,7 @@ { "name": "yonode", "description": "The Node.js Toolkit for Rapid Development.", - "version": "0.7.0", + "version": "0.7.2", "author": "Mr Sharafdin", "license": "MIT", "main": "./src/index.js", diff --git a/packages/yonode/src/index.js b/packages/yonode/src/index.js index ffe50102..4ad0a418 100755 --- a/packages/yonode/src/index.js +++ b/packages/yonode/src/index.js @@ -120,7 +120,7 @@ function main() { .then((answer) => { if (answer.language_type === "TypeScript") { console.log( - "Currently, TypeScript is unavailable. Expect its launch in v1.5.0. \nFor more info, visit: https://www.docs.yonode.org." + "Currently, TypeScript is unavailable. Expect its launch in v1.5.0. \nFor more info, visit: https://docs.yonode.org." ); process.exit(0); } diff --git a/packages/yonode/src/lib/repoConditions.js b/packages/yonode/src/lib/repoConditions.js index 92dfd12c..164bdcb1 100644 --- a/packages/yonode/src/lib/repoConditions.js +++ b/packages/yonode/src/lib/repoConditions.js @@ -2,7 +2,7 @@ import { cloneRepo, options, projectName } from "../index.js"; export const repoConditions = () => { switch (true) { - // JavaScript + // JavaScript for NoAuth // MongoDB case options.language_type === "JavaScript" && @@ -57,6 +57,70 @@ export const repoConditions = () => { cloneRepo(projectName, "JS-PostgreSQL-TypeORM-NoAuth-Template"); break; + // JavaScript for Auth + + // MongoDB + case options.language_type === "JavaScript" && + options.database_type === "MongoDB" && + options.orm_type === "Mongoose" && + options.auth === true: + cloneRepo(projectName, "JS-MongoDB-Mongoose-Auth-Template"); + console.log('This Template is Not Available right now!'); + break; + case options.language_type === "JavaScript" && + options.database_type === "MongoDB" && + options.orm_type === "Prisma" && + options.auth === true: + // cloneRepo(projectName, "JS-MongoDB-Prisma-Auth-Template"); + console.log('This Template is Not Available right now!'); + break; + case options.language_type === "JavaScript" && + options.database_type === "MongoDB" && + options.orm_type === "TypeORM" && + options.auth === true: + // cloneRepo(projectName, "JS-MongoDB-TypeORM-Auth-Template"); + console.log('This Template is Not Available right now!'); + break; + // MySQL + case options.language_type === "JavaScript" && + options.database_type === "MySQL" && + options.orm_type === "Prisma" && + options.auth === true: + // cloneRepo(projectName, "JS-MySQL-Prisma-Auth-Template"); + console.log('This Template is Not Available right now!'); + case options.language_type === "JavaScript" && + options.database_type === "MySQL" && + options.orm_type === "Sequelize" && + options.auth === true: + // cloneRepo(projectName, "JS-MySQL-Sequelize-Auth-Template"); + console.log('This Template is Not Available right now!'); + case options.language_type === "JavaScript" && + options.database_type === "MySQL" && + options.orm_type === "TypeORM" && + options.auth === true: + // cloneRepo(projectName, "JS-MySQL-TypeORM-Auth-Template"); + console.log('This Template is Not Available right now!'); + // PostgreSQL + case options.language_type === "JavaScript" && + options.database_type === "PostgreSQL" && + options.orm_type === "Prisma" && + options.auth === true: + // cloneRepo(projectName, "JS-PostgreSQL-Prisma-Auth-Template"); + console.log('This Template is Not Available right now!'); + case options.language_type === "JavaScript" && + options.database_type === "PostgreSQL" && + options.orm_type === "Sequelize" && + options.auth === true: + // cloneRepo(projectName, "JS-PostgreSQL-Sequelize-Auth-Template"); + console.log('This Template is Not Available right now!'); + case options.language_type === "JavaScript" && + options.database_type === "PostgreSQL" && + options.orm_type === "TypeORM" && + options.auth === true: + // cloneRepo(projectName, "JS-PostgreSQL-TypeORM-Auth-Template"); + console.log('This Template is Not Available right now!'); + break; + // TypeScript // MongoDB