Skip to content
This repository has been archived by the owner on Jan 31, 2025. It is now read-only.

Commit

Permalink
added: JS-MongoDB-Mongoose-Auth-Template in yonode package
Browse files Browse the repository at this point in the history
  • Loading branch information
sharafdin committed Feb 27, 2024
1 parent 4782589 commit cc488c0
Showing 1 changed file with 65 additions and 1 deletion.
66 changes: 65 additions & 1 deletion packages/yonode/src/lib/repoConditions.js
Original file line number Diff line number Diff line change
Expand Up @@ -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" &&
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit cc488c0

Please sign in to comment.