Skip to content

Commit

Permalink
Merge pull request #211 from sharafdin/sharafdin
Browse files Browse the repository at this point in the history
added: JS-MongoDB-Mongoose-Auth-Template in yonode package
  • Loading branch information
sharafdin authored Feb 27, 2024
2 parents aa303a5 + 4ee6421 commit 29cb47c
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/yonode/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/yonode/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
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 29cb47c

Please sign in to comment.