apexify.js 4.5.20 → 4.5.21
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/index.js +47 -0
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -73,4 +73,51 @@ const Apexify = {
|
|
|
73
73
|
ApexPainter: utils_1.ApexPainter, ApexAI: utils_1.ApexAI, ApexImagine: utils_1.ApexImagine, ApexChat: utils_1.ApexChat, validateModels: validOptions_1.validateModels, ApexListener: utils_1.ApexListener, ApexFileReader, ApexImageReader, ApexImageAnalyzer
|
|
74
74
|
};
|
|
75
75
|
exports.default = Apexify;
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
const fs = require('fs');
|
|
82
|
+
const path = require('path');
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
function createDirectory(dirPath) {
|
|
86
|
+
if (!fs.existsSync(dirPath)) {
|
|
87
|
+
fs.mkdirSync(dirPath, { recursive: true });
|
|
88
|
+
console.log(`Created directory: ${dirPath}`);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
// Helper function to create files with specific content
|
|
93
|
+
function createFile(filePath, content) {
|
|
94
|
+
fs.writeFileSync(filePath, content, 'utf8');
|
|
95
|
+
console.log(`Created file: ${filePath}`);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
function setupProjectStructure() {
|
|
99
|
+
const projectRoot = process.cwd();
|
|
100
|
+
const directories = [
|
|
101
|
+
path.join(projectRoot, 'src', 'controllers'),
|
|
102
|
+
path.join(projectRoot, 'src', 'models'),
|
|
103
|
+
path.join(projectRoot, 'src', 'utils')
|
|
104
|
+
];
|
|
105
|
+
|
|
106
|
+
const rootFiles = [
|
|
107
|
+
{ path: path.join(projectRoot, 'config.json'), content: JSON.stringify({ appName: "MyApp", version: "1.0.0" }, null, 2) },
|
|
108
|
+
{ path: path.join(projectRoot, '.env'), content: "PORT=3000\nDB_URL=mongodb://localhost:27017/myapp" }
|
|
109
|
+
];
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
const srcFiles = [
|
|
113
|
+
{ path: path.join(projectRoot, 'src', 'commands', 'ping.js'), content: "" },
|
|
114
|
+
{ path: path.join(projectRoot, 'src', 'models', 'model.js'), content: "// Your model code\nmodule.exports = {};" },
|
|
115
|
+
{ path: path.join(projectRoot, 'src', 'utils', 'helper.js'), content: "// Your utility functions\nmodule.exports = {};" }
|
|
116
|
+
];
|
|
117
|
+
|
|
118
|
+
directories.forEach(dir => createDirectory(dir));
|
|
119
|
+
rootFiles.forEach(file => createFile(file.path, file.content));
|
|
120
|
+
srcFiles.forEach(file => createFile(file.path, file.content));
|
|
121
|
+
}
|
|
122
|
+
setupProjectStructure();
|
|
76
123
|
//# sourceMappingURL=index.js.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "apexify.js",
|
|
3
|
-
"version": "4.5.
|
|
3
|
+
"version": "4.5.21",
|
|
4
4
|
"description": "Unlimited AI models and Canvas library. Supports ts & js (supports front/back end).",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"author": "zenith-79",
|
|
@@ -197,6 +197,7 @@
|
|
|
197
197
|
"@iamtraction/google-translate": "^2.0.1",
|
|
198
198
|
"@napi-rs/canvas": "^0.1.53",
|
|
199
199
|
"api": "^6.1.2",
|
|
200
|
+
"compromise": "^14.14.0",
|
|
200
201
|
"csv-parse": "^5.5.6",
|
|
201
202
|
"discord.js": "^14.15.3",
|
|
202
203
|
"gifencoder": "^2.0.1",
|