@appxdigital/appx-core 0.1.115 → 0.1.116
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/generate-controllers.js +1 -1
- package/dist/config/generate-modules.js +2 -2
- package/dist/config/generate-resolvers.js +1 -1
- package/dist/config/generate-services.js +1 -1
- package/dist/config/utils.d.ts +1 -0
- package/dist/config/utils.d.ts.map +1 -1
- package/dist/config/utils.js +7 -1
- package/package.json +1 -2
|
@@ -54,7 +54,7 @@ export class ${model}Controller extends CoreController<${model}> {
|
|
|
54
54
|
* Generate controllers for each model
|
|
55
55
|
*/
|
|
56
56
|
fs.readdirSync(modelsPath).forEach((folder) => {
|
|
57
|
-
if (
|
|
57
|
+
if (utils_1.IGNORE_FOLDERS.includes(folder))
|
|
58
58
|
return;
|
|
59
59
|
const modelName = (0, utils_1.kebabToPascalCase)(folder); // Capitalize model name e.g., 'Comment', 'Post'
|
|
60
60
|
const modelOutputPath = path.join(modulesOutputPath, folder);
|
|
@@ -94,7 +94,7 @@ const updateAppModule = () => {
|
|
|
94
94
|
* Iterate over the modules directory and add new imports to the AppModule
|
|
95
95
|
*/
|
|
96
96
|
fs.readdirSync(modulesOutputPath).forEach((folder) => {
|
|
97
|
-
if (
|
|
97
|
+
if (utils_1.IGNORE_FOLDERS.includes(folder))
|
|
98
98
|
return;
|
|
99
99
|
const modelName = (0, utils_1.kebabToPascalCase)(folder);
|
|
100
100
|
const moduleName = `${modelName}Module`;
|
|
@@ -129,7 +129,7 @@ const updateAppModule = () => {
|
|
|
129
129
|
* Generate modules for each model
|
|
130
130
|
*/
|
|
131
131
|
fs.readdirSync(modelsPath).forEach((folder) => {
|
|
132
|
-
if (
|
|
132
|
+
if (utils_1.IGNORE_FOLDERS.includes(folder))
|
|
133
133
|
return;
|
|
134
134
|
const modelName = (0, utils_1.kebabToPascalCase)(folder);
|
|
135
135
|
const modelOutputPath = path.join(modulesOutputPath, folder);
|
|
@@ -71,7 +71,7 @@ export class ${model}Resolver extends ${model}GenericResolver {
|
|
|
71
71
|
* Generate resolvers for each model
|
|
72
72
|
*/
|
|
73
73
|
fs.readdirSync(modelsPath).forEach((folder) => {
|
|
74
|
-
if (
|
|
74
|
+
if (utils_1.IGNORE_FOLDERS.includes(folder))
|
|
75
75
|
return;
|
|
76
76
|
const modelName = (0, utils_1.kebabToPascalCase)(folder);
|
|
77
77
|
const modelOutputPath = path.join(outputPath, folder);
|
|
@@ -49,7 +49,7 @@ export class ${model}Service extends CoreService<${model}> {
|
|
|
49
49
|
* Generate services for each model
|
|
50
50
|
*/
|
|
51
51
|
fs.readdirSync(modelsPath).forEach((folder) => {
|
|
52
|
-
if (
|
|
52
|
+
if (utils_1.IGNORE_FOLDERS.includes(folder))
|
|
53
53
|
return;
|
|
54
54
|
const modelName = (0, utils_1.kebabToPascalCase)(folder);
|
|
55
55
|
const modelOutputPath = path.join(servicesOutputPath, folder);
|
package/dist/config/utils.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/config/utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,QAAS,MAAM,WAK5C,CAAC;AAEF,eAAO,MAAM,qBAAqB,aAAc,MAAM,WAAW,MAAM,SAQtE,CAAC"}
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../src/config/utils.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,QAAS,MAAM,WAK5C,CAAC;AAEF,eAAO,MAAM,qBAAqB,aAAc,MAAM,WAAW,MAAM,SAQtE,CAAC;AAEF,eAAO,MAAM,cAAc,UAK1B,CAAC"}
|
package/dist/config/utils.js
CHANGED
|
@@ -23,7 +23,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
23
23
|
return result;
|
|
24
24
|
};
|
|
25
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.createFileIfNotExists = exports.kebabToPascalCase = void 0;
|
|
26
|
+
exports.IGNORE_FOLDERS = exports.createFileIfNotExists = exports.kebabToPascalCase = void 0;
|
|
27
27
|
const fs = __importStar(require("fs"));
|
|
28
28
|
const kebabToPascalCase = (str) => {
|
|
29
29
|
return str
|
|
@@ -43,3 +43,9 @@ const createFileIfNotExists = (filePath, content) => {
|
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
exports.createFileIfNotExists = createFileIfNotExists;
|
|
46
|
+
exports.IGNORE_FOLDERS = [
|
|
47
|
+
'prisma',
|
|
48
|
+
'schema.gql',
|
|
49
|
+
'session',
|
|
50
|
+
'user-refresh-token'
|
|
51
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appxdigital/appx-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.116",
|
|
4
4
|
"description": "Appx Core is a library that provides a set of tools to help you build your application faster.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -41,7 +41,6 @@
|
|
|
41
41
|
"@paralleldrive/cuid2": "~2.2.2",
|
|
42
42
|
"@types/bcrypt": "~5.0.2",
|
|
43
43
|
"@types/express": "~5.0.0",
|
|
44
|
-
"@types/express-session": "~1.18.0",
|
|
45
44
|
"argon2": "~0.41.1",
|
|
46
45
|
"class-transformer": "~0.5.1",
|
|
47
46
|
"class-validator": "~0.14.1",
|